早上好,我正在测试 samba4 作为域控制器,并尝试将其加入现有域。唯一的其他 DC 是 Server 2008 R2,域功能级别也是 2008 R2。我正在使用 Samba 4.0.0beta2(这就是 Ubuntu 12.10 存储库中的内容)。我遵循了许多指南和教程,但我似乎一辈子都无法让 DNS 复制正常工作。Shares/sysvol 复制工作正常,AD 用户复制正常,但 DNS 很难获得。
首先,官方文档似乎建议如果在加入期间未指定任何选项,samba 将使用它的内部 DNS 服务器。我正在尝试使用 BIND9.8;域加入期间的 --dns-backend 选项不再存在,所以我的一部分想知道 samba DNS 服务器和 BIND9 是否在互相争斗。有没有办法指定 samba 应该使用哪个 DNS 服务器?我尝试将“dns 后端”添加到 smb.conf 文件中,但 samba4 无法识别这一点。同样,文档很难找到。
下面是我的named.conf(压缩成一个文件)和smb.conf。写的一些台词是从网络上的各种文档中复制而来的
命名的.conf:
acl samba4 { 192.168.4.0/24; };
acl interfaces { 192.168.4.21; 127.0.0.1; };
options {
listen-on { interfaces; };
directory "/var/cache/bind";
allow-query { any; };
allow-recursion { any; };
notify no;
recursive-clients 1500;
tcp-clients 200;
minimal-responses yes;
provide-ixfr yes;
request-ixfr yes;
dnssec-validation no;
forwarders { 192.168.4.1; };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
tkey-gssapi-keytab "/var/lib/samba/private/dns.keytab";
recursion yes;
};
logging {
channel daemon_info {
syslog daemon;
severity debug;
print-category yes;
print-severity yes;
print-time no;
};
category lame-servers { null; };
category default { daemon_info; };
};
view "samba" {
match-clients { samba4; };
allow-update { localhost; samba4; };
allow-query { localhost; samba4; };
include "/var/lib/samba/private/named.conf";
};
smb.conf:
[global]
server role = active directory domain controller
workgroup = INTAAVEX
realm = intaavex.com
netbios name = LOLDC
passdb backend = samba4
server services = rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate, smb
dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver, winreg, srvs$
[netlogon]
path = /var/lib/samba/sysvol/intaavex.com/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
[Public]
path = /shares/public