From: Howard Chu Date: Mon, 12 Jul 2010 03:20:57 +0000 (+0000) Subject: Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax X-Git-Tag: MIGRATION_CVS2GIT~549 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7305c4133eca44f2cf10f8b5f11dcfc0c1ff98b;p=openldap Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax --- diff --git a/servers/slapd/overlays/deref.c b/servers/slapd/overlays/deref.c index d3e29921f1..1c247832a7 100644 --- a/servers/slapd/overlays/deref.c +++ b/servers/slapd/overlays/deref.c @@ -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;