Notes on csrdu.org

From MyWiki
Revision as of 17:26, 25 April 2015 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. Install java JDK and tomcat ( I used java r and tomcat 7 ), setting the following environtment variables for Tomcat ( add to bash profile )

# export JAVA_HOME=/usr/local/src/java6-source/jdk1.6.0_25
# export PATH=$JAVA_HOME/bin:$PATH
# export CATALINA_HOME=/usr/local/src/tomcat6
# export CATALINA_BASE=/usr/local/src/tomcat6

2. Set java memory options :
Edit the TOMCAT_HOME/bin/catalina.sh file and add the JAVA_OPTS variable as:
JAVA_OPTS="-Djava.awt.headless=true -Xmx512M -XX:MaxPermSize=128M -Dcom.sun.security.enableCRLDP=true"
3. Edit server.xml to configure autodeploy to false ( maybe not )
<Host appBase="webapps" unpackWARs="true" autoDeploy="false"
xmlValidation="false" xmlNamespaceAware="false">
4. Start tomcat
TOMCAT_HOME/bin/catalina.sh start
5. Download and install shibboleth and extract files ???????????how ?????????
Endorse Xerces (Java parser for XML) and Xalan (Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types) libraries from the Shibboleth IdP source package in TOMCAT_HOME/endorsed. Copy the endorsed directory and the included jar files from the shibboleth-idp source directory to the TOMCAT_HOME directory as:

cp -r endorsed/ /usr/local/src/tomcat6
export JAVA_ENDORSED_DIRS=/usr/local/src/tomcat6/endorsed

Run the installer script to install IdP as:
./install.sh


Open the file CentOS-Base.repo residing at /etc/yum.repos.d/ directory and add the following lines at the end of the file:

#adding shibbolethSP repos
[security_shibboleth]
name=Shibboleth (CentOS_5)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_CentOS-6/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_CentOS-6/repodata/repomd.xml.key
enabled=1