A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=288 
====================================================================== 
Reported By:                moje
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   288
Category:                   Authentication layer
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             04-Jan-06 19:27 CET
Last Modified:              04-Jan-06 20:55 CET
====================================================================== 
Summary:                    LDAP bind problem (using LDAPv2 instead of LDAPv3)
Description: 
ldapauth is unable to bind to OpenLDAP, because of using LDAPv2 by default,
but default OpenLDAP servers settings allows only LDAPv3 protocol.

====================================================================== 

---------------------------------------------------------------------- 
 aaron - 04-Jan-06 20:55  
---------------------------------------------------------------------- 
The code does not specify which LDAP version to speak. This must be a
library default. Perhaps the library also reads the config file?

If not, we should add our own config option, and then some code:

    ...ldap_init...

    if (_ldap_cfg.version == 3) {
        int version;
        version = LDAP_VERSION3;
        ldap_set_option(_ldap_conn, LDAP_OPT_PROTOCOL_VERSION, &version);
    }

    ...ldap_bind...

Any other ideas, or should I get this into SVN? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-Jan-06 19:27 moje           New Issue                                    
04-Jan-06 20:55 aaron          Note Added: 0000967                          
======================================================================

Reply via email to