pgadmin4 container deployment with ldap-authentication - Mailing list pgadmin-support

From Hendrik Hansmeier
Subject pgadmin4 container deployment with ldap-authentication
Date
Msg-id 7534aa1f-56f6-7624-eecf-0087d69bbcbe@hh-it.co
Whole thread Raw
Responses Re: pgadmin4 container deployment with ldap-authentication  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
List pgadmin-support

Hi,

i am trying to get pgadmin4 running in server-mode as a docker-container. So i pulled the image and after i tried out the image a little bit, i tried to use ldap-authentication.

Unfortunately, i didn't get it running as expected. I am not able to authenticate against my samba 4-domain. This is how i tried to launch the container:

docker run -p 8280:80
    -e "PGADMIN_DEFAULT_EMAIL=<emailAddress>"
    -e "PGADMIN_DEFAULT_PASSWORD=<password>"
    -e "AUTHENTICATION_SOURCES=['ldap']"
    -e "LDAP_AUTO_CREATE_USER=True"
    -e "LDAP_SERVER_URI='ldaps://<domaincontroller>:636'"
    -e "LDAP_BASE_DN='cn=Users,dc=mydomain,dc=local'"
    -e "LDAP_BIND_USER='cn=User1,cn=Users,dc=mydomain,dc=local'"
    -e "LDAP_BIND_PASSWORD=<BindDNPassword>"
    -e "LDAP_CA_CERT_FILE='/etc/ssl/certs/myca.pem'"
    -e "LDAP_CERT_FILE='/etc/ssl/certs/my.cert.pem'"
    -e "LDAP_KEY_FILE='/etc/ssl/private/my.key.pem'"
    -d dpage/pgadmin4

I am using the container behind a reverse-proxy on nginx (debian buster), for the first try via http. The authentication with the given user PGADMIN_DEFAULT_EMAIL works as expected but ldap-authentication results in an error-message "Specified user does not exist".

Am i using the environment-parameters for ldap-authentication correctly? May a reverse-proxy over https help to get ldaps working?

--
Best regards,

Hendrik Hansmeier


Hendrik Hansmeier IT-Consulting ::: Bunsenstraße 5 ::: 51647 Gummersbach
FON +49 (0) 2261 814 174 ::: MOB +49 (0) 151 235 866 02 ::: E-MAIL hendrik.hansmeier@hh-it.co
USt-IdNr.: DE311717013 ::: Finanzamt Gummersbach


pgadmin-support by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: Can't Access Tables on MS Virtual Machine running Server 2016 Standard
Next
From: Khushboo Vashi
Date:
Subject: Re: pgadmin4 container deployment with ldap-authentication