compiling with LDAP auth on solaris 9

This is a discussion on compiling with LDAP auth on solaris 9 within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi all: I'm trying to compile the apache2*.46 on a Sparc machine with Solaris 9, openldap compiled and ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2003
Randall
 
Posts: n/a
Default compiling with LDAP auth on solaris 9

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@
"

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"
Thanks a lot ....
rbadilla@cesa.co.cr
  #2 (permalink)  
Old 06-25-2003
Dean Roth
 
Posts: n/a
Default Re: compiling with LDAP auth on solaris 9

Randall wrote:

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


Based on the number of questions I've seen posted, lack of answers and my
own inability to find information to get Apache 2 to compile with support
for Netscape/iPlanet LDAP and work, I am forced to say that I believe that
Apache 2 with LDAP is fiction.

Dean

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


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:00 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0