我有带 Samba 4.2 的 ubuntu 13.10,我使用带内部 DNS 的 Samba。我的 smb.conf
# Global parameters
[global]
# interfaces = 192.168.0.1
workgroup = BAGCHE
realm = BAGCHE.RU
netbios name = GLAFIR-PC
server role = active directory domain controller
dns forwarder = 8.8.8.8
allow dns updates = nonsecure and secure
[netlogon]
path = /usr/local/samba/var/locks/sysvol/bagche.ru/scripts
read only = No
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
[media]
path = /media
comment = Media Share
read only = No
我的 DNS 答案:
root@glafir-pc:/usr/local/samba/etc# host -t SRV _ldap._tcp.bagche.ru.
_ldap._tcp.bagche.ru has SRV record 0 100 389 glafir-pc.bagche.ru.
root@glafir-pc:/usr/local/samba/etc# host -t SRV _kerberos._udp.bagche.ru.
_kerberos._udp.bagche.ru has SRV record 0 100 88 glafir-pc.bagche.ru.
root@glafir-pc:/usr/local/samba/etc# host -t A glafir-pc.bagche.ru.
glafir-pc.bagche.ru has address 192.xxx.xxx.xxx
glafir-pc.bagche.ru has address 10.xxx.xxx.xxx
glafir-pc.bagche.ru has address 95.xxx.xxx.xxx
/etc/krb5.conf
[libdefaults]
default_realm = BAGCHE.RU
dns_lookup_realm = false
dns_lookup_kdc = true
基尼特
Password for [email protected]:
Warning: Your password will expire in 41 days on Sun Mar 30 07:39:48 2014
清单
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: [email protected]
Valid starting Expires Service principal
16.02.2014 09:03:29 16.02.2014 19:03:29 krbtgt/[email protected]
renew until 17.02.2014 09:03:19
smbclient -L 本地主机
Enter glafir's password:
**session setup failed: NT_STATUS_OBJECT_NAME_NOT_FOUND**
如何修复?请帮帮我!!!