[Auth_ldap] Re: Auth_ldap digest, Vol 1 #296 - 4 msgs

Peter Musolino musolino at pegasus.montclair.edu
Wed Jun 19 07:29:35 PDT 2002


Intekhab,

I had similar problems under solaris.  What I had to do to make it work 
was when compiling the auth_ldap module, I kludged my way around the 
check for sdk version, around line 818, it checks to see if

  netscape)
         OPENLDAP=
         found_netscape_libs=no

Change the found_netscape_libs=yes
and it will skip the check

When trying to get the SSL to work, you have to compile apache with
extra libs to point to the SDK directories.  Here is the configure line 
I used:

LIBS="-lldap50 -llber50 -lssl -lssl3 -lprldap50 -lssldap50 
-R/opt/local/ldap-sdk-5.0/lib -R/usr/local/ssl/lib" ./configure 
--prefix=/opt/local/apache --enable-module=most --enable-shared=max 
--with-layout=Apache --enable-rule=SHARED_CORE

Hope it helps you out on the HPUX side

Cheers
Peter

> Date: Tue, 11 Jun 2002 07:45:25 -0700 (PDT)
> From: Intekhab Choudhury <ichoudhury007 at yahoo.com>
> Subject: Re: [Auth_ldap] unable to install with Netscape Directory SDK
> To: auth_ldap at rudedog.org
> 
> Hi, 
>      Despite my statement "It worked with openldap" ,
> I must clear something though...
> 
> It works only when I leave ssl out during the
> configure...
> 
> Example1 (that doesn't work ... error message follows)
> 
> 
> CC=gcc ./configure
> --with-apxs=/usr/local/apache/bin/apxs \
> --with-sdk=openldap \
> --with-sdk-headers=/usr/local/include \
> --with-sdk-libs=/usr/local/lib \
> --with-shared-cache
> --with-ssl
> --with-activate
> 
> : Configure do not produce any error message and
> config.log doesn't have any error message either.
> 
> However, when I run gmake, I get the following message
> (portion from the output)
> 
> 
> In file included from auth_ldap.c:20:
> auth_ldap.h:53:22: ldap_ssl.h: No such file or
> directory
> auth_ldap.c: In function
> `auth_ldap_connect_to_server':
> auth_ldap.c:206: `LDAP_OPT_SSL' undeclared (first use
> in this function)
> auth_ldap.c:206: (Each undeclared identifier is
> reported only once
> auth_ldap.c:206: for each function it appears in.)
> gmake: *** [auth_ldap.o] Error 1
> (i3107ts1):/usr/local/etc/httpd/source/auth_ldap-1.6.0#
> 
> 
> Why is it looking for Netscape LDAP SDK file? 
> OpenLDAP suppose to have he same file?  I only find
> that file in my netscapeldapsdk directory....
> 
> 
> Just a FYI... I have compiled GNU gcc, binutils and so
> on from the source, not to mention openldap and other
> gnu based application to avoid this kind of problem.
> So, why auth_ldap configuration picking up cc instead
> of GCC (which is also in my path).
> 
> Anyway, here's what works...
> 
> 
> CC=gcc ./configure
> --with-apxs=/usr/local/apache/bin/apxs \
> --with-sdk=openldap \
> --with-sdk-headers=/usr/local/include \
> --with-sdk-libs=/usr/local/lib \
> --with-shared-cache
> --with-activate
> 
> (without ssl).  
> 
> btw, ssl also were compiled from source (OpenSSL
> 0.9.6d ).  Anyway, I might just go with no ssl :(
> 
> 
> Thank you 
> 
> Intekhab
> 
> 
> 
> --- Intekhab Choudhury <ichoudhury007 at yahoo.com>
> wrote:
> 
>>Btw, if I attempt to install
>>--with-ldap-sdk=openldap
>>, everything works fine, but I need the Netscape SDK
>>for ssl support.
>>
>>Thanks
>>
>>--- Intekhab Choudhury <ichoudhury007 at yahoo.com>
>>wrote:
>>
>>>Hi,
>>>   Basically, I took exactly the following steps
>>>
>>>1. Downloaded Netscape Directory Server SDK (for
>>
>>c)
>>
>>>version 5.08 (couldn't find the 4x version) and
>>>extracted to /usr/local/ldapsdk
>>>
>>>2. Downloaded auth_ldap latest version and run
>>>
>>>./configure --with-apxs=/usr/local/apache/bin/apxs
>>
>>\
>>
>>>--with-ldap-sdk=netscape \
>>>--with-sdk-headers=/usr/local/ldapsdk/include \
>>>--with-sdk-libs=/usr/local/ldapsdk/lib \
>>>--with-shared-cache \
>>>--with-ssl \
>>>--with-activated
>>>
>>>I get the following output
>>>
>>>loading cache ./config.cache
>>>checking for apxs... /usr/local/apache/bin/apxs
>>>checking whether apxs works... yes
>>>checking for ldap_init in -lldapssl41... no
>>>checking for ldap_init in -lldapssl41... no
>>>checking for ldap_init in -lldapssl41... no
>>>checking for ldap_init in -lldapssl40... no
>>>checking for ldap_init in -lldapssl40... no
>>>checking for ldap_init in -lldapssl30... no
>>>checking for ldap_init in -lldapssl30... no
>>>checking for ldap_init in -lldapssl20... no
>>>checking for ldap_init in -lldapssl20... no
>>>configure: error: could not find any Netscape
>>>library
>>>
>>>When I check /usr/local/ldapsdk/lib, I don't see
>>
>>any
>>
>>>file like lldapssl....
>>>
>>> libfreebl_hybrid_3.sl
>>> libfreebl_pure32_3.sl
>>> libiutil50.a
>>> liblber50.a
>>> libldap50.a
>>> libldap50.sl
>>> libldif50.a
>>> libnspr4.a
>>> libnspr4.sl
>>> libnss3.sl
>>> libplc4.a
>>> libplc4.sl
>>> libplds4.a
>>> libplds4.sl
>>> libprldap50.sl
>>> libssl3.sl
>>> libssldap50.sl
>>>
>>>When I check config.log , I notice this
>>>
>>>configure:620: checking for apxs
>>>configure:649: checking whether apxs works
>>>configure:675: checking for ldap_init in
>>
>>-lldapssl41
>>
>>>configure:694: gcc -o conftest 
>>>-I/usr/local/ldapsdk/include 
>>>-L/usr/local/ldapsdk/lib
>>> conftest.c -lldapssl41 -lnspr3 -lplc3 -lplds3 
>>
>>1>&5
>>
>>>/usr/ccs/bin/ld: Can't find library: "nspr3"
>>>collect2: ld returned 1 exit status
>>>configure: failed program was:
>>>#line 683 "configure"
>>>#include "confdefs.h"
>>>/* Override any gcc2 internal prototype to avoid
>>
>>an
>>
>>>error.  */
>>>/* We use char because int might match the return
>>>type
>>>of a gcc2
>>>    builtin and then its argument prototype would
>>>still apply.  */
>>>char ldap_init();
>>>
>>>
>>>Any idea how can I make auth_ldap to understand
>>
>>that
>>
>>>we are no longer dealing with SDK 4x and
>>>importantly,
>>>making my compilation work :)
>>>
>>>I am under HP-UX environment.  
>>>
>>>Regards,
>>>
>>>Ichoudhury



More information about the Auth_ldap mailing list