使用各种 linux 主机对一台 AD 服务器进行相当简单的设置。我们使用以下方法将 linux 主机附加到我们的域:
realm discover domain.example.com
realm join domain.example.com -U user.adm
我们的 /etc/sssd/sssd.conf 看起来像:
[sssd]
domains = domain.example.com
config_file_version = 2
services = nss, pam
[domain/domain.example.com]
ad_domain = domain.example.com
krb5_realm = DOMAIN.EXAMPLE.COM
realmd_tags = manages-system joined-with-samba
cache_credentials = True
id_provider = ad
krb5_store_password_if_offline = True
default_shell = /bin/bash
ldap_id_mapping = True
use_fully_qualified_names = false
fallback_homedir = /home/%u@%d
access_provider = simple
simple_allow_groups = linuxaccess@domain.example.com
从这里我们可以作为 linuxaccess 组的一部分的 AD 用户登录。我试图重置密码,但得到:
[username.lin@hostname ~] passwd
Current Password:
New password:
Retype new password:
Password change failed. Server message: Access denied
passwd: Authentication token manipulation error
/var/log/secure 显示:
Oct 12 14:39:48 computer passwd: pam_unix(passwd:chauthtok): user "username.lin" does not exist in /etc/passwd
Oct 12 14:40:01 computer passwd: pam_unix(passwd:chauthtok): user "username.lin" does not exist in /etc/passwd
Oct 12 14:40:01 computer passwd: pam_sss(passwd:chauthtok): Password change failed for user username.lin: 20 (Authentication token manipulation error)
关于为什么似乎不支持更改密码或配置错误可能是什么的想法?在 pam.d 中猜测一些东西,但不自信。