on-internet
← Community

The supplied credential is invalid when using LdapConnection

Stack Overflow ·

I am attempting to connect to a LDAP server and do some searches. I am using LdapConnection and NetworkCredential objects to do this. Here is a sample of my code. When I attempt to do the Bind, I get an error that states "The supplied credential is invalid." I think my problem is I am not passing an expected value of Domain correctly. This is my first time programming using these objects, and I have struggled to find an example that works for me. Any help you can provide would be greatly appreciated! string myServerName = "111.22.333.444:389"; string myUserName = "MyLogin,ou=Systems,ou=LOCATIO

Comments

Sign in or sign up to comment and upvote.

No comments yet.