我在我的测试机(Win2k8)上配置了域名,域名是win2008ad.local计算机名称为win2k8。所以全名是win2k8.win2008ad.local。
我在 RHEL 5 上安装了与 winbind、Samba 和 KRB 相关的软件包
当我运行此命令时完成所有配置后 净广告加入-U管理员它给了我这个错误
和wbinfo-u给出这个错误 查找域用户时出错
内容/etc/security/pam_winbind.conf
:
#
# pam_winbind configuration file
#
# /etc/security/pam_winbind.conf
#
[global]
# turn on debugging
;debug = yes
# request a cached login if possible
# (needs "winbind offline logon = yes" in smb.conf)
;cached_login = yes
# authenticate using kerberos
krb5_auth = yes
# when using kerberos, request a "FILE" krb5 credential cache type
# (leave empty to just do krb5 authentication but not have a ticket
# afterwards)
;krb5_ccache_type = FILE
# make successful authentication dependend on membership of one SID
# (can also take a name)
;require_membership_of =
内容/etc/krb5.conf
:
[root@rhmain ~]# cat /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
default_realm = WIN2008AD.LOCAL
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
forwardable = yes
[realms]
#EXAMPLE.COM = {
#kdc = kerberos.example.com:88
#admin_server = kerberos.example.com:749
#default_domain = example.com
WIN2008AD.LOCAL = {
kdc = win2k8.win2008ad.local
admin_server = win2k8.win2008ad.local
}
[domain_realm]
#.example.com = EXAMPLE.COM
#example.com = EXAMPLE.COM
.win2k8.win2008ad.local = WIN2008AD.LOCAL
[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}
内容/etc/hosts
:
10.20.20.221 win2k8.win2008ad.local winad
内容/etc/nsswitch
:
passwd: files winbind
shadow: files
group: files winbind
内容/etc/pam.d/system-auth
:
auth required pam_env.so
auth sufficient pam_winbind.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 500 quiet
auth required pam_deny.so
account required pam_unix.so
account required pam_winbind.so
account sufficient pam_succeed_if.so uid < 500 quiet
account required pam_permit.so
password requisite pam_cracklib.so try_first_pass retry=3
password sufficient pam_winbind.so
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
password required pam_deny.so
session optional pam_keyinit.so revoke
session required pam_limits.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so
最后/etc/samba/smb.conf
:
security = ads
realm = WIN2008AD.LOCAL
我缺少什么?
答案1
几个建议:
基尼特
您完成设置后运行此命令吗?
kinit [email protected]
SRV记录
您有正确的 SRV DNS 记录吗?运行此类命令来确认:
host -t SRV _ldap._tcp.SUBDOMAIN.DOMAIN.TLD
您需要根据您的特定设置调整 subdomain.domain.tld 部分。