Re: [Exim] Exim 4.11 LDAP lookup fails to compile

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: William Craven
CC: exim-users
題目: Re: [Exim] Exim 4.11 LDAP lookup fails to compile
On Wed, 11 Dec 2002, William Craven wrote:

> Looking at /usr/include/ldap.h and /usr/include/lber.h there is no
> reference to 'lud_scheme'. Seems like Solaris LDAP client libraries do
> not support ldapi - here is the relevant bit of code where it is failing


My testing was all done with OpenLDAP, but the original idea for the
code came from a contributor. I'm not sure which of use put in that
Solaris check.

>   #if defined LDAP_LIB_OPENLDAP2 || defined LDAP_LIB_SOLARIS
>   else if (strncmp(ludp->lud_scheme, "ldapi", 5) == 0)
>     {
>     *errmsg = string_sprintf("ldapi requires an absolute path (\"%s\"
> given)",
>       host);
>     goto RETURN_ERROR;
>     }
>   #endif

>
> I maybe missing something. Any ideas from list ?


You should probably be OK if you just remove "|| defined LDAP_LIB_SOLARIS"
from the code. Especially if you don't want to use ldapi.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.