s4:samldb LDB module - fix the behaviour when changing the "userAccountControl"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 23 May 2011 08:29:17 +0000 (10:29 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 25 May 2011 06:57:09 +0000 (08:57 +0200)
commitb712c7273d2362f1f4ee7cd96f6f30c5035244d9
tree01b9ac420f4f2f7886f4166602f76aee5b10c1e8
parentee0ee5e925dd19d0c185804f41c40564f441cb39
s4:samldb LDB module - fix the behaviour when changing the "userAccountControl"

Ekacnet was not quite right yet but his patch made me think further.
This primary group changing is only needed if the account type changes.
With this patch we do one more search if the "userAccountControl"
changes but we save us from doing these unneeded and wrong modify replace
operations most of the time.

Reviewed-by: abartlet
source4/dsdb/samdb/ldb_modules/samldb.c