osixia / docker-openldap

OpenLDAP container image 🐳🌴
MIT License
4.05k stars 978 forks source link

LDAP Admin client give: Invalid DN #201

Open sintetico82 opened 6 years ago

sintetico82 commented 6 years ago

Hi, I try to connect with admin user with LDAP Admin client (http://www.ldapadmin.org/), but it dosen't work.

I created this container: docker run -p 389:389 -p 636:636 -d --name ldap osixia/openldap:1.2.0

If i try to lunch a search as the documentation explain, it's work: docker exec ldap ldapsearch -x -H ldap://localhost -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin

extended LDIF

LDAPv3 base with scope subtree filter: (objectclass=*) requesting: ALL

example.org dn: dc=example,dc=org objectClass: top objectClass: dcObject objectClass: organization o: Example Inc. dc: example

admin, example.org dn: cn=admin,dc=example,dc=org objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin description: LDAP administrator userPassword:: e1NTSEF9ajQzNkVSTWpsSXJCN0JUQ1AxMzZXVG9pYit5S3RLNTE=

search result search: 2 result: 0 Success

numResponses: 3 numEntries: 2


If i try to connect with the GUI client image

I have this error:

image

Dexyon commented 6 years ago

Your username is wrong. Try this one: cn=admin,dc=example,dc=org, this is the one you defined in your command line

darox commented 6 years ago

I have the same isuse, although I can connect with the docker exec commands, I can not with the LDAP admin tool. In the base I have: cn=admin,dc=damn,dc=li