httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig L. Ching" <cch...@mqsoftware.com>
Subject RE: [users@httpd] ldaps auth
Date Wed, 21 Sep 2005 14:37:59 GMT
Just to let people that have been following the mod_auth_ldap problems,
my build is now working.  Here is a script (it's just a dumb script to
capture my build procedure) I used to build openssl (0.9.7g), openldap
(2.2.28), and httpd (2.0.54) on Solaris 8: 

CC=/opt/SUNWspro/bin/cc

GNU_TAR=`which tar`

# These are the install targets/package directories
BASE_DIR=`pwd`
SSL_DIR=$BASE_DIR/openssl
LDAP_DIR=$BASE_DIR/openldap
APACHE_DIR=$BASE_DIR/apache2

# Names of the tar files/directories in the tar files
# This assumes that the tar file and the root directory
# in the tar file have the same name
HTTPD_PKG=httpd-2.0.54
LDAP_PKG=openldap-2.2.28
SSL_PKG=openssl-0.9.7g

# Create the install/package directories
rm -rf $LDAP_DIR $SSL_DIR $APACHE_DIR
mkdir $LDAP_DIR $SSL_DIR $APACHE_DIR

# Create the build directories
rm -rf dev
mkdir dev
cd dev
mkdir apache2 openssl openldap

# Build OpenSSL
cd openssl
$GNU_TAR zxf ../../$SSL_PKG.tar.gz
cd $SSL_PKG

./config \
  --prefix=$SSL_DIR

make
make install

# Build OpenLDAP
cd ../../openldap
$GNU_TAR zxf ../../$LDAP_PKG.tgz
cd $LDAP_PKG

CC=$CC \
CPPFLAGS=-I$SSL_DIR/include \
LDFLAGS=-L$SSL_DIR/lib \
./configure \
  --prefix=$LDAP_DIR \
  --disable-slapd \
  --with-tls=yes \
  --enable-shared=no

make depend
make 
make install

# Build Apache
cd ../../apache2
$GNU_TAR zxf ../../$HTTPD_PKG.tar.gz
cd $HTTPD_PKG

CC=$CC \
LDFLAGS='-L/usr/ucblib -L/usr/local/lib -liconv' \
./configure \
  --prefix=$APACHE_DIR \
  --with-ssl=$SSL_DIR \
  --with-ssl-include=$SSL_DIR/include \
  --with-ssl-lib=$SSL_DIR/lib \
  --enable-ssl=static\
  --with-ldap=yes \
  --with-ldap-include=$LDAP_DIR/include \
  --with-ldap-lib=$LDAP_DIR/lib \
  --enable-ldap=static \
  --enable-auth-ldap=static \
  --enable-so \
  --enable-vhost-alias=shared \
  --enable-userdir=shared \
  --enable-status=shared \
  --enable-speling=shared \
  --enable-setenvif=shared \
  --enable-rewrite=shared \
  --enable-negotiation=shared \
  --enable-mime=shared \
  --enable-log-config=shared \
  --enable-info=shared \
  --enable-include=shared \
  --enable-imap=shared \
  --enable-headers=shared \
  --enable-expires=shared \
  --enable-env=shared \
  --enable-dir=shared \
  --enable-dav-fs=shared \
  --enable-dav=shared \
  --enable-cgi=shared \
  --enable-autoindex=shared \
  --enable-auth-dbm=shared \
  --enable-auth-anon=shared \
  --enable-auth=shared \
  --enable-asis=shared \
  --enable-alias=shared \
  --enable-actions=shared \
  --enable-access=shared

#  --enable-auth-digest=shared \

make
make install

cd ../..

$GNU_TAR zcvf $HTTPD_PKG-`uname`.tar.gz apache2/

Good luck!

Cheers,
Craig


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message