[dovecot-cvs] dovecot/src/auth db-ldap.c,1.40,1.41

cras at dovecot.org cras at dovecot.org
Thu Apr 13 14:49:01 EEST 2006


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

Modified Files:
	db-ldap.c 
Log Message:
If LDAP library didn't have ldap_initialize() function, we always complained
about the URI settings.



Index: db-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/db-ldap.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- db-ldap.c	12 Feb 2006 10:03:39 -0000	1.40
+++ db-ldap.c	13 Apr 2006 11:48:58 -0000	1.41
@@ -429,7 +429,7 @@
 	if (conn->set.uris == NULL && conn->set.hosts == NULL)
 		i_fatal("LDAP: No uris or hosts set");
 #ifndef LDAP_HAVE_INITIALIZE
-	if (conn->set.uris == NULL) {
+	if (conn->set.uris != NULL) {
 		i_fatal("LDAP: Dovecot compiled without support for LDAP uris "
 			"(ldap_initialize not found)");
 	}



More information about the dovecot-cvs mailing list