[Samba] Samba + ldap + cannot find domain
Dave Beach
drbeach4 at gmail.com
Thu Feb 18 02:45:43 UTC 2016
Because I'm a masochist, I decided to port my previous (and much older)
Samba configuration running a (much older) Slackware implementation to a
(much) new server (running Debian Jessie) without actually looking at how to
migrate it. Great fun, lots of problems to solve now.
The problem of the moment: /var/log/samba/log.smbd tells me it cannot find
the domain info in the ldap backend. Here's the funny thing: the log seems
to be telling me Samba is looking for the domain name X, when my domain name
is actually configured as Y in /etc/samba/smb.conf. X is listed in smb.conf
as the netbios name of the server.
This makes no sense to me. Am I missing something obvious?
Log.smbd tells me a connection is being opened to the ldap server, and that
it was querying dc=A,dc=B (all correct), (&(objectClass=sambaDomain)
(sambaDomainName=X). pbd_init_ldapsam then throws a warning that it could
not get the domain info, which makes complete sense to me because it's
looking for the wrong domain name.
Why would Samba be looking for the server's netbios name as the domain name?
They're clearly correct in my smb.conf.
I'm sure there will be subsequent problems for me to solve, but this one has
me stumped at the moment.
Any help or suggestions greatly appreciated.
More information about the samba
mailing list