osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
842 stars 196 forks source link

OpenLDAP & phpLDAPadmin in 1' on unraid #60

Open sgt-spike opened 5 years ago

sgt-spike commented 5 years ago

Trying to link openldap with this docker on unraid and I'm having a bit of trouble with where to put the echo statements. I had to add the PHPLDAP_IP to a variable setting.

`#!/bin/bash -e docker run --name ldap-service --hostname ldap-service --detach osixia/openldap:1.1.8 docker run --name phpldapadmin-service --hostname phpldapadmin-service --link ldap-service:ldap-host --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host --detach osixia/phpldapadmin:0.8.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"`