Commit 3bacb800 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

unrecognized objectIdentifer in desc form shall result in

an undefined matched.  unrecognized objectIdentifer in OID form
shall result in false match.
parent 665272dc
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment