docker-phpLDAPadmin icon indicating copy to clipboard operation
docker-phpLDAPadmin copied to clipboard

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

Open jcgruenhage opened this issue 9 years ago • 3 comments

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 avatar Dec 29 '16 12:12 jcgruenhage

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

jcgruenhage avatar Jan 11 '17 13:01 jcgruenhage

:'(

osixia avatar Feb 15 '17 18:02 osixia

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

ChrisSamo632 avatar Mar 01 '19 12:03 ChrisSamo632