使用者需要多次嘗試透過 SSH 連線到用於sssd
進行身份驗證的多台 64 位元 Ubuntu 電腦。
在允許使用者登入之前,將連續發生 0-6 次以下情況:
ssh [email protected]
[email protected]'s password:
Connection closed by 10.13.63.101
Connection closed by 10.13.63.101
錯誤發生需要幾秒鐘的時間。
下面是一個範例/var/log/auth.log
,其中顯示了失敗之後的成功:
sshd[7098]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x user=User
sshd[7098]: pam_sss(sshd:auth): authentication success; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x user=User
sshd[7098]: pam_sss(sshd:account): Access denied for user User: 4 (System error)
sshd[7098]: Failed password for bob from x.x.x.x port 54817 ssh2
sshd[7098]: fatal: Access denied for user bob by PAM account configuration [preauth]
sshd[7106]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x user=bob
sshd[7106]: pam_sss(sshd:auth): authentication success; logname= uid=0 euid=0 tty=ssh ruser= rhost=x.x.x.x user=bob
sshd[7106]: Accepted password for bob from x.x.x.x port 54826 ssh2
sshd[7106]: pam_unix(sshd:session): session opened for user User by (uid=0)
systemd-logind[529]: Removed session 69.
systemd-logind[529]: New session 70 of user bob.
看來重要的一行是上面輸出中的第三行:
sshd[7098]: pam_sss(sshd:account): Access denied for user User: 4 (System error)
根據sssd
官方維基(https://fedorahosted.org/sssd/wiki/Troubleshooting):
System Error is an "Unhandled Exception" during authentication. It can either be an SSSD bug or a fatal error during authentication.
該sssd
軟體包是最新的:
$ sudo apt-get install sssd
sssd is already the newest version.
到目前為止,這僅影響我們系統中的一小部分(大約數十個系統中的四個)。
更新:
看起來sssd
日誌要么是空的,要么是幾個月前的。
bob@system:/var/log/sssd$ ls -l
total 16
-rw------- 1 root root 0 Jan 26 2015 ldap_child.log
-rw------- 1 root root 0 Jan 26 2015 sssd_LDAP.log
-rw------- 1 root root 0 Aug 5 06:49 sssd.log
-rw------- 1 root root 268 Aug 4 16:24 sssd.log.1
-rw------- 1 root root 158 Jun 15 11:47 sssd.log.2.gz
-rw------- 1 root root 139 May 25 13:17 sssd.log.3.gz
-rw------- 1 root root 139 May 11 11:08 sssd.log.4.gz
-rw------- 1 root root 0 Jan 26 2015 sssd_nss.log
-rw------- 1 root root 0 Jan 26 2015 sssd_pam.log