I have set up an openldap (osixia/openldap:1.4.0) container in k8s and it runs smoothly. However, when my app wants to connect to it using the default admin/admin creds, it fails.
Data: I have this in my manifest file:
env:
- name: LDAP_ADMIN_PASSWORD
value: "admin"
I have mounted an ldif file (under /container/service/slapd/assets/config/bootstrap/ldif/custom) as well. It contains this :
dn: uid=admin,ou=people,dc=example,dc=org
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Ben Alex
sn: Alex
uid: admin
userPassword: admin
I can see this in the ldap container log:
5f86c067 conn=1006 fd=12 ACCEPT from IP=192.168.37.92:59420 (IP=0.0.0.0:389) 5f86c067 conn=1006 op=0 BIND dn="uid=admin,ou=people,dc=example,dc=org" method=128 5f86c067 conn=1006 op=0 RESULT tag=97 err=49 text= 5f86c067 conn=1006 fd=12 closed (connection lost)
Any idea what is wrong?