The following issue has been RESOLVED. 
====================================================================== 
http://dbmail.org/mantis/view.php?id=288 
====================================================================== 
Reported By:                moje
Assigned To:                aaron
====================================================================== 
Project:                    DBMail
Issue ID:                   288
Category:                   Authentication layer
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           SVN Trunk
====================================================================== 
Date Submitted:             04-Jan-06 19:27 CET
Last Modified:              24-Mar-06 12:22 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? 

---------------------------------------------------------------------- 
 moje - 04-Jan-06 21:11  
---------------------------------------------------------------------- 
I made similar fix for me. It's better, than set it globally in config
file.
(my opinion only) 

---------------------------------------------------------------------- 
 aaron - 24-Mar-06 12:22  
---------------------------------------------------------------------- 
Added config option. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-Jan-06 19:27 moje           New Issue                                    
04-Jan-06 20:55 aaron          Note Added: 0000967                          
04-Jan-06 21:11 moje           Note Added: 0000971                          
24-Mar-06 12:22 aaron          Status                   new => resolved     
24-Mar-06 12:22 aaron          Fixed in Version          => SVN Trunk       
24-Mar-06 12:22 aaron          Resolution               open => fixed       
24-Mar-06 12:22 aaron          Assigned To               => aaron           
24-Mar-06 12:22 aaron          Note Added: 0001050                          
======================================================================

Reply via email to