Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax

This commit is contained in:
Howard Chu 2010-07-12 03:20:57 +00:00
parent ce11612e9b
commit c7305c4133

View file

@ -210,7 +210,7 @@ deref_parseCtrl (
}
}
if ( ds->ds_derefAttr->ad_type->sat_syntax != slap_schema.si_syn_distinguishedName ) {
if ( !( ds->ds_derefAttr->ad_type->sat_syntax->ssyn_flags & SLAP_SYNTAX_DN )) {
if ( ctrl->ldctl_iscritical ) {
rs->sr_text = "Dereference control: derefAttr syntax not distinguishedName";
rs->sr_err = LDAP_PROTOCOL_ERROR;