mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
cleanup objectclass detection
This commit is contained in:
parent
45f4e3602b
commit
985dc00b30
2 changed files with 2 additions and 4 deletions
|
|
@ -100,8 +100,7 @@ ldap_back_compare(
|
|||
}
|
||||
#endif /* !ENABLE_REWRITE */
|
||||
|
||||
if ( ava->aa_desc->ad_type->sat_oid
|
||||
== slap_schema.si_ad_objectClass->ad_type->sat_oid ) {
|
||||
if ( ava->aa_desc == slap_schema.si_ad_objectClass ) {
|
||||
ldap_back_map(&li->oc_map, &ava->aa_desc->ad_cname, &mapped_oc,
|
||||
BACKLDAP_MAP);
|
||||
if (mapped_oc.bv_val == NULL || mapped_oc.bv_val[0] == '\0') {
|
||||
|
|
|
|||
|
|
@ -153,8 +153,7 @@ meta_back_compare(
|
|||
/*
|
||||
* if attr is objectClass, try to remap the value
|
||||
*/
|
||||
if ( ava->aa_desc->ad_type->sat_oid
|
||||
== slap_schema.si_ad_objectClass->ad_type->sat_oid ) {
|
||||
if ( ava->aa_desc == slap_schema.si_ad_objectClass ) {
|
||||
ldap_back_map( &li->targets[ i ]->oc_map,
|
||||
&ava->aa_value, &mapped_value,
|
||||
BACKLDAP_MAP );
|
||||
|
|
|
|||
Loading…
Reference in a new issue