summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-06 19:06:58 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-07 14:47:24 +0200
commitee278bf0c48dbc8b7afc37762ad4f305014a2e2c (patch)
treeb62ec20349427595e1ef1b5e4079f501041fb0d7 /source4/dsdb/samdb/ldb_modules
parent566d13c5d11ae832285c09f74d25ffdcf0397735 (diff)
downloadsamba-ee278bf0c48dbc8b7afc37762ad4f305014a2e2c.tar.gz
samba-ee278bf0c48dbc8b7afc37762ad4f305014a2e2c.tar.bz2
samba-ee278bf0c48dbc8b7afc37762ad4f305014a2e2c.zip
s4:acl LDB module - LDB attribute names should be compared using "ldb_attr_cmp" or "strcasecmp"
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/acl.c4
1 files changed, 2 insertions, 2 deletions
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 {