我正在使用Cent OS操作系统,我需要为这台机器configurationLDAPauthentication。 我已经使用authconfig-tui命令configuration了ldap客户端。 我已经交叉检查文件ldap.conf和nsswitch.conf是否得到更新。 他们很好。
我创build了一个posixaccount用户所有必需的属性,现在如果我尝试login它给我访问被拒绝错误。
我通过腻子login到机器中
用户名:testposix用户testposixuser的密码:…….
访问被拒绝
请分享任何资源以configurationLDAPauthentication到CentOS机器
任何帮助是赞赏。
感谢致敬,
艳阳天。
你确定在PAM中启用了ldap吗? 检查/etc/pam.d/system-auth等。你提到ldap.conf和nsswitch.conf – ldap.confconfiguration如何查询ldap,nsswitch.confconfiguration如何查找身份,但是你仍然需要pam。 confauthentication。 另外,还有两个ldap.conf文件 – /etc/ldap.confconfigurationpam_ldap.so和libnss_ldap.so,而/etc/openldap/ldap.confconfigurationopenldap库的默认值(尽pipe如果你把/etc/ldap.conf中的所有细节)。
此外,您应该检查/ var / log / secure以获取错误消息。 这会给你提供什么问题的线索。
最后,以下是在CentOS上configurationLDAP身份validation的一些基础知识: http : //www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-ldap-pam.html