Docker-openldap: LDAP Admin client give: Invalid DN

Created on 3 Apr 2018  路  2Comments  路  Source: osixia/docker-openldap

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

Most helpful comment

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

All 2 comments

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

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

Was this page helpful?
0 / 5 - 0 ratings