Adding mod_authnz_ldap in Apache 2.2

Hello Everyone-

I need to add the module mod_authnz_ldap to my Coolstack 1.1 apache install. I've successfully recompiled apache with this module by modifying /opt/coolstack/src/httpd-2.2.3/make_solaris and adding --enable-authnz-ldap to the configure statement. And everything works. However, the apache I then have installed is lacking php support.

Is there an easier way to add mod_authnz_ldap into Apache? And while I'm at it, can I put in a vote to have it included in future versions?

Thanks-

John

[536 byte] By [john.tracya] at [2007-11-27 0:00:33]
# 1

I copied the libphp5.so from the original Coolstack package into my new modules folder, added back into httpd.conf and all is well now. So unless somebody can point me in a convenient direction for just building a single module of Apache, I guess my question is answered.

Thanks-

John

john.tracya at 2007-7-11 15:50:45 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2

FWIW, I noticed when I tried to recompile apache using the make_solaris.sh script, it complained about not being able to "make distclean". And further on in compiling, it complained about not being able find a path on space103. I ran a "gmake clean" and then ran the make_solaris, and all went without problem.

Would it be worth altering make_solaris.sh so that in the future it points to /usr/sfw/bin/gmake to make clean?

john.tracya at 2007-7-11 15:50:45 > top of Java-index,Open Source Technologies,OpenSPARC...
# 3
FYI, I was able to add mod_authnz_ldap to the coolstack binaries without recompiling apache by getting a copy of 'mod_authnz_ldap.c' and using apxs:/opt/coolstack/apache2/bin/apxs -i -a -c mod_authnz_ldap.cI've only done simple testing. So far the modules seems to work
judda at 2007-7-11 15:50:45 > top of Java-index,Open Source Technologies,OpenSPARC...
# 4

Do I need to install the Sun Studio in order to compile the mod_authnz_ldap module?

I get the following error when I try this:

--

# /opt/coolstack/apache2/bin/apxs -i -a -c mod_authnz_ldap.c

/opt/coolstack/apache2/build/libtool --silent --mode=compile /usr/sfw/bin/gcc -prefer-pic -DSSL_EXPERIMENTAL -DSSL_ENGINE -O3 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I/opt/coolstack/apache2/include -I/opt/coolstack/apache2/include-I/opt/coolstack/apache2/include-c -o mod_authnz_ldap.lo mod_authnz_ldap.c && touch mod_authnz_ldap.slo

/opt/coolstack/apache2/build/libtool --silent --mode=link /usr/sfw/bin/gcc -o mod_authnz_ldap.la -rpath /opt/coolstack/apache2/modules -module -avoid-versionmod_authnz_ldap.lo

collect2: ld terminated with signal 9 [Killed]

ld.so.1: ld: fatal: relocation error: file /usr/ccs/bin/../../../lib/libld.so.4: symbol dbg_desc: referenced symbol not found

ld.so.1: ld: fatal: relocation error: file /usr/ccs/bin/ld: symbol ld32_main: referenced symbol not found

apxs:Error: Command failed with rc=65536

.

#

--

psuchomela at 2007-7-11 15:50:45 > top of Java-index,Open Source Technologies,OpenSPARC...
# 5
What platform are you on ?On SPARC, you need the Sun Studio 11 compiler and it should be in your PATH. On x86, it will use gcc from /usr/sfw/bin.Shanti
shantiSa at 2007-7-11 15:50:45 > top of Java-index,Open Source Technologies,OpenSPARC...
# 6

I found a solution. Not sure if it was the correct way of doing it, but here is what I did.

I found out that the problem was with the /usr/ccs/bin/ld program.

I ended up renaming it, and then linking /usr/sfw/i386-sun-solaris2.10/bin/ld back.

(e.g cd /usr/ccs/bin; mv ld ld.hold; ln -s /usr/sfw/i386-sun-solaris2.10/bin/ld ld)

when I ran the apxs, all went well.

psuchomela at 2007-7-11 15:50:45 > top of Java-index,Open Source Technologies,OpenSPARC...