The following issue has been ACKNOWLEDGED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=612 
====================================================================== 
Reported By:                vugluskr
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   612
Category:                   Authentication layer
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
target:                      
====================================================================== 
Date Submitted:             17-Jun-07 15:51 CEST
Last Modified:              03-Jul-07 22:33 CEST
====================================================================== 
Summary:                    pop/imap/lmtp servers die when user logining and
LDAP connection is lost
Description: 
When the dbmail servers detect that ldap connection is lost, they try to
reconnect  to LDAP server but reconnect code looks broken. 

Try to explain...
modules/authldap.c:260
static int auth_reconnect(void)
{
        auth_disconnect();
        return auth_connect();
}
When it call auth_disconnect then called not auth_disconnect defined at
modules/authldap.c:218 but auth_disconnect defined at authmodule.c:121.
The same  thing happend and with auth_connect
I think this is incorrect behavior, becouse authmodule.c:auth_disconnect
and authmodule.c:auth_connect reload authldap plugin. Taht, in turn, could
lead to uncertain results.

And one more problem I have with LDAP connection - sometimes daemon catch
SIGPIPE in ldap funcions. It always happend in ldap_unbind and sometimes
in ldap_search_s when LDAP connect is lost.

I try to fix both issues, but I don't think that I found best solutions.

LDAP server is Microsoft windows 2003(PDC)
====================================================================== 

---------------------------------------------------------------------- 
 aaron - 17-Jun-07 18:01  
---------------------------------------------------------------------- 
Looks like we need a SIGPIPE handler that triggers an LDAP reconnect...
*reads your patch*... actually, it looks pretty good!

I found some relevant information here, looks like the same sort of
information you used to write your patch:
http://www.openldap.org/lists/openldap-devel/200204/msg00015.html 

---------------------------------------------------------------------- 
 paul - 03-Jul-07 22:33  
---------------------------------------------------------------------- 
The part of the patch concerning the SIGPIPE was applied. 

I've rejected the function renaming part (for now). That needs seperate
discussion because if it's true that a call to a local function from with
a module leads to module reloading we should call Houston. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
17-Jun-07 15:51 vugluskr       New Issue                                    
17-Jun-07 15:51 vugluskr       File Added: dbmail-2.2.5-fixldap.patch           
        
17-Jun-07 18:01 aaron          Note Added: 0002246                          
03-Jul-07 22:33 paul           Note Added: 0002275                          
03-Jul-07 22:33 paul           Severity                 major => minor      
03-Jul-07 22:33 paul           Status                   new => acknowledged 
======================================================================

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to