我想知道是否有人成功configurationAmazon Linuxauthentication到LDAP服务器?
编辑:
有关我所做的更多信息:
我禁用了OpenLDAP服务器上的匿名访问,因此我试图让Amazon Linux上的openldap客户端使用binddn进行身份validation,从而连接到OpenLDAP服务器。 但是当我检查OpenLDAP服务器上的日志时, binddn是空的。 我已经将我的binddn和bindpw添加到/etc/pam_ldap.conf。
我的/etc/nsswitch.conf
passwd: files ldap shadow: files ldap group: files ldap
我的/etc/pam_ldap.conf
base dc=example,dc=com bindnd uid=test_client,ou=System,dc=example,dc=com bindpw secret scope sub pam password md5 nss_base_passwd ou=System,dc=example,dc=com?one nss_base_passwd ou=People,dc=example,dc=com?one nss_base_shadow ou=People,dc=example,dc=com?one nss_base_shadow ou=System,dc=example,dc=com?one tls_checkpeer no uri ldap://ec2-00-00-00-00.compute.amazonaws.com ssl no tls_cacertdir /etc/openldap/cacerts
我通过使用我的binddn和bindpwconfiguration/etc/nslcd.conf解决这个bindpw