mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
unrecognized objectIdentifer in desc form shall result in
an undefined matched. unrecognized objectIdentifer in OID form shall result in false match.
This commit is contained in:
parent
665272dca1
commit
3bacb800d4
@ -36,7 +36,18 @@ objectClassMatch(
|
||||
ObjectClass *oc = oc_find( value->bv_val );
|
||||
ObjectClass *asserted = oc_find( a->bv_val );
|
||||
|
||||
if( asserted == NULL || oc == NULL ) {
|
||||
if( asserted == NULL ) {
|
||||
if( isdigit( *value.bv_val ) ) {
|
||||
/* OID form, return FALSE */
|
||||
*matchp = 1;
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
/* desc form, return undefined */
|
||||
return LDAP_CONSTRAINT_VIOLATION;
|
||||
}
|
||||
|
||||
if ( oc == NULL ) {
|
||||
return LDAP_CONSTRAINT_VIOLATION;
|
||||
}
|
||||
|
||||
|
@ -187,8 +187,7 @@ int value_find(
|
||||
rc = value_match( &match, ad, mr, vals[i],
|
||||
nval == NULL ? val : nval, &text );
|
||||
|
||||
if( rc == LDAP_SUCCESS && match == 0 )
|
||||
{
|
||||
if( rc == LDAP_SUCCESS && match == 0 ) {
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user