Installing Shibboleth Origin and Target

|

My notes on installing Shibboleth Origin and Target on ONE Virtual Machine in the Lab

QUICK START

1. Copy over RH9 installation

2. Lock everyone out with /etc/passwd

3. Run :
nsupdate
> update add 27.0.0.10.in-addr.arpa 3000 in ptr jlwlynn-shib-inqueue.lab.ac.uab.edu
> send
> update add jlwlynn-shib-inqueue.lab.ac.uab.edu. 3000 in a 10.0.0.27
> send

4. Reboot

5. Copy and extract the following in /opt/downloads/target
curl-7.12.0
httpd-2.0.49
log4cpp-0.3.4b
openssl-0.9.7d
xerces-c-current
xml-security-c-1.1.0
j2sdk-1.4.2_04

6. Copy and extract the following in /opt/downloads/origin
j2sdk-1.4.2_04
apache-1.3.31
jakarta-tomcat-4.1.3
jakarta-tomcat-connectors-jk-1.2-src-current
mod_ssl-2.8.18-1.3.31
openssl-0.9.7d
pubcookie-3.1.0

7. Acquire Shibboleth and Opensaml
cvs -d:pserver:anoncvs@anoncvs.internet2.edu:/home/cvs/shibboleth login

cvs -z3 -d:pserver:anoncvs@anoncvs.internet2.edu:/home/cvs/shibboleth co opensaml
cvs -z3 -d:pserver:anoncvs@anoncvs.internet2.edu:/home/cvs/shibboleth co shibboleth

START INSTALLING SUPPORT PACKAGES

8. Install Java
Install with RPM
vi /etc/profile.d/java.sh
JAVA_HOME=/usr/java/j2sdk1.4.2_04
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME
export PATH

9. Build Tomcat
(Just moved extracted directory to /opt/tomcat)

10. Build Openssl
./config --prefix=/opt/shibboleth threads shared
make
make test
make install

11. Build Apache 2
./configure --prefix=/opt/apache --enable-ssl --with-ssl=/opt/shibboleth --enable-so
make
make install

12. Build CURL
./configure --without-ca-bundle --enable-static=no --with-ssl=/opt/shibboleth/ssl --prefix=/opt/shibboleth/
make
make install

13. Build Log4CPP
./configure --prefix=/opt/shibboleth --with-pthreads=yes --enable-static=no --enable-doxygen=no CXXFLAGS="-pthread"
make
make install

14. Build XercesC
export XERCESCROOT=/opt/downloads/target/xerces-c-src_2_5_0
cd $XERCESCROOT/src/xercesc/
autoconf
./runConfigure -p linux -c gcc -x g++ -r pthread -b 32 -P /opt/shibboleth/
make
make install

15. Build XML Security
./configure --prefix=/opt/shibboleth --without-xalan
make
make install

16. Build OpenSAML (java)
./ant dist
./ant javadocs

17. Build OpenSAML (C)
./bootstrap
./configure --prefix=/opt/shibboleth --with-curl=/opt/shibboleth --with-log4cpp=/opt/shibboleth -C
make
make install

18. Build mod_jk2
cd /opt/downloads/origin/jakarta-tomcat-connectors-jk-1.2.5-src/jk/native
./configure --prefix=/opt/shibboleth --with-apxs=/opt/apache/bin/apxs --with-java-home=/usr/java/j2sdk1.4.2_04/
make
cd ../build/jk2/apache2
/opt/apache/bin/apxs -n jk2 -i mod_jk2.so

BUILD SHIBBOLETH

18. Build Origin
./ant build-util
./ant
./ant javadocs

19. Build Target
./bootstrap
export LD_LIBRARY_PATH=/opt/shibboleth/lib
./configure --prefix=/opt/shibboleth --with-log4cpp=/opt/shibboleth --enable-apache-20 --with-apxs2=/opt/apache/bin/apxs --with-openssl=/opt/shibboleth -C
make
make install

SHIBBOLETH IS INSTALLED