From bdf9b0d017c203109d55b9d4c67c59bffc1fa6f8 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 29 May 2000 03:51:26 +0000 Subject: [PATCH] SLAPD_SCHEMA_NOT_COMPAT: working ACLs! (have not tested ACIs) --- servers/slapd/acl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index e89f9716b9..e01b2beaa8 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -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 ) { -- 2.39.5