osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
844 stars 197 forks source link

Error in config.php, PHPLDAPADMIN_LDAP_HOSTS/docker-compose.yml #25

Open jcgruenhage opened 7 years ago

jcgruenhage commented 7 years ago

When I try to access phpldapadmin, I get Parse error: syntax error, unexpected '}' in /container/service/phpldapadmin/assets/config.php on line 68. Line 68 should contain the ldap host, so I assume that there is an error with that variable.

Here is the excerpt from my docker-compose.yml:

version: '2'
services:
        openldap:
                image:  dinkel/openldap
                container_name: openldap
                environment:
                        - SLAPD_PASSWORD=***REMOVED_SENSITIVE_VALUE***
                        - SLAPD_DOMAIN=***REMOVED_SENSITIVE_VALUE***
                volumes:
                        - ./openldap/etc_ldap:/etc/ldap
                        - ./openldap/var_lib_ldap:/var/lib/ldap

        phpldapadmin:
                image:  osixia/phpldapadmin
                container_name: phpldapadmin
                environment:
                        - PHPLDAPADMIN_HTTPS=false
                        - PHPLDAPADMIN_LDAP_HOSTS=openldap
jcgruenhage commented 7 years ago

I just realised this is #23.. Still occuring for me though :D

osixia commented 7 years ago

:'(

ChrisSamo632 commented 5 years ago

Made a comment in #28 (https://github.com/osixia/docker-phpLDAPadmin/issues/28#issuecomment-468641499) about using this in a docker-compose.yml file.