[dovecot-cvs] dovecot/src/auth passdb-ldap.c, 1.44.2.12, 1.44.2.13 userdb-ldap.c, 1.40.2.5, 1.40.2.6

tss at dovecot.org tss at dovecot.org
Tue Mar 6 20:50:37 EET 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv15474

Modified Files:
      Tag: branch_1_0
	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.44.2.12
retrieving revision 1.44.2.13
diff -u -d -r1.44.2.12 -r1.44.2.13
--- passdb-ldap.c	19 Jan 2007 15:18:20 -0000	1.44.2.12
+++ passdb-ldap.c	6 Mar 2007 18:50:34 -0000	1.44.2.13
@@ -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.40.2.5
retrieving revision 1.40.2.6
diff -u -d -r1.40.2.5 -r1.40.2.6
--- userdb-ldap.c	19 Jan 2007 15:19:29 -0000	1.40.2.5
+++ userdb-ldap.c	6 Mar 2007 18:50:34 -0000	1.40.2.6
@@ -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