Niels Dettenbach
2012-Mar-20 06:42 UTC
[Samba] Samba not "seen" as logon server / PDC anymore...
Dear all, since yesterday our samba PDC did "loose" his master status within our LAN for the domain "SRG" - since then windows boxes did not "see" the logon server anymore. nmblookup -T -M SRG is reporting some of the windows machines (one box running since more then a year...). - net rpc join -S SRG -U root (on the PDC works) - net rpc join -S 192.168.123.202 -U root (on a client works) - net rpc join --S SRG -U root (on a client works NOT - "no nmbd around" and srg host got resolved to the wrong one) Some monthes ago i had a similiar problem - in that case i had a bug in my interface conf in smb.config I've produced some level 10 logs (full log see urls above) - these lines seems important to me from then. --- snip --- 2012/03/19 19:12:56, 8] nmbd/nmbd_elections.c:361(check_elections) check_elections: Cannot send election packet yet as name SRG<1e> not yet registered on subnet 192.168.123.202 ---snap --- and: --- snip --- [2012/03/20 07:35:24, 3] nmbd/nmbd_logonnames.c:138(become_logon_server) become_logon_server: go to first stage: register SRG<1c> name [2012/03/20 07:35:24, 3] nmbd/nmbd_elections.c:77(check_for_master_browser_success) check_for_master_browser_success: Local master browser for workgroup SRG exists at IP 192.168.124.242 (just checking). [2012/03/20 07:35:24, 0] nmbd/nmbd_nameregister.c:73(register_name_response) register_name_response: Answer name SRG<00> differs from question name SRG<1c>. [2012/03/20 07:35:24, 3] nmbd/nmbd_incomingrequests.c:456(process_name_query_request) process_name_query_request: Name query from 192.168.124.243 on subnet 192.168.123.202 for name SRG<1d> [2012/03/20 07:35:26, 0] nmbd/nmbd_logonnames.c:64(become_logon_server_fail) become_logon_server_fail: Failed to become a domain master for workgroup SRG on subnet 192.168.123.202. Couldn't register name SRG<1c>. [2012/03/20 07:35:26, 0] nmbd/nmbd_namelistdb.c:309(standard_fail_register) --- snap --- here my [global]: --- schnipp --- [global] name resolve order = host wins lmhosts bcast time server = Yes lprm command = lprm -P'%p' %j netbios name = SERVER lpresume command = lpc release '%p' %j logon script = %U.bat workgroup = SRG os level = 255 queueresume command = lpc start '%p' add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -g machines -s /bin/false %u max log size = 5000 log level = 10 lanman auth = yes log file = /var/log/samba/log.%m load printers = No map acl inherit = Yes username level = 15 #socket options = SO_KEEPALIVE TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 logon drive = L: guest ok = yes domain master = Yes local master = Yes idmap backend = rid:KPAK=100-100000000 winbind use default domain = yes passdb backend = tdbsam logon home = \\%L\%U wins support = Yes case sensitive = No dos filetime resolution = Yes netbios aliases = audioserv server string = PDC queuepause command = lpc stop '%p' preexec = /usr/local/bin/netlogon %U logon path = \\%L\profiles\%U client lanman auth = yes lppause command = lpc hold '%p' %j preferred master = Yes winbind cache time = 1 domain logons = Yes #add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -g machines -s /bin/false %m$ interfaces = 192.168.123.202/255.255.0.0 127.0.0.1/255.0.0.0 hosts allow = 192.168.123. 192.168.124. localhost bind interfaces only = yes --- schnapp --- ...nmbd seems to hear "properly": ~ # netstat -atun|grep 137 udp 0 0 192.168.255.255:137 0.0.0.0:* udp 0 0 192.168.123.202:137 0.0.0.0:* udp 0 0 0.0.0.0:137 The correct PDC should be 192.168.123.202 - the current wrong one is 192.168.124.242 For testing purposes i still tried to remove wins.dat und browse.dat as some caches to let samba create it freshly. Here is a level 10 log from nmbd: http://217.171.190.10/srg.debug.txt Output from nbmlookup -T -M SRG (Level 10) here: http://217.171.190.10/srg.nmblookup.txt It would be very nice to get any input - many thanks in advance for any hint or tip!... best regards, Niels. -- --- Niels Dettenbach Syndicat IT & Internet http://www.syndicat.com --- -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: <http://lists.samba.org/pipermail/samba/attachments/20120320/96cbe51b/attachment.pgp>