[dovecot-cvs] dovecot/src/auth db-ldap.c,1.47,1.48

cras at dovecot.org cras at dovecot.org
Fri Sep 22 16:26:47 EEST 2006


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

Modified Files:
	db-ldap.c 
Log Message:
"Can't connect to server" message's host was wrong if uris setting was used.



Index: db-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/db-ldap.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- db-ldap.c	19 Jun 2006 16:14:47 -0000	1.47
+++ db-ldap.c	22 Sep 2006 13:26:45 -0000	1.48
@@ -351,7 +351,8 @@
 	}
 	if (ret == LDAP_SERVER_DOWN) {
 		i_error("LDAP: Can't connect to server: %s",
-			conn->set.hosts);
+			conn->set.uris != NULL ?
+			conn->set.uris : conn->set.hosts);
 		return FALSE;
 	}
 	if (ret != LDAP_SUCCESS) {



More information about the dovecot-cvs mailing list