![#authconfig-gtk](https://linux22.com/image/1082610/%23authconfig-gtk.png)
我正在构建一个具有 LDAP 身份验证的 LTSP 环境。我已经完美配置了 LTSP、LDAP 服务器和客户端。我getent passwd
在 LTSP/LDAP 客户端中使用命令进行了检查。我可以看到我的 LDAP 用户详细信息。
当我启动 LTSP 瘦客户端时,我能够使用 LDAP 用户凭据登录Alt+Ctrl+F1模式。但是,无法通过 GUI(lightdm)登录。查看来自 LTSP/LDAP 客户端的日志。
/var/log/ldm.log:
Apr 15 18:15:53: [ldm] INFO: started on client with IP address: 192.168.12.34
Apr 15 18:15:53: [ldm] INFO: calling rc.d init scripts
Apr 15 18:15:55: [ldm] INFO: authenticating with backend: ssh
Apr 15 18:16:09: [ssh] INFO: calling rc.d pressh scripts
Apr 15 18:16:32: [ssh] CRITICAL: no response, restarting
Apr 15 18:16:34: [ldm] INFO: started on client with IP address: 192.168.12.34
Apr 15 18:16:34: [ldm] INFO: calling rc.d init scripts
Apr 15 18:16:35: [ldm] INFO: authenticating with backend: ssh
Apr 15 18:17:55: [ssh] INFO: calling rc.d pressh scripts
Apr 15 18:18:18: [ssh] CRITICAL: no response, restarting
/var/log/auth.log(LDAP 服务器):
Apr 16 18:41:54 dennis sshd[2727]: Connection closed by 192.168.12.34 [preauth]
Apr 16 18:41:54 dennis sshd[2729]: Connection closed by 192.168.12.34 [preauth]
Apr 16 18:42:09 dennis sshd[2731]: Invalid user myusername from 192.168.12.34
Apr 16 18:42:09 dennis sshd[2731]: input_userauth_request: invalid user myusername [preauth]
Apr 16 18:42:09 dennis sshd[2731]: pam_unix(sshd:auth): check pass; user unknown
Apr 16 18:42:09 dennis sshd[2731]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.12.34
Apr 16 18:42:11 dennis sshd[2731]: Failed password for invalid user myusername from 192.168.12.34 port 38059 ssh2
Apr 16 18:42:11 dennis sshd[2731]: Connection closed by 192.168.12.34 [preauth]
如何解决这个问题?
答案1
在客户端运行以下命令:
#authconfig-gtk
现在,尝试将身份验证配置设置为 LDAP 密码(在“身份和身份验证”选项卡中)。对我来说,这个方法有效。