先把IP地址、DNS、网关等配置好。
2、配置Kerberos。
配置/etc/krb5.conf,把其中所有的example.com改成自己的域名,注意大写的地方要大写,小写的地方要小写。配置完成后与ADS时间同步一下(听说误差不能大于5分钟)。然后执行kinit Administrator@EXAMPLE.COM 执行验证(注意域名要大写),如果正确的话输入口令无提示退出。
3、配置samba。
下边是我的smb.conf摘录。
[global]
dns proxy = no
log file = /var/log/samba/%m.log
netbios name = aaaa
display charset = cp936
cups options = raw
netbios aliases = aaaa
server string = aaaa
wins server = 10.10.10.10
dos charset = cp936
guest ok = yes
workgroup = AAA #注意大小写
password server = SERVER.AAA.BBB.CCC #注意大小写
realm = AAA.BBB.CCC #注意大小写
domain logons = no
encrypt passwords = yes
os level = 20
security = ads
unix charset = cp936
max log size = 50
#用户和组ID映射参数
idmap uid = 10000-20000
idmap gid = 10000-20000
#Winbind 参数
winbind separator = %
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
obey pam restrictions = yes
winbind use default domain = true
template shell = /bin/bash
template homedir = /home/%D/%U #/home/%D需要手工建立
