Re: How to pass login credencials to DirectoryEntry object

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"killbill" <indus.vision@xxxxxxxxx> wrote in message news:1171579015.211955.200240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.

.



Relevant Pages

  • How to pass login credencials to DirectoryEntry object
    ... I am working with Active Directory using DirectoryServices libraries. ... When i create DirectoryEntry object, i pass username and password as ...
    (microsoft.public.dotnet.languages.csharp)
  • How to get domainusername (NT account) from a DirectoryEntry object of user?
    ... I have DirectoryEntry object for a user (using the LDAP provider and ... I can retrieve the username by reading the ... in Mixed or Native active directory mode. ... to export a wrapper on top of activeds.dll and use the name translate COM ...
    (microsoft.public.dotnet.security)
  • Re: How to fetch attributes of LDAP entry?
    ... > When you create the DirectoryEntry object you do so with a username ... This call doesn't attach to the AD with a bad username ... public bool IsAuthenticated(String domain, String username, String pwd) ... object but then it seems that he doesn't search for any authentication, ...
    (microsoft.public.dotnet.framework.aspnet)