changeset 4624:5beb1fe35e52 HEAD

"Can't connect to server" message's host was wrong if uris setting was used.
author Timo Sirainen <tss@iki.fi>
date Fri, 22 Sep 2006 16:26:45 +0300
parents b09e8ca4b142
children 97c9db4980fc
files src/auth/db-ldap.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/db-ldap.c	Wed Sep 20 00:16:53 2006 +0300
+++ b/src/auth/db-ldap.c	Fri Sep 22 16:26:45 2006 +0300
@@ -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) {