Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP Authentication when logged in as local admin

Status
Not open for further replies.

Mootser13

Programmer
Sep 7, 2005
30
0
0
US
Hi all
I am working on a app that helps load up a pc.
It goes out to AD and retrieves the listing of users.
I am logged in locally as the administrator, not the domain.
Here is my LDAP code that I am using,
Dim child As New System.DirectoryServices.DirectoryEntry("LDAP://DC=domain,DC=com") ', username, Pwd, AuthenticationTypes.SecureSocketsLayer)
This does not seem to work, and I have tried Other authentication types as well like :
Dim child As New System.DirectoryServices.DirectoryEntry("LDAP://DC=domain,DC=com") ', username, Pwd Authenticationtypes.none)

I am unable to get any users to be returned with this query.
Remember I am logged in locally as the administrator account.

Now I can runas this as a domain user, but I want to know the solution as to which authenticationtype to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top