SLAPD_SCHEMA_NOT_COMPAT: working ACLs! (have not tested ACIs)

This commit is contained in:
Kurt Zeilenga 2000-05-29 03:51:26 +00:00
parent 9e5312e166
commit bdf9b0d017

View File

@ -458,6 +458,9 @@ acl_mask(
#ifdef SLAPD_SCHEMA_NOT_COMPAT
int match;
const char *text;
const char *desc = b->a_dn_at->ad_cname->bv_val;
#else
const char *desc = b->a_dn_at;
#endif
Debug( LDAP_DEBUG_ACL, "<= check a_dn_at: %s\n",
@ -482,7 +485,7 @@ acl_mask(
if( match ) {
if ( b->a_dn_self && (val == NULL
|| value_match( &match, b->a_dn_at,
b->a_dn_at->ad_type->sat_equality, &bv, val, &text ) )
b->a_dn_at->ad_type->sat_equality, val, &bv, &text ) )
!= LDAP_SUCCESS
|| match )
{
@ -490,7 +493,7 @@ acl_mask(
}
} else if ( ! b->a_dn_self || val == NULL
|| value_match( &match, b->a_dn_at,
b->a_dn_at->ad_type->sat_equality, &bv, val, &text )
b->a_dn_at->ad_type->sat_equality, val, &bv, &text )
!= LDAP_SUCCESS
|| match )
{