I currently have a program that queries ldap. I need to be able to change it over to multiple domains. I use the below for authentication. How can i default the username and password to be the current logged in credentials cache?
Dim de As New DirectoryEntry("LDAP://bkng.net:389/DC=bkng,DC=net")
de.Username = "johndoe"
de.Password = "password"
How do i use CredentialCache.DefaultCre