dovecot-1.1: ldap: When using the same LDAP attribute multiple t...
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 12 20:44:21 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/0a60aba9477d
changeset: 8265:0a60aba9477d
user: Timo Sirainen <tss at iki.fi>
date: Tue May 12 13:44:12 2009 -0400
description:
ldap: When using the same LDAP attribute multiple times, give an error message.
diffstat:
1 file changed, 4 insertions(+)
src/auth/db-ldap.c | 4 ++++
diffs (14 lines):
diff -r 4bee3b5f6e84 -r 0a60aba9477d src/auth/db-ldap.c
--- a/src/auth/db-ldap.c Mon May 11 19:14:20 2009 -0400
+++ b/src/auth/db-ldap.c Tue May 12 13:44:12 2009 -0400
@@ -945,6 +945,10 @@ void db_ldap_set_attrs(struct ldap_conne
if (*name != '\0' &&
(skip_attr == NULL || strcmp(skip_attr, value) != 0)) {
+ if (hash_lookup(attr_map, name) != NULL) {
+ i_fatal("ldap: LDAP attribute '%s' used multiple times. This is currently unsupported.",
+ name);
+ }
hash_insert(attr_map, name, value);
(*attr_names_r)[j++] = name;
}
More information about the dovecot-cvs
mailing list