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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: William Craven
Date:  
À: exim-users
Sujet: Re: [Exim] Exim 4.11 LDAP lookup fails to compile
Philip Hazel wrote:

> 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.


I am not using ldapi so I did as Philip suggested and removed the
defined statement; and Exim compiled successfully.

Thanks

Wm.
--
William Craven
ITServices                Email:    William.Craven@???
University of British Columbia        Tel:    +1-604-822-8955
Vancouver, BC, Canada V6T 1Z2        Fax:    +1-604-822-5116