dsdb: Improve userAccountControl handling
authorAndrew Bartlett <abartlet@samba.org>
Wed, 10 Dec 2014 01:15:54 +0000 (14:15 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 22 Jan 2015 06:50:06 +0000 (07:50 +0100)
commit735605a6b0ad3ed98d46d1df920e64879a8c69cc
treeaaed70718a5d56b74a7fef310ed5e20cb638c93a
parentbf99abb5db91839d8e3589722fe9be000f857691
dsdb: Improve userAccountControl handling

We now always check the ACL and invarient rules using the same function

The change to libds is because UF_PARTIAL_SECRETS_ACCOUNT is a flag,
not an account type

This list should only be of the account exclusive account type bits.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10993

Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/dsdb/samdb/ldb_modules/samldb.c
source4/dsdb/tests/python/user_account_control.py