diff options
author | Ralph Boehme <slow@samba.org> | 2018-03-08 17:35:15 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-03-13 23:48:28 +0100 |
commit | 20609aa260f0a84dff4574df4a1564884a813f92 (patch) | |
tree | f45bc8f7087d4324ebc9d1bc0d6aec1e62cf8fb7 /source4 | |
parent | 8497d2090900b252853278f29a4aaf3bce7515da (diff) | |
download | samba-20609aa260f0a84dff4574df4a1564884a813f92.tar.gz |
s4: dsdb/password_hash: use UF_TRUST_ACCOUNT_MASK
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Mar 13 23:48:28 CET 2018 on sn-devel-144
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/password_hash.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 1c1de09de77..c872f20eb23 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -3211,9 +3211,7 @@ static int setup_io(struct ph_context *ac, /* Only non-trust accounts have restrictions (possibly this test is the * wrong way around, but we like to be restrictive if possible */ - io->u.restrictions = !(io->u.userAccountControl - & (UF_INTERDOMAIN_TRUST_ACCOUNT | UF_WORKSTATION_TRUST_ACCOUNT - | UF_SERVER_TRUST_ACCOUNT)); + io->u.restrictions = !(io->u.userAccountControl & UF_TRUST_ACCOUNT_MASK); if (io->u.is_krbtgt) { io->u.restrictions = 0; |