diff options
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/acl.c | 4 |
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 { |