From c7305c4133eca44f2cf10f8b5f11dcfc0c1ff98b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Jul 2010 03:20:57 +0000 Subject: [PATCH] Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax --- servers/slapd/overlays/deref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5