k8s 中的 OpenLDAP:身份验证不起作用

k8s 中的 OpenLDAP:身份验证不起作用

我在 k8s 中设置了一个 openldap (osixia/openldap:1.4.0) 容器,它运行顺利。但是,当我的应用程序想要使用默认的 admin/admin 凭据连接到它时,它会失败。

数据:我的清单文件中有这个:

  env:
    - name: LDAP_ADMIN_PASSWORD
      value: "admin"

我还安装了一个 ldif 文件(位于 /container/service/slapd/assets/config/bootstrap/ldif/custom 下)。它包含以下内容:

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

我可以在 ldap 容器日志中看到这一点:

5f86c067 conn=1006 fd=12 接受来自 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 结果 tag=97 err=49 text= 5f86c067 conn=1006 fd=12 关闭 (连接丢失)

知道哪里出了问题吗?

相关内容