What should be the format for the following ldap workerid? -


i trying use following code email address ldap active directory? should format of workerid? should domainname\userid or environment.username only? thinking of using

directorysearcher search = new directorysearcher(entry);              search.filter = "(samaccountname=" + workerid + ")"; 

the samaccountname attribute reflect combination of first initial , last name of user.

being greg stachurski, samaccountname in active directory gstachurski.

also, should check out softerra's ldap browser (the free version of ldap administrator). it's fantastic piece of software invaluable build applications around ldap protocol.

you can download here - http://www.ldapbrowser.com/download.htm


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -