From: Mark Valence Date: Mon, 8 Nov 1999 18:50:51 +0000 (+0000) Subject: Added a "dnattr" case for ACIs (still need to check the ACI OID). X-Git-Tag: UCDATA_2_4~228 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23cb3a0555fb7af6979c0062f5060630d7f2192f;p=openldap Added a "dnattr" case for ACIs (still need to check the ACI OID). --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 9905c9dca3..ac2500cf4d 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -994,6 +994,22 @@ aci_mask ( if (strcasecmp(op->o_ndn, e->e_ndn) == 0) return(1); + } else if (aci_strbvcmp( "dnattr", &bv ) == 0) { + Attribute *at; + char *attrname; + + attrname = aci_bvstrdup(&sdn); + at = attr_find(e->e_attrs, attrname); + ch_free(attrname); + + if (at != NULL) { + bv.bv_val = op->o_ndn; + bv.bv_len = strlen( bv.bv_val ); + + if (value_find( at->a_vals, &bv, at->a_syntax, 3 ) == 0 ) + return(1); + } + } else if (aci_strbvcmp( "group", &bv ) == 0) { if (aci_group_member(&sdn, "groupOfNames", "member", be, e, op, matches)) return(1);