mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
schema checks
This commit is contained in:
parent
cd76391078
commit
91bb1bd980
@ -80,7 +80,8 @@ ldap_back_compare(
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ( op->oq_compare.rs_ava->aa_desc == slap_schema.si_ad_objectClass ) {
|
||||
if ( op->orc_ava->aa_desc == slap_schema.si_ad_objectClass
|
||||
|| op->orc_ava->a_desc == slap_schema.si_ad_structuralObjectClass ) {
|
||||
ldap_back_map(&li->rwmap.rwm_oc, &op->orc_ava->aa_value,
|
||||
&mapped_val, BACKLDAP_MAP);
|
||||
if (mapped_val.bv_val == NULL || mapped_val.bv_val[0] == '\0') {
|
||||
|
@ -188,7 +188,7 @@ map_attr_value(
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( strcmp( ad->ad_type->sat_syntax->ssyn_oid, SLAPD_DN_SYNTAX ) == 0 )
|
||||
if ( ad->ad_type->sat_syntax == slap_schema.si_syn_distinguishedName )
|
||||
{
|
||||
dncookie fdc = *dc;
|
||||
|
||||
|
@ -146,9 +146,9 @@ ldap_back_dn_massage(
|
||||
strncpy( res->bv_val, dn->bv_val, diff );
|
||||
strcpy( &res->bv_val[diff], dc->rwmap->rwm_suffix_massage[i+dst].bv_val );
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG ( BACK_LDAP, ARGS,
|
||||
"ldap_back_dn_massage: converted \"%s\" to \"%s\"\n",
|
||||
dn->bv_val, res->bv_val, 0 );
|
||||
LDAP_LOG ( BACK_LDAP, ARGS,
|
||||
"ldap_back_dn_massage: converted \"%s\" to \"%s\"\n",
|
||||
dn->bv_val, res->bv_val, 0 );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_ARGS,
|
||||
"ldap_back_dn_massage:"
|
||||
|
Loading…
Reference in New Issue
Block a user