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