dovecot-2.1: ldap: Fixed auth binds for nonexistent users with s...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 16 16:59:32 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/d00c95f33643
changeset: 13479:d00c95f33643
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 12 14:02:30 2011 +0300
description:
ldap: Fixed auth binds for nonexistent users with some LDAP servers.
diffstat:
src/auth/passdb-ldap.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r 0f63b7c5dd7c -r d00c95f33643 src/auth/passdb-ldap.c
--- a/src/auth/passdb-ldap.c Thu Sep 08 16:24:18 2011 +0300
+++ b/src/auth/passdb-ldap.c Mon Sep 12 14:02:30 2011 +0300
@@ -157,6 +157,10 @@
}
auth_request_log_info(auth_request, "ldap", "%s", str);
passdb_result = PASSDB_RESULT_PASSWORD_MISMATCH;
+ } else if (ret == LDAP_NO_SUCH_OBJECT) {
+ passdb_result = PASSDB_RESULT_USER_UNKNOWN;
+ auth_request_log_info(auth_request, "ldap",
+ "unknown user");
} else {
auth_request_log_error(auth_request, "ldap",
"ldap_bind() failed: %s",
More information about the dovecot-cvs
mailing list