mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
SLAPD_SCHEMA_NOT_COMPAT: at least make filters not loop
This commit is contained in:
parent
5ab4c575f4
commit
3657e63a17
@ -260,7 +260,9 @@ test_ava_filter(
|
|||||||
for ( i = 0; a->a_vals[i] != NULL; i++ ) {
|
for ( i = 0; a->a_vals[i] != NULL; i++ ) {
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
#ifndef SLAPD_SCHEMA_NOT_COMPAT
|
#ifdef SLAPD_SCHEMA_NOT_COMPAT
|
||||||
|
rc = 0;
|
||||||
|
#else
|
||||||
rc = value_cmp( a->a_vals[i], &ava->ava_value, a->a_syntax,
|
rc = value_cmp( a->a_vals[i], &ava->ava_value, a->a_syntax,
|
||||||
3 );
|
3 );
|
||||||
#endif
|
#endif
|
||||||
|
@ -128,13 +128,18 @@ value_normalize(
|
|||||||
return LDAP_INAPPROPRIATE_MATCHING;
|
return LDAP_INAPPROPRIATE_MATCHING;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = (mr->smr_normalize)( usage,
|
if( mr->smr_normalize ) {
|
||||||
ad->ad_type->sat_syntax,
|
rc = (mr->smr_normalize)( usage,
|
||||||
mr, in, out );
|
ad->ad_type->sat_syntax,
|
||||||
|
mr, in, out );
|
||||||
|
|
||||||
if( rc != LDAP_SUCCESS ) {
|
if( rc != LDAP_SUCCESS ) {
|
||||||
*text = "unable to normalize value";
|
*text = "unable to normalize value";
|
||||||
return LDAP_INVALID_SYNTAX;
|
return LDAP_INVALID_SYNTAX;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
*out = ber_bvdup( in );
|
||||||
}
|
}
|
||||||
|
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user