[Comm] Настройка PAM. SSHD авторизация в winbind
Дмитрий
=?iso-8859-1?q?ddv_=CE=C1_nevod=2Eru?=
Вт Мар 4 14:54:36 MSK 2008
Настроил авторизацию для всех приложений через winbind всё работает
кроме sshd.
# cat /etc/pam.d/sshd
#%PAM-1.0
auth required pam_userpass.so
auth include system-auth-winbind
auth required pam_nologin.so
account include system-auth-winbind
password include system-auth-winbind
session include system-auth-winbind
# cat /etc/pam.d/system-auth-winbind
#%PAM-1.0
#auth required pam_securetty.so
auth required pam_nologin.so
auth sufficient pam_winbind.so
auth include system-auth-use_first_pass
account sufficient pam_winbind.so
account include system-auth
password sufficient pam_winbind.so
password include system-auth
# We use pam_mkhomedir to create home dirs for incoming domain users
# Note used umask, it will result in rwxr-x--x access rights
session required pam_mkhomedir.so skel=/etc/skel/ umask=0026
session include system-auth
Вот лог /var/log/auth/all
Mar 4 16:05:54 xx sshd[8402]: pam_winbind(sshd:auth): getting password
(0x00000000)
Mar 4 16:05:54 xx sshd[8402]: pam_winbind(sshd:auth): Could not
retrieve user's password
Mar 4 16:05:55 xx sshd[8402]: Failed password for guest from
xxx.xxx.xxx.xxx port 55035 ssh2
Mar 4 16:05:55 xx sshd[8402]: Excess permission or bad ownership on
file /var/log/btmp
Mar 4 16:05:58 xx sshd[8402]: Failed password for guest from
xxx.xxx.xxx.xxx port 55035 ssh2
Mar 4 16:05:58 xx sshd[8402]: Excess permission or bad ownership on
file /var/log/btmp
Mar 4 16:06:05 xx sshd[8402]: Failed password for guest from
xxx.xxx.xxx.xxx port 55035 ssh2
Mar 4 16:06:05 xx sshd[8402]: Excess permission or bad ownership on
file /var/log/btmp
Mar 4 16:06:05 xx sshd[8405]: Connection closed by xxx.xxx.xxx.xxx
Mar 4 16:07:55 xx sshd[8417]: PAM unable to
dlopen(/lib64/security/pam_krb5.so)
Mar 4 16:07:55 xx sshd[8417]: PAM [error: /lib64/security/pam_krb5.so:
cannot open shared object file: No such file or directory]
Настроил аналогичным образом через Керберос и всё работает. В чём проблема?
# cat /etc/pam.d/sshd
#%PAM-1.0
auth required pam_userpass.so
auth include system-auth-krb5
auth required pam_nologin.so
account include system-auth-krb5
password include system-auth-krb5
session include system-auth-krb5
# cat /etc/pam.d/system-auth-krb5
#%PAM-1.0
auth sufficient pam_krb5.so
auth include system-auth-use_first_pass
account sufficient pam_krb5.so
account include system-auth
password sufficient pam_krb5.so
password include system-auth
### We use pam_mkhomedir to create home dirs for incoming domain users
### Note used umask, it will result in rwxr-x--x access rights
session required pam_mkhomedir.so skel=/etc/skel/ umask=0026
session include system-auth
Подробная информация о списке рассылки community