[Samba] Debugging Samba 4 AD Setup

Johannes Amorosa | Celluloid VFX johannesa at celluloid-vfx.com
Tue Mar 24 06:29:29 MDT 2015


We're using quite successfully a samba 4.1 AD setup authenticating user. 
We have on an unregular basis
mails that can't be delivered because dovecot-pam fails to verify the 
credentials. I'm trying to debug
this and set the loglevel up to 3.

I can see an error message being spammed in the log files and can't 
figure out what causes this. I expect a configuration error somewhere
although everything else seems to work. Can someone shed some light on 
this error.

Invalid domain! Expected name in domain [ourdomain.com]. But received 
[THE-AD-HOSTNAME]!
../source4/rpc_server/netlogon/dcerpc_netlogon.c:2330(dcesrv_netr_DsrEnumerateDomainTrusts)

I don't believe this has anything to do with the initial problem, but I 
would like to resolve this one aswell.
Thank you for your time.
Joe

Setup:
Two identical servers with this samba.conf.

# Global parameters
[global]
     workgroup = OURDOMAIN
     realm = ourdomain.com
     netbios name = THE-AD-HOSTNAME
     netbios aliases = SOMETHINGELSE
     log level = 3

     server role = active directory domain controller
     dns forwarder = 192.168.1.254
[netlogon]
     path = /var/lib/samba/sysvol/ourdomain.com/scripts
     read only = No

[sysvol]
     path = /var/lib/samba/sysvol
     read only = No


-- 
Johannes Amorosa | Celluloid VFX



More information about the samba mailing list