Bug 3798 - winbind race condition
Summary: winbind race condition
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.20
Hardware: x86 Linux
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-24 23:07 UTC by Leon Vernikov
Modified: 2021-02-10 11:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leon Vernikov 2006-05-24 23:07:51 UTC
1. CLIENT1 is Linux client
2. SERVER1 is W2K3 SP1 server
3. SERVER2 and SERVER6 are W2K3 SP1 servers in two-way trust with SERVER1
4. smb.conf and krb5.conf configurations are OK
5. CLIENT1 registered to SERVER1 correctly
# net ads testjoin
Join is OK

6. nodemgr_clt is an utility to restart winbind service
# date
Thu May 25 02:46:20 UTC 2006
# ps ax | grep winbindd
 3061 ?        SNs    0:00 /usr/sbin/winbindd -Y -l /local/errorlog
 3062 ?        SN     0:00 /usr/sbin/winbindd -Y -l /local/errorlog
 3275 pts/0    R+     0:00 grep winbindd
# nodemgr_clt restart winbindd
# ps ax | grep winbindd
 6767 ?        SNs    0:00 /usr/sbin/winbindd -Y -l /local/errorlog
 6768 ?        SN     0:00 /usr/sbin/winbindd -Y -l /local/errorlog
 6770 pts/0    R+     0:00 grep winbindd
# date
Thu May 25 02:48:11 UTC 2006

7. check the trusted domain's sequence numbers
# date
Thu May 25 02:49:28 UTC 2006
# wbinfo --sequence
SERVER2 : 1820
SERVER6 : 280
CLIENT1 : 1
BUILTIN : 1
SERVER1 : 181322

Everything is OK up to this point


8. Restart winbind and check the trusted domain's sequence numbers
immediately after that
# date
Thu May 25 02:52:43 UTC 2006
# nodemgr_clt restart winbindd
# ps ax | grep winbindd
14569 ?        SNs    0:00 /usr/sbin/winbindd -Y -l /local/errorlog
14570 ?        SN     0:00 /usr/sbin/winbindd -Y -l /local/errorlog
14580 pts/0    R+     0:00 grep winbindd
# wbinfo --sequence
CLIENT1 : 1
BUILTIN : 1
SERVER1 : 181569
# date
Thu May 25 02:52:50 UTC 2006

Please, note, the trusted domains are not in the list

9. Wait for 5 more minutes
# wbinfo --sequence
CLIENT1 : 1
BUILTIN : 1
SERVER1 : 181569
debugshell# date
Thu May 25 02:58:28 UTC 2006

Result is the same, the trusted domains are not in the list

10. There is no way to get the trusted domain's sequence numbers
winbind has to be restarted slowly

# date
Thu May 25 03:53:05 UTC 2006
# nodemgr_clt restart winbindd
# ps ax | grep winbindd
23884 ?        SNs    0:00 /usr/sbin/winbindd -Y -l /local/errorlog
23885 ?        SN     0:00 /usr/sbin/winbindd -Y -l /local/errorlog
23933 pts/0    R+     0:00 grep winbindd
debugshell# wbinfo --sequence
SERVER2 : 1820
SERVER6 : 280
CLIENT1 : 1
BUILTIN : 1
SERVER1 : 181922
# date
Thu May 25 03:56:11 UTC 2006

11. Samba version number
# wbinfo -V
Version 3.0.20
Comment 1 Björn Jacke 2021-02-10 11:45:03 UTC
I don't think this is an issue any more, there have been many improvements in winbind since the bug was reported. If you still have an issue with 4.13 or newer, please file a new bug report for that.