s4-dsacl: Fixed incorrect handling of privileges in sec_access_check_ds
authorNadezhda Ivanova <nivanova@symas.com>
Mon, 14 Oct 2013 23:06:38 +0000 (02:06 +0300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:12 +0000 (12:46 +0200)
commit8bf3d4e21dbe4e81121399fcaba06ce115dd2987
tree8a6f105f81ddff6eadb5341f753da4576e2cebbf
parentee2cf1d4d7353644a3e551f7b12390c1568e5df3
s4-dsacl: Fixed incorrect handling of privileges in sec_access_check_ds

Restore and backup privileges are not relevant to ldap
access checks, and the TakeOwnership privilege should
grant write_owner right

Signed-off-by: Nadezhda Ivanova <nivanova@symas.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit daefca2a1aaa9f4e0ca2f17ef4c9a71412c081ea)
libcli/security/access_check.c
source4/dsdb/tests/python/acl.py
source4/dsdb/tests/python/ldap.py