How to pass login credencials to DirectoryEntry object

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



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 ???

.



Relevant Pages

  • 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 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 ... If you don't specify credentials, then, the current user token will be used to access the directory. ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)
  • Re: DriectoryServices
    ... > How do I validate a username and password against my Active Directory. ... > have been able to get the DirectoryEntry object for the user account but ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • DriectoryServices
    ... How do I validate a username and password against my Active Directory. ... have been able to get the DirectoryEntry object for the user account but how ...
    (microsoft.public.dotnet.framework.aspnet.security)