Can't login to UI
I run PLA from docker image, i catch message, when i login:
Whoops! Something went wrong? These credentials do not match our records.
sudo podman run -p 8081:8080 -e LDAP_HOST=my_host.local phpldapadmin/phpldapadmin
Version 1.2.6.6 works fine with same credentials
I ran into the same problem, and its cause seems to be related to the fact that PHPLdapAdmin uses uid field as "login", which might differ from what was used in version 1.2.6.6.
When installed, slapd does create an admin user, but doesn't set an uid for it, so when asked, slapd won't find any user with the uid provided (in my case, admin), and would return a "not found" message, resulting in failed authent.
Check your slapd logs enabling loglevel stats in you cn=config to confirm
In order to solve this, you should set the env var LDAP_LOGIN_ATTR to any other field you might like, and you might have to create an user other than admin in order to login
To be fair, I'm still experimenting myself and I didn't succeed to login yet
FYI, my env vars (ansible redacted) :
APP_KEY: "{{ phpldapadmin_app_key }}"
APP_URL: "{{ phpldapadmin_fqdn }}"
LDAP_HOST: "127.0.0.1"
LDAP_BASE_DN: "{{ ldap_base_dn }}"
LDAP_NAME: "{{ ldap_server_name }}"
LDAP_CONNECTION: "starttls"
# LDAP_LOGIN_ATTR: "dn"
You should refer to Configuration-Variables specially the details around LDAP_LOGIN_ATTR and LDAP_USERNAME/LDAP_PASSWORD and the foot notes.
If authentication is not working, look at your LDAP server logs to see why it is rejecting logins.
Hi, I'm running in the same issue even by having set up the LDAP_LOGIN_ATR to uid.
I'm using docker image phpldapadmin/phpldapadmin:2.1.0 with following env:
- APP_URL=https://pam.unif.local
- LDAP_HOST=ldap
- LDAP_PORT=389
- LDAP_USERNAME=cn=Manager,dc=example,dc=fr
- LDAP_PASSWORD=manager_password
- LDAP_BASE_DN=dc=example,dc=fr
- LDAP_CONNECTION=ldap
- LDAP_LOGIN_ATTR=uid
When I'm logging with my liniddm / password, the openldap returns only good logs (everything found) but still I'm stuck on the login page. I probably miss something but can't figure out:
2025-04-16T15:37:21.308273+00:00 ldap slapd[30]: conn=1003 fd=17 ACCEPT from IP=172.52.0.40:51088 (IP=0.0.0.0:389)
2025-04-16T15:37:21.308331+00:00 ldap slapd[30]: conn=1003 op=0 BIND dn="uid=liniddm,ou=accounts,ou=infrastructure,dc=example,dc=fr" method=128
2025-04-16T15:37:21.308410+00:00 ldap slapd[30]: conn=1003 op=0 BIND dn="uid=liniddm,ou=accounts,ou=infrastructure,dc=example,dc=fr" mech=SIMPLE bind_ssf=0 ssf=0
2025-04-16T15:37:21.308475+00:00 ldap slapd[30]: conn=1003 op=0 RESULT tag=97 err=0 qtime=0.000008 etime=0.000188 text=
2025-04-16T15:37:21.308691+00:00 ldap slapd[30]: conn=1003 op=1 SRCH base="" scope=0 deref=0 filter="(objectClass=*)"
2025-04-16T15:37:21.308697+00:00 ldap slapd[30]: conn=1003 op=1 SRCH attr=objectguid + objectclass
2025-04-16T15:37:21.308800+00:00 ldap slapd[30]: conn=1003 op=1 SEARCH RESULT tag=101 err=0 qtime=0.000007 etime=0.000125 nentries=1 text=
2025-04-16T15:37:21.309061+00:00 ldap slapd[30]: conn=1003 op=2 SRCH base="dc=example,dc=fr" scope=0 deref=0 filter="(objectClass=*)"
2025-04-16T15:37:21.309065+00:00 ldap slapd[30]: conn=1003 op=2 SRCH attr=objectguid *
2025-04-16T15:37:21.309131+00:00 ldap slapd[30]: conn=1003 op=2 SEARCH RESULT tag=101 err=0 qtime=0.000006 etime=0.000080 nentries=1 text=
2025-04-16T15:37:21.324665+00:00 ldap slapd[30]: conn=1003 op=3 SRCH base="dc=example,dc=fr" scope=2 deref=0 filter="(uid=liniddm)"
2025-04-16T15:37:21.324672+00:00 ldap slapd[30]: conn=1003 op=3 SRCH attr=entryuuid *
2025-04-16T15:37:21.324767+00:00 ldap slapd[30]: conn=1003 op=3 SEARCH RESULT tag=101 err=0 qtime=0.000011 etime=0.000146 nentries=1 text=
2025-04-16T15:37:21.325309+00:00 ldap slapd[30]: conn=1003 op=4 BIND anonymous mech=implicit bind_ssf=0 ssf=0
2025-04-16T15:37:21.325323+00:00 ldap slapd[30]: conn=1003 op=4 BIND dn="uid=liniddm,ou=accounts,ou=infrastructure,dc=example,dc=fr" method=128
2025-04-16T15:37:21.325354+00:00 ldap slapd[30]: conn=1003 op=4 BIND dn="uid=liniddm,ou=accounts,ou=infrastructure,dc=example,dc=fr" mech=SIMPLE bind_ssf=0 ssf=0
2025-04-16T15:37:21.325409+00:00 ldap slapd[30]: conn=1003 op=4 RESULT tag=97 err=0 qtime=0.000007 etime=0.000110 text=
2025-04-16T15:37:21.325524+00:00 ldap slapd[30]: conn=1003 op=5 BIND anonymous mech=implicit bind_ssf=0 ssf=0
2025-04-16T15:37:21.325534+00:00 ldap slapd[30]: conn=1003 op=5 BIND dn="uid=liniddm,ou=accounts,ou=infrastructure,dc=example,dc=fr" method=128
2025-04-16T15:37:21.325560+00:00 ldap slapd[30]: conn=1003 op=5 BIND dn="uid=liniddm,ou=accounts,ou=infrastructure,dc=example,dc=fr" mech=SIMPLE bind_ssf=0 ssf=0
2025-04-16T15:37:21.325588+00:00 ldap slapd[30]: conn=1003 op=5 RESULT tag=97 err=0 qtime=0.000005 etime=0.000071 text=
2025-04-16T15:37:21.536483+00:00 ldap slapd[30]: conn=1003 op=6 UNBIND
2025-04-16T15:37:21.536582+00:00 ldap slapd[30]: conn=1003 fd=17 closed
Here is my start string and connection log:
sudo docker run -p 8081:8080 -e HTTP_PROXY="" -e HTTPS_PROXY="" -e LDAP_USERNAME="cn=admin,dc=domain,dc=local" -e LDAP_PASSWORD="pass" -e LDAP_BASE_DN="dc=domain,dc=local" -e LDAP_CONNECTION="ldap" -e LDAP_LOGIN_ATTR="DN" -e LDAP_HOST="ldap.domain.local" phpldapadmin/phpldapadmin
Apr 18 15:59:34 master slapd[23713]: conn=1055 fd=16 ACCEPT from IP=192.168.31.2:13676 (IP=0.0.0.0:389)
Apr 18 15:59:34 master slapd[23713]: conn=1055 op=0 BIND dn="cn=admin,dc=domain,dc=local" method=128
Apr 18 15:59:34 master slapd[23713]: conn=1055 op=0 BIND dn="cn=admin,dc=domain,dc=local" mech=SIMPLE bind_ssf=0 ssf=0
Apr 18 15:59:34 master slapd[23713]: conn=1055 op=0 RESULT tag=97 err=0 qtime=0.000026 etime=0.000199 text=
Apr 18 15:59:34 master slapd[23713]: conn=1055 op=1 SRCH base="" scope=0 deref=0 filter="(objectClass=*)"
Apr 18 15:59:34 master slapd[23713]: conn=1055 op=1 SRCH attr=objectguid + objectclass
Apr 18 15:59:34 master slapd[23713]: conn=1055 op=1 SEARCH RESULT tag=101 err=0 qtime=0.000025 etime=0.000376 nentries=0 text=
Apr 18 15:59:34 master slapd[23713]: conn=1055 op=2 UNBIND
Apr 18 15:59:34 master slapd[23713]: conn=1055 fd=16 closed