Hi there. Attached is a patch adding support for the alternative LDAP DSN syntax like "ldapi://%2fvar%2frun%2fopenldap%2fldapi/" against 2_2_branch by calling ldap_initialize() instead of ldap_init().
SSL/TLS ("ldaps://foo.bar") might also work but not tested yet. Of course "ldap://127.0.0.1" or "ldap://127.0.0.1:389" is working. The patch contains the following changes. a) Add test checking the availability of ldap_initialize() in acinclude.m4 because older OpenLDAP doesn't have it. b) Add the new LDAP configuration directive "URI" for the alternative LDAP DSN in dbmail.conf. c) Change ldap_init() to ldap_initialize() and add fallback used when ldap_initialize() isn't available in modules/authldap.c. If the "URI" value isn't empty though there's no ldap_initialize() support, the warning is generated instead of using the "URI" value. Note that, according to LDAP_OPEN(3), ldap_init() is deprecated. Thanks. -- UEMURA (fka. MAENAKA) Tetsuya <[EMAIL PROTECTED]>
ldapi.diff
Description: Binary data
_______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev