From 7312dacb6346ced62557ed2cc6a733907c7b3401 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 11 Feb 2011 15:10:04 +0100 Subject: s4:acl LDB module - interpret "userAccountControl" as "uint32_t" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the same way as it is done in the samldb LDB module. Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Tue Feb 15 12:08:26 CET 2011 on sn-devel-104 --- source4/dsdb/samdb/ldb_modules/acl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index a96ea374a7..20f09a57f8 100644 --- a/source4/dsdb/samdb/ldb_modules/acl.c +++ b/source4/dsdb/samdb/ldb_modules/acl.c @@ -436,7 +436,7 @@ static int acl_sDRightsEffective(struct ldb_module *module, static int acl_validate_spn_value(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, const char *spn_value, - int userAccountControl, + uint32_t userAccountControl, const char *samAccountName, const char *dnsHostName, const char *netbios_name, @@ -544,7 +544,7 @@ static int acl_check_spn(TALLOC_CTX *mem_ctx, struct ldb_result *netbios_res; struct ldb_message_element *el; struct ldb_dn *partitions_dn = samdb_partitions_dn(ldb, tmp_ctx); - int userAccountControl; + uint32_t userAccountControl; const char *samAccountName; const char *dnsHostName; const char *netbios_name; @@ -597,7 +597,7 @@ static int acl_check_spn(TALLOC_CTX *mem_ctx, return ret; } - userAccountControl = ldb_msg_find_attr_as_int(acl_res->msgs[0], "userAccountControl", 0); + userAccountControl = ldb_msg_find_attr_as_uint(acl_res->msgs[0], "userAccountControl", 0); dnsHostName = ldb_msg_find_attr_as_string(acl_res->msgs[0], "dnsHostName", NULL); samAccountName = ldb_msg_find_attr_as_string(acl_res->msgs[0], "samAccountName", NULL); -- cgit