净广告join返回一个错误“kinit成功,但ads_sasl_spnego_krb5_bind失败:无效的凭据”

我想用AD服务器joinUbuntu linux机器。 我遵循了大部分的文章。 下面列出了一些: https : //raymii.org/s/tutorials/SAMBA_Share_with_Active_Directory_Login_on_Ubuntu_12.04.html http://www.hostatic.ro/2009/06/03/configuring-a-samba-file-sharing-server-与活性目录authentication/

概要

1]作为安装的一部分,我安装了ntp krb5-user samba(v4.1.6)samba-common smbclient winbind

2]我遵循上面的文章中提供的configuration设置。 我configuration了ntp.conf,resolv.conf,krb5.conf,nsswitch.conf和smb.conf。

3]重新启动所有的服务,并join使用“networking广告join”域时,我收到以下错误:

root@amit-ubuntu-vb:/etc/samba# net ads join -S WIN-SKRKHARHP05 -U newuser%cel@123 kinit succeeded but ads_sasl_spnego_krb5_bind failed: Invalid credentials Failed to join domain: failed to connect to AD: Invalid credentials 

4]'净广告信息'返回正确的输出。

 root@amit-ubuntu-vb:/etc/samba# net ads info LDAP server: 192.168.1.6 LDAP server name: WIN-SKRKHARHP05.celestialsys.com Realm: CELESTIALSYS.COM Bind Path: dc=CELESTIALSYS,dc=COM LDAP port: 389 Server time: Wed, 07 Oct 2015 19:15:04 IST KDC server: 192.168.1.6 Server time offset: -16209 

5]以下是我的smb.conf文件的详细信息。

 [global] debug level = 3 kernel oplocks = no realm = CELESTIALSYS.COM workgroup = CELESTIALSYS0 ### domain name without the TLD - .com for example ### netbios name = WIN-SKRKHARHP05 server string = File Server load printers = no log file = /var/log/samba/debug.log max log size = 50 local master = no domain master = no preferred master = no security = ADS password server = celestialsys.com encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 wins proxy = no dns proxy = no winbind enum users = yes winbind enum groups = yes winbind use default domain = yes winbind separator = + winbind refresh tickets = yes idmap uid = 10000-20000 idmap gid = 10000-20000 

1]我已经validation了使用join的用户的凭据,他们是正确的。 但是,仍joinADS时,我得到“ads_sasl_spnego_krb5_bind失败:无效的凭据”错误。 请帮我解决这个问题。 – 我closures了ADS上的所有防火墙。 – 每个其他的IP都能够从ubuntu和ADs两方进行ping。

好的,我已经解决了。 问题是Windows Server更新。 Windows Server发布更新后,域名已join。 但是,我仍然无法使用命令“wbinfo -i / -g”来检索用户和组。 如果任何人有任何线索,请帮助我。