[Samba] samba4 ADS no logon servers

Marc Muehlfeld samba at marc-muehlfeld.de
Wed Feb 26 12:27:50 MST 2014


Hello Lars,

Am 26.02.2014 09:16, schrieb Lars Hanke:
> root at nfs4:~# net ads info
> ads_connect: No logon servers
> ads_connect: No logon servers
> Didn't find the ldap server!
> root at nfs4:~# host -t SRV _ldap._tcp.mgr
> _ldap._tcp.mgr has SRV record 0 100 389 nfs4.mgr.
> root at nfs4:~# smbclient //nfs4/netlogon -UAdministrator -c 'ls'
> Enter Administrator password:
> Domain=[AD] OS=[Unix] Server=[Samba 4.1.4-SerNet-Debian-7.wheezy]
>    .                                   D        O  Thu Feb 20 15:13:27 2014
>    ..                                  D        O  Thu Feb 20 15:13:41 2014
> root at nfs4:~#

Are all ports opened, that should be for a DC?
https://wiki.samba.org/index.php/Samba_port_usage#Port_usage_when_Samba_runs_as_DC

Make sure, that no firewall, SElinux, etc. prevents accessing.




 > Is there any systematic approach to troubleshoot
 > such an installation?

Increase the log level in smb.conf or add "-d" to your command. This is 
the output on my test environment on debug level 3:

# net ads info -d 3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba//smb.conf"
Processing section "[global]"
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth0 ip=10.99.0.1 bcast=10.99.0.255 netmask=255.255.255.0
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
Successfully contacted LDAP server 10.99.0.1
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
Successfully contacted LDAP server 10.99.0.1
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
Successfully contacted LDAP server 10.99.0.1
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
Successfully contacted LDAP server 10.99.0.1
Connected to LDAP server dc1.samdom.example.com
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
Successfully contacted LDAP server 10.99.0.1
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
get_dc_list: preferred server list: "dc1.samdom.example.com, *"
Successfully contacted LDAP server 10.99.0.1
Connected to LDAP server dc1.samdom.example.com
LDAP server: 10.99.0.1
LDAP server name: dc1.samdom.example.com
Realm: SAMDOM.EXAMPLE.COM
Bind Path: dc=SAMDOM,dc=EXAMPLE,dc=COM
LDAP port: 389
Server time: Mi, 26 Feb 2014 20:26:49 CET
KDC server: 10.99.0.1
Server time offset: 0
return code = 0




Regards,
Marc


More information about the samba mailing list