From 7a92d4af1f039cf7f5c1038ff546db6896b32099 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 12 Nov 2006 00:54:37 +0000 Subject: [PATCH] Short-circuit the mapping search if more than 1 entry is found --- servers/slapd/saslauthz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 66bd6a6bae..21f191b533 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -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 ); -- 2.39.5