]> git.sur5r.net Git - openldap/commitdiff
ITS#1636 fix
authorKurt Zeilenga <kurt@openldap.org>
Mon, 11 Mar 2002 03:05:43 +0000 (03:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 11 Mar 2002 03:05:43 +0000 (03:05 +0000)
servers/slapd/sasl.c

index a5362fc737fcd5d43a6b7e66a07a4949edd62aa2..18d2847f6c1aece35be9628e2d50f9d2b8074fa4 100644 (file)
@@ -225,7 +225,7 @@ int slap_sasl_getdn( Connection *conn, char *id,
                p = slap_strcopy( p, c1 );
                ch_free( c1 );
 
-               if( user_realm ) {
+               if( user_realm && *user_realm ) {
                        p = slap_strcopy( p, ",cn=" );
                        p = slap_strcopy( p, user_realm );
                }