RE: [users@httpd] ldaps auth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux