Marshall, Joshua
2002-Apr-01 18:40 UTC
[Samba] 2.2.3a PDC sometimes stops accepting logons
I have a Samba 2.2.3a PDC with LDAP backend which now and then stops working for logons from Windows machines. File sharing, WINS lookups and browsing still works great but Windows logons just stop. Interestingly, logon packets are still being logged in the log.nmbd To fix it I generally have to restart nmbd. The logs show: Before restart: [2002/04/02 11:04:08, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 10.10.10.167: code = 0x0 [2002/04/02 11:04:24, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 10.10.10.167: code = 0x0 After restart: [2002/04/02 11:07:35, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 10.10.10.167: code = 0x0 [2002/04/02 11:08:07, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 10.10.10.167: code = 0x7 It can take a few days before the server starts showing these effects. It doesn't seem to have excessively high cpu usage, low memory or disk space. It doesn't seem to stop at any point in time. The logs above were taken with debug level 2. I don't wish to bump this up since it affects performance badly, and only fails after a few days of operation. Is there a way to find out what the codes above are? They definitely come in pairs and when you get a pair of 0x0's it fails and when you get a 0x7 it works. Another question is: Is there a way to test for a logon using smbclient or similar tool? I'd like to be able to get a job in cron to test whether it's working and alert me before the windows users start to complain. Regards, Joshua Marshall
Gerald (Jerry) Carter
2002-Apr-05 06:39 UTC
[Samba] 2.2.3a PDC sometimes stops accepting logons
On Tue, 2 Apr 2002, Marshall, Joshua wrote:> Is there a way to find out what the codes above are? They definitely come > in pairs and when you get a pair of 0x0's it fails and when you get a 0x7 > it works.see include/nameserv.h and look around for QUERYFORPDC.> Another question is: Is there a way to test for a logon using smbclient > or similar tool? I'd like to be able to get a job in cron to test > whether it's working and alert me before the windows users start to > complain.Check out rpcclient in HEAD for some of the netlogon commands. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--