]> git.sur5r.net Git - openldap/commitdiff
Short-circuit the mapping search if more than 1 entry is found
authorHoward Chu <hyc@openldap.org>
Sun, 12 Nov 2006 00:54:37 +0000 (00:54 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 12 Nov 2006 00:54:37 +0000 (00:54 +0000)
servers/slapd/saslauthz.c

index 66bd6a6bae13ba06d1f3a639e8f745eee467d72d..21f191b5332471b4c5ed930e564f16e25e74afc0 100644 (file)
@@ -1606,7 +1606,7 @@ static int sasl_sc_sasl2dn( Operation *op, SlapReply *rs )
                Debug( LDAP_DEBUG_TRACE,
                        "%s: slap_sc_sasl2dn: search DN returned more than 1 entry\n",
                        op->o_log_prefix, 0, 0 );
-               return LDAP_OTHER;
+               return LDAP_UNAVAILABLE; /* short-circuit the search */
        }
 
        ber_dupbv_x( ndn, &rs->sr_entry->e_nname, op->o_tmpmemctx );