summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldap/servers/plugins/acl/acl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldap/servers/plugins/acl/acl.c b/ldap/servers/plugins/acl/acl.c
index d62796fc..df2f4e42 100644
--- a/ldap/servers/plugins/acl/acl.c
+++ b/ldap/servers/plugins/acl/acl.c
@@ -351,8 +351,9 @@ acl_access_allowed(
slapi_attr_get_syntax_oid_copy(sa, &oid);
/* We only want to perform this check if the attribute is
- * defined using the DN syntax. */
- if (oid && (strcasecmp(oid, DN_SYNTAX_OID) == 0)) {
+ * defined using the DN or Name And Optional UID syntaxes. */
+ if (oid && ((strcasecmp(oid, DN_SYNTAX_OID) == 0) ||
+ (strcasecmp(oid, NAMEANDOPTIONALUID_SYNTAX_OID) == 0))) {
/* should use slapi_sdn_compare() but that'a an extra malloc/free */
char *dn_val_to_write = slapi_dn_normalize(slapi_ch_strdup(val->bv_val));
if ( aclpb->aclpb_authorization_sdn &&