1

I am just getting started with LDAP. I downloaded the osixia openldap docker image and the phpLDAPAdmin:

OpenLDAP

LDAPAdmin

I created the containers this way:

docker run --name ldap -p 389:389 -p 689:689 -e LDAP_DOMAIN=localhost -e LDAP_ORGANISATION=MyOrganisation -e LDAP_ADMIN_PASSWORD=mypw -v D:\docker\LDAP\ldap:/var/lib/ldap -v D:\docker\LDAP\slapd:/etc/ldap/slapd.d -d osixia/openldap


docker run -p 6443:443 --env PHPLDAPADMIN_LDAP_HOSTS=172.17.0.4 --detach osixia/phpldapadmin

It seems to have worked: I can open the admin console and I can connect to LDAP from keycloak.

What I don't understand is, how do I log into the phpLDAPAdmin. What is the Login DN and password? Password is mypw in this cas I guess, but the login DN?

2 Answers 2

2

phpLDAPadmin user name must be something like this.

cn=admin,dc=first_part_of_the_domain,dc=second_part_of_the_domain,dc=third__part_of_the_domain

as an example, cn=admin,dc=example,dc=mail,dc=com

Sign up to request clarification or add additional context in comments.

1 Comment

what is domain name? if i run openldap set "-e LDAP_DOMAIN=localhost",then:
0

You can login with the LoginDN wich is: cn=admin,dc=example,dc=org

All info you can find on: https://github.com/osixia/docker-phpLDAPadmin?tab=readme-ov-file

This setup script can help you:

 #!/bin/bash -e

docker run --name ldap-service --hostname ldap-service --detach osixia/openldap:1.1.8
docker run -p 6443:443 --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.9.0

PHPLDAP_IP=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" phpldapadmin-service)

echo "Go to: https://$PHPLDAP_IP"
echo "Login DN: cn=admin,dc=example,dc=org"
echo "Password: admin"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.