How to pass login credencials to DirectoryEntry object

  • Thread starter Thread starter killbill
  • Start date Start date
K

killbill

Hi All,
I am working with Active Directory using DirectoryServices libraries.
When i create DirectoryEntry object, i pass username and password as
parameters. But i am trying to do it without passing username and
password. How i can use the credencials of the user currently logged
in user on windows to create DirectryEntry object.

Any suggestion ???
 
killbill said:
Hi All,
I am working with Active Directory using DirectoryServices libraries.
When i create DirectoryEntry object, i pass username and password as
parameters. But i am trying to do it without passing username and
password. How i can use the credencials of the user currently logged
in user on windows to create DirectryEntry object.

Any suggestion ???


If you don't specify credentials, then, the current user token will be used to access the
directory.

Willy.
 

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

Back
Top