我已经将Debian 7.11作为我的LDAP的客户端。今天早上,经过更新,我的debian不想再连接到我的LDAP了,似乎nslcd在nscd上有了用武之地。
不管怎样,恢复旧的nss系统是可能的吗?
为了解决这个问题,我尝试像这样配置我的nslcd.conf:
uid nslcd
gid nslcd
uri ldap://server.acme.com
base dc=acme,dc=org
binddn cn=proxyuser,ou=pam,dc=acme,dc=org
bindpw clearpasswd
base passwd ou=People,dc=acme,dc=org
base shadow ou=People,dc=acme,dc=org
base group ou=Group,dc=acme,dc=org
pam_authz_search (&(objectClass=posixAccount)(uid=$username))我已经用命令gentent passwd检查了用户和组,但没有检查阴影,因为su用户无法工作:
su - user1
No passwd entry for user 'user1'我认为nsswitch.conf配置得很好:
passwd: files ldap
group: files ldap
shadow: files ldap发布于 2017-12-19 07:29:25
我找到了一个适合我的解决方案:我重新配置了受影响的包。
# dpkg-reconfigure libnss-ldapd
# dpkg-reconfigure libpam-ldapd
# dpkg-reconfigure nslcd在我的终端中弹出这个窗口,第一步是配置/etc/nsswitch.conf:

第二,给出LDAP服务器的URI:

第三步给出基座的可分辨名称:

第四步给出LDAP基础的身份验证类型:

第五步给出身份验证的帐户:

第六步给出帐户的密码:

第七,提供加密类型:

之后,getent password向我展示了LDAP中的所有登录名
PS :对不起,法语快照
https://unix.stackexchange.com/questions/410387
复制相似问题