LDAP Saying username/password incorrect
I set up LDAP against my Windows Server 2008 R2 DC, using distinguished name, password, and base ou that work in LDAPExplorer2.exe, but get the following error:
[DirectoryServicesCOMException (0x8007052e): The user name or password is incorrect. ] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +387793 System.DirectoryServices.DirectoryEntry.Bind() +36 System.DirectoryServices.DirectoryEntry.get_SchemaEntry() +33 System.DirectoryServices.AccountManagement.ADStoreCtx.IsContainer(DirectoryEntry de) +48 System.DirectoryServices.AccountManagement.ADStoreCtx..ctor(DirectoryEntry ctxBase, Boolean ownCtxBase, String username, String password, ContextOptions options) +116 System.DirectoryServices.AccountManagement.PrincipalContext.CreateContextFromDirectoryEntry(DirectoryEntry entry) +144 System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInit() +247
Any thoughts or recommendations as to permissions needed? Adding the user to Domain Admins did not help.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Anton Gogolev on 28 Feb, 2013 11:51 AM
Neil,
I don't really know what LDAPExplorer2 is, but could you please double-check if the user has the "List Contents" permission?
Anton Gogolev closed this discussion on 22 Aug, 2013 07:55 AM.