summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_setpwent.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-19 17:22:27 +0100
committerVolker Lendecke <vl@samba.org>2009-11-19 19:04:39 +0100
commitc4c984d97d45964e91625f69d7216cc68444ba3f (patch)
tree68b13da56f67d07fbfd746da2eddd3800e43b0a4 /source3/winbindd/winbindd_setpwent.c
parent882350b0abe87ca7b3542996acfabc6d4bff5509 (diff)
downloadsamba-c4c984d97d45964e91625f69d7216cc68444ba3f.tar.gz
samba-c4c984d97d45964e91625f69d7216cc68444ba3f.tar.bz2
samba-c4c984d97d45964e91625f69d7216cc68444ba3f.zip
s3: Avoid races to change the machine password in winbind
The machine password handler has code to deal with every node in the cluster trying to change the machine password at the same time. However, it is not very nice to the DC if everyone tries this simultaneously. This adds a random 0-255 second offset to our timed event. When this fires a bit later than strictly calculated, someone else might have stepped in and have already changed it. The timed event handler will handle this gracefully, it won't even try to do it again.
Diffstat (limited to 'source3/winbindd/winbindd_setpwent.c')
0 files changed, 0 insertions, 0 deletions