User to query ad

M

mike.drewery

I am trying to work on an app someone else wrote. They used a user to query AD. They made this user a domain user. The web page uses authentication and since AD allows anyone to read it I would like to disable the user. Here is the code

DirectoryEntry de = new DirectoryEntry("LDAP://LABS.PPDI.LOCAL", "Domain\\FaqUser", "password");

How do I get this to use the credentials of the user that is authenticated in to the web page?

Thanks for your input

Mike
 

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

Members online

Forum statistics

Threads
474,056
Messages
2,570,446
Members
47,097
Latest member
MarionMajo

Latest Threads

Top