]> git.sur5r.net Git - openldap/commitdiff
Check for SLAP_SYNTAX_DN flag instead of distinguishedName syntax
authorHoward Chu <hyc@openldap.org>
Mon, 12 Jul 2010 03:20:57 +0000 (03:20 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 12 Jul 2010 03:20:57 +0000 (03:20 +0000)
servers/slapd/overlays/deref.c

index d3e29921f1b05e9580ce1cb55d23902e712f3f63..1c247832a747d77bde4eaa30f464392cd84913c9 100644 (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;