[Samba] Could not join the domain - Samba and Openldap

iordonez at nature.berkeley.edu iordonez at nature.berkeley.edu
Tue Sep 30 08:22:21 GMT 2008


Our PDC accidentally crashed and to eliminate down time, I quickly set up
one of the BDC to be the new PDC. I copied all the configuration file of
PDC to the BDC.  These files are slapd.conf, ldap.conf, smb.conf, etc.... 
Now that the PDC is up and running again, I want to put it back to the way
it was since the BDC did not run to a functional state anyway.

Here is a snippet of the debug when I run "net rpc testjoin -d 10" on PDC.

[2008/09/30 00:43:29, 5] libsmb/namecache.c:namecache_fetch(214)
  name Domain Name#1B found.
[2008/09/30 00:43:29, 10] libsmb/namequery.c:name_status_find(303)
  name_status_find: looking up Domain Name#1b at 192.168.1.3
[2008/09/30 00:43:29, 10] lib/gencache.c:gencache_get(212)
  Cache entry with key = NBT/Domain Name#1B.20.192.168.1.3 couldn't be found
[2008/09/30 00:43:29, 5] libsmb/namecache.c:namecache_status_fetch(346)
  namecache_status_fetch: no entry for NBT/Domain
Name#1B.20.192.168.1.3found.
[2008/09/30 00:43:29, 10] lib/util_sock.c:open_socket_in(831)
  bind succeeded on port 0
[2008/09/30 00:43:29, 5] libsmb/nmblib.c:send_udp(779)
  Sending a packet of len 50 to (192.168.1.3) on port 137
[2008/09/30 00:43:31, 5] libsmb/nmblib.c:send_udp(779)
  Sending a packet of len 50 to (192.168.1.3) on port 137
[2008/09/30 00:43:33, 10] libsmb/namequery.c:name_status_find(342)
  name_status_find: name not found
Unable to find a suitable server
Join to domain 'Domain Name' is not valid
[2008/09/30 00:43:33, 2] utils/net.c:main(1075)
  return code = -1

PDC IP = 192.168.1.2
BDC IP = 192.168.1.3

Why am I getting all these messages about BDC's IP Address (192.168.1.3)
when I run the "net rpc testjoin" command on the PDC?  I can ping the PDC
by IP and by netbios name.   Running nmblookup on the PDC gives me
positive response.  I am running samba 3.0.32 with openldap backend.

Any advise is greatly appreciated.

Thanks,
-Ivan





More information about the samba mailing list