mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
SLAPD_SCHEMA_NOT_COMPAT: working ACLs! (have not tested ACIs)
This commit is contained in:
parent
9e5312e166
commit
bdf9b0d017
@ -458,6 +458,9 @@ acl_mask(
|
|||||||
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
||||||
int match;
|
int match;
|
||||||
const char *text;
|
const char *text;
|
||||||
|
const char *desc = b->a_dn_at->ad_cname->bv_val;
|
||||||
|
#else
|
||||||
|
const char *desc = b->a_dn_at;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_ACL, "<= check a_dn_at: %s\n",
|
Debug( LDAP_DEBUG_ACL, "<= check a_dn_at: %s\n",
|
||||||
@ -482,7 +485,7 @@ acl_mask(
|
|||||||
if( match ) {
|
if( match ) {
|
||||||
if ( b->a_dn_self && (val == NULL
|
if ( b->a_dn_self && (val == NULL
|
||||||
|| value_match( &match, b->a_dn_at,
|
|| 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
|
!= LDAP_SUCCESS
|
||||||
|| match )
|
|| match )
|
||||||
{
|
{
|
||||||
@ -490,7 +493,7 @@ acl_mask(
|
|||||||
}
|
}
|
||||||
} else if ( ! b->a_dn_self || val == NULL
|
} else if ( ! b->a_dn_self || val == NULL
|
||||||
|| value_match( &match, b->a_dn_at,
|
|| 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
|
!= LDAP_SUCCESS
|
||||||
|| match )
|
|| match )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user