User to query ad

Discussion in 'ASP .Net' started by mike.drewery, Feb 27, 2013.

  1. mike.drewery

    mike.drewery Guest

    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
     
    mike.drewery, Feb 27, 2013
    #1
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.