Skip to content

"OpenLDAP & phpLDAPadmin in 1" Example Script not working #111

@fabpico

Description

@fabpico

There is this script "OpenLDAP & phpLDAPadmin in 1'" in readme:

#!/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.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"

When I run this, I get this output

cfcc233e0ac1120fcee25343765491d5868928b5c8a1c53e58061d3e308f8ad8
6278b54188fc1ae6eb7e202f397d0358f1f680844ddee923e0ca22aae81cdf3c
Go to: https://172.17.0.3
Login DN: cn=admin,dc=example,dc=org
Password: admin

But when I go to https://172.17.0.3 in my browser, It loads a while and fails with ERR_CONNECTION_TIMED_OUT.

Is there not missing a port mapping to port 80?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions