Last post Jul 28, 2009 01:55 PM by papabear
Jul 28, 2009 09:37 AM|hareshmca|LINK
I am stuggling with ADAM authentication / get all users from ADAM. I am using LDAP to authenticate/get all users from ADAM.
ADAMadsiedit window configuration details are following:
Server: localhost:50002 and cn=sandbox,dc=ITOrg
I have created super user and its details are following,
Password is : super12@
Name Class DistinguishedName
SuperUser user CN=SuperUser,CN=People,CN=sandbox,DC=ITOrg
string strPath = "LDAP://localhost:50002/cn=sandbox,dc=ITOrg";
DirectoryEntry root = new DirectoryEntry(strPath, "SuperUser","super12@");
DirectorySearcher search1 = new DirectorySearcher(root);
search1.PageSize = 1000;
SearchResultCollection oResults = search1.FindAll();
Its giving me error about Login failure.
" System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): Logon failure: unknown user name or bad password. "
Please anybody help me ?
Any help will be appreciated in advance
LDAP authentication in ADAM
Jul 28, 2009 01:55 PM|papabear|LINK
I hate to say it but it is probably telling you exactly the issue - your account does is not matching.
I would try passing the distinguished name (CN=SuperUser,CN=People,CN=sandbox,DC=ITOrg) and see if that works. In theory you can pass the sAMAccountName (which probably is SuperUser) but I would try this first...
hope that helps...