[dovecot-cvs] dovecot/src/auth passdb-ldap.c, 1.57, 1.58 userdb-ldap.c, 1.45, 1.46
tss at dovecot.org
tss at dovecot.org
Tue Mar 6 20:50:42 EET 2007
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv15481
Modified Files:
passdb-ldap.c userdb-ldap.c
Log Message:
Don't crash if user_attrs or pass_attrs is empty. It means all the
attributes are returned.
Index: passdb-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-ldap.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- passdb-ldap.c 19 Jan 2007 15:18:24 -0000 1.57
+++ passdb-ldap.c 6 Mar 2007 18:50:37 -0000 1.58
@@ -386,6 +386,7 @@
"base=%s scope=%s filter=%s fields=%s",
ldap_request->base, conn->set.scope,
ldap_request->filter,
+ attr_names == NULL ? "(all)" :
t_strarray_join(attr_names, ","));
db_ldap_search(conn, ldap_request, conn->set.ldap_scope);
Index: userdb-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/userdb-ldap.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- userdb-ldap.c 19 Jan 2007 15:19:32 -0000 1.45
+++ userdb-ldap.c 6 Mar 2007 18:50:37 -0000 1.46
@@ -208,6 +208,7 @@
"base=%s scope=%s filter=%s fields=%s",
request->request.base, conn->set.scope,
request->request.filter,
+ attr_names == NULL ? "(all)" :
t_strarray_join(attr_names, ","));
db_ldap_search(conn, &request->request, conn->set.ldap_scope);
More information about the dovecot-cvs
mailing list