Here's the missing part from the previous patch: auth_* should pay attention
to ldapmailhost, too.

--- qmail-b4patch/checkpassword.c       Tue Aug  7 18:08:36 2001
+++ qmail/checkpassword.c       Tue Aug  7 18:11:56 2001
@@ -44,6 +44,7 @@
 #endif
 
 extern stralloc qldap_me;
+extern stralloc qldap_mailhost;
 extern stralloc qldap_objectclass;
 
 int rebind; 
@@ -174,7 +175,7 @@
        
 #ifdef QLDAP_CLUSTER
        /* for cluster check if I'm on the right host */
-       if ( cluster && info.host && str_diff(qldap_me.s, info.host) ) {
+       if ( cluster && info.host && str_diff(qldap_me.s, info.host) && 
+str_diff(qldap_mailhost.s, info.host) ) {
                /* hostname is different, so I reconnect */
                log(8, "check_ldap: forwarding session to %s\n", info.host);
                forward_session(info.host, login->s, authdata->s);

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany               *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)

Reply via email to