Commit 91bb1bd9 authored by Howard Chu's avatar Howard Chu
Browse files

schema checks

parent cd763910
......@@ -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:"
......
Markdown is supported
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