dsdb-acl: fix the order of special and system checks
authorStefan Metzmacher <metze@samba.org>
Thu, 17 Jan 2013 07:51:23 +0000 (08:51 +0100)
committerMatthieu Patou <mat@matws.net>
Thu, 17 Jan 2013 08:20:47 +0000 (00:20 -0800)
commit70460605c6132ffbc6be825c24f188674c0ac979
tree29b41001f424c057b8f8b34cc20b7026aa9c0c7b
parenta0c59b4da1c5d8637c92e65c7cf54bb82bc8fca5
dsdb-acl: fix the order of special and system checks

First we check for a special dn, then for system access.
All allocations happen after this checks in order to avoid
allocations we won't use.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Matthieu Patou <mat@matws.net>
source4/dsdb/samdb/ldb_modules/acl.c