s3: Avoid races to change the machine password in winbind
commitc4c984d97d45964e91625f69d7216cc68444ba3f
authorVolker Lendecke <vl@samba.org>
Thu, 19 Nov 2009 16:22:27 +0000 (19 17:22 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 19 Nov 2009 18:04:39 +0000 (19 19:04 +0100)
tree68b13da56f67d07fbfd746da2eddd3800e43b0a4
parent882350b0abe87ca7b3542996acfabc6d4bff5509
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.
source3/winbindd/winbindd_dual.c