From ee278bf0c48dbc8b7afc37762ad4f305014a2e2c Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 6 Jun 2010 19:06:58 +0200 Subject: s4:acl LDB module - LDB attribute names should be compared using "ldb_attr_cmp" or "strcasecmp" --- source4/dsdb/samdb/ldb_modules/acl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/samdb/ldb_modules') diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index 46644daeb3..ccc7edf218 100644 --- a/source4/dsdb/samdb/ldb_modules/acl.c +++ b/source4/dsdb/samdb/ldb_modules/acl.c @@ -730,7 +730,7 @@ static int acl_modify(struct ldb_module *module, struct ldb_request *req) for (i=0; i < req->op.mod.message->num_elements; i++){ const struct dsdb_attribute *attr; /* clearTextPassword is not in schema */ - if (strcmp("clearTextPassword", req->op.mod.message->elements[i].name) == 0) { + if (ldb_attr_cmp("clearTextPassword", req->op.mod.message->elements[i].name) == 0) { attr = dsdb_attribute_by_lDAPDisplayName(schema, "unicodePwd"); } else { attr = dsdb_attribute_by_lDAPDisplayName(schema, @@ -751,7 +751,7 @@ static int acl_modify(struct ldb_module *module, struct ldb_request *req) return LDB_ERR_NO_SUCH_ATTRIBUTE; } - if (strcmp("nTSecurityDescriptor", req->op.mod.message->elements[i].name) == 0) { + if (ldb_attr_cmp("nTSecurityDescriptor", req->op.mod.message->elements[i].name) == 0) { modify_sd = true; } else { -- cgit