View Single Post

  #3 (permalink)  
Old 06-26-2003
 
Posts: n/a
Default Re: compiling with LDAP auth on solaris 9

In article <6b51f4a8.0306231633.352e439@posting.google.com> ,
rbadilla@cesa.co.cr (Randall) writes:
> Hi all:
> I'm trying to compile the apache2*.46 on a Sparc machine with Solaris
> 9, openldap compiled and installed on /usr/local/openldap and Sun Ldap
> libraries....
> As far I'm using this env variables:
> LIBS="-L/usr/local/lib/openldap"
> INCLUDES="/usr/local/include/openldap"
> SHLIB_PATH="-R/usr/local/openldap/lib"
> ./configure --enable-auth-dbm --enable-auth-digest --enable-isapi \
> --with-ldap --enable-ldap --enable-auth-ldap --enable-ext-filter \
> --enable-deflate --enable-expires --enable-headers \
> --enable-http --enable-dav --enable-info --enable-cgi \
> --enable-dav-fs --enable-vhost-alias --enable-speling \
> --enable-rewrite --enable-so
> After sucessfully create the makefiles I get this error on
> util_ldap_connection_open function.. with 'LDAP_OPT_X_TLS_HARD'
>
> Digging on the headers files the Sun /usr/include/ldap.h doesn't have
> the
> LDAP_OPT_X_TLS_HARD of the /usr/local/openldap/include/ldap.h.
> Also I found that srclib/apr-util/include/apr_ldap.h have this "
> #define APR_HAS_NETSCAPE_LDAPSDK @apu_has_ldap_netscape@
> #define APR_HAS_NOVELL_LDAPSDK @apu_has_ldap_novell@
> #define APR_HAS_OPENLDAP_LDAPSDK @apu_has_ldap_openldap@
> #define APR_HAS_MICROSOFT_LDAPSDK @apu_has_ldap_microsoft@
> #define APR_HAS_OTHER_LDAPSDK @apu_has_ldap_other@"


If you look further youll see that its not supported anyway...

>
> So I got 2 questions:
> a) how I tell to configure set APR_HAS_OPENLDAP_LDAPSDK or force the
> use of openldap ldap.h and its libraries
> b) if I sucessfully compile this apache; which are the functional
> implications; of course I will need openldap and openssl libraries
> installed. but I there other implications
> c)how I can modify the srclib/apr-util/include/apr_ldap.h.in to use
> something like
> " if APR_HAS_OPENLDAP_LDAPSDK then
> #define "/usr/local/openldap/include/ldap.h"
> #define "/usr/local/openldap/include/lber.h"

Dont bother.
Start from scratch. Wipe the old http source
Try something like this:

CPPFLAGS="-I/usr/local/include/openldap" LDFLAGS="-L/usr/local/openldap/lib -R/usr/local/openldap/lib" ./configure --enable-mods-shared=all \
--enable-auth-dbm --enable-auth-digest --enable-isapi \
--with-ldap --enable-ldap --enable-auth-ldap --enable-ext-filter \
--enable-deflate --enable-expires --enable-headers \
--enable-http --enable-dav --enable-info --enable-cgi \
--enable-dav-fs --enable-vhost-alias --enable-speling \
--enable-rewrite --enable-so --enable-ssl --with-ssl

Or some variation that suits you. I think your configure env
is hosed. I used NETSCAPE SDK. That definitely requires some
hacking. OpenLDAP should just compile.