Created
September 9, 2020 20:55
-
-
Save manju4ever/00c3137c200c0b2e00fed71823a96c40 to your computer and use it in GitHub Desktop.
Create LDAP Server with phpLDAPAdmin with docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| docker run --name ldap-service --hostname ldap-service -p 389:389 -p 636:636 --detach osixia/openldap:1.1.8 | |
| docker run --name phpldapadmin-service --hostname phpldapadmin-service -p 6443:443 --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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment