[GH-ISSUE #1] Cannot login users (people) with documented password #3

Closed
opened 2026-02-27 16:47:36 +03:00 by kerem · 1 comment
Owner

Originally created by @piwi91 on GitHub (Oct 26, 2016).
Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/1

For testing purposes, I use this docker container to test LDAP authorization but the documented password is invalid and will result in a error 49 "invalid credentials".

Reproduce:
docker exec <containername> ldapsearch -b "dc=planetexpress,dc=com" -D "uid=professor,dc=planetexpress,dc=com" -h ldap -w professor

Will result in:
ldap_bind: Invalid credentials (49)

Originally created by @piwi91 on GitHub (Oct 26, 2016). Original GitHub issue: https://github.com/rroemhild/docker-test-openldap/issues/1 For testing purposes, I use this docker container to test LDAP authorization but the documented password is invalid and will result in a error 49 "invalid credentials". Reproduce: `docker exec <containername> ldapsearch -b "dc=planetexpress,dc=com" -D "uid=professor,dc=planetexpress,dc=com" -h ldap -w professor` Will result in: `ldap_bind: Invalid credentials (49)`
kerem closed this issue 2026-02-27 16:47:36 +03:00
Author
Owner

@piwi91 commented on GitHub (Oct 26, 2016):

I figured out that the BIND DN is more important than I thought: http://stackoverflow.com/questions/18177486/login-to-ldap-with-uid-instead-of-cn-in-dn-input?answertab=votes#tab-top
After changing the DN to cn=Philip J. Fry,ou=people,dc=planetexpress,dc=com it worked as expected.

<!-- gh-comment-id:256297400 --> @piwi91 commented on GitHub (Oct 26, 2016): I figured out that the BIND DN is more important than I thought: http://stackoverflow.com/questions/18177486/login-to-ldap-with-uid-instead-of-cn-in-dn-input?answertab=votes#tab-top After changing the DN to `cn=Philip J. Fry,ou=people,dc=planetexpress,dc=com` it worked as expected.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-test-openldap#3
No description provided.