Hello,
I have a principal with credentials to login to an ADAM, creating a successful DirectoryEntry object with:
DirectoryEntry entry = new DirectoryEntry("
LDAP://site.com:10001/
CN=MyPrincipal,OU=Users,DC=site,DC=com", "MyUserName", "MyPassWord");
However, what i need to do is to authenticate users logging in. The problem is that my DirectoryEntry is located as siblings to the users i want to authenticate. My user ONLY has access to
"CN=MyPrincipal,OU=Users,DC=site,DC=com"
and not to what i want to have access to:
"OU=Users,DC=site,DC=com".
Since my entry is a sibling to the users i cant search for them, since the search scope is only for the children nodes of my entry.
When i use a LDAP Browser i can browse everything, but is it programmattically possible to do this? I need to "login" with my credentials first and THEN authenticate a user. But i cant seem to find a way to do that since all that my entry contains is myself. :)
Any help appreciated, Mattias