From: Luke Howard Date: Wed, 4 Dec 2002 04:13:20 +0000 (+0000) Subject: Treat all EXTERNAL DNs are already normalized. X-Git-Tag: NO_SLAP_OP_BLOCKS~733 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a6edb2ae36f6005ac1fc63feab89e35c1c445487;p=openldap Treat all EXTERNAL DNs are already normalized. --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index c97c144321..f3e9209dc4 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -1550,18 +1550,15 @@ int slap_sasl_getdn( Connection *conn, char *id, int len, * is already normalized, so copy it and skip normalization. */ if( flags & SLAP_GETDN_AUTHCID ) { -#ifdef HAVE_TLS - if( conn->c_is_tls && - conn->c_sasl_bind_mech.bv_len == ext_bv.bv_len && + if( conn->c_sasl_bind_mech.bv_len == ext_bv.bv_len && strcasecmp( ext_bv.bv_val, conn->c_sasl_bind_mech.bv_val ) == 0 ) { - /* X.509 DN is already normalized */ + /* EXTERNAL DNs are already normalized */ do_norm = 0; is_dn = SET_DN; ber_str2bv( id, len, 1, dn ); } else -#endif { /* convert to u: form */ is_dn = SET_U;