dovecot-2.0: ldap: Log a warning if iterate_attrs has other fiel...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Oct 15 15:28:04 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/5cc31ecf199e
changeset: 12269:5cc31ecf199e
user: Timo Sirainen <tss at iki.fi>
date: Fri Oct 15 13:27:59 2010 +0100
description:
ldap: Log a warning if iterate_attrs has other fields than 'user'.
diffstat:
src/auth/userdb-ldap.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r df6f5d270a46 -r 5cc31ecf199e src/auth/userdb-ldap.c
--- a/src/auth/userdb-ldap.c Thu Oct 14 18:20:58 2010 +0100
+++ b/src/auth/userdb-ldap.c Fri Oct 15 13:27:59 2010 +0100
@@ -169,6 +169,11 @@
request->auth_request,
conn->iterate_attr_map);
while (db_ldap_result_iterate_next_all(ldap_iter, &name, &values)) {
+ if (strcmp(name, "user") != 0) {
+ i_warning("ldap: iterate: "
+ "Ignoring field not named 'user': %s", name);
+ continue;
+ }
for (; *values != NULL; values++) {
ctx->continued = FALSE;
ctx->ctx.callback(*values, ctx->ctx.context);
More information about the dovecot-cvs
mailing list