LDAP anonymous lookup - no username password

G

Grant Merwitz

Is it possible to do an anonymous lookup in active directory through a web
page?

I am running a site with Domain Authentication activated.
I am looking up a users email address in Active Directory.
This is how i'm accessing AD
new DirectoryEntry(LDAP://DomainController, Domain\Username, password)

Now for this method I am specifying a Domain\Username and password,
there is an overload that only requires a path, but this returns the error:
An operations error occurred
And if i try use an existing Domain\Username with a blank password i get:
Logon failure: unknown user name or bad password

Googling and searching MSDN i found out you can set Identity impersonate to
true.
Will this effect any of the window authentication i'm currently using?
Is this the only solution? and will i just specifying the path then work?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top