From: Matthias Dieter Wallnöfer Date: Fri, 11 Feb 2011 14:10:04 +0000 (+0100) Subject: s4:acl LDB module - interpret "userAccountControl" as "uint32_t" X-Git-Tag: tevent-0.9.11~660 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7312dacb6346ced62557ed2cc6a733907c7b3401;p=thirdparty%2Fsamba.git s4:acl LDB module - interpret "userAccountControl" as "uint32_t" 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 --- diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index a96ea374a75..20f09a57f83 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);