- demo
- contents
- videos
- folder_a
- folder_b
- folder_c
- file_a.php
- file_b.php
Let say we want to exclude contents and videos folder. So the command would be like this:
tar -czf demo.tar.gz demo/ --exclude='videos' --exclude='contents'
tar -czf demo.tar.gz demo/ --exclude='videos' --exclude='contents'
cd cas-server-3.5.2/cas-server-webapp
vi pom.xml
<dependency>
<groupid>org.jasig.cas</groupid>
<artifactid>cas-server-support-ldap</artifactid>
<version>3.5.2</version>
</dependency>
cd cas-server-3.5.2/cas-server-webapp
mvn install package
* wait until you see BUILD SUCCESSFUL
cp cas-server-3.5.2/cas-server-webapp/target/cas.war /apache-tomcat-7.0.42/webapps
./apache-tomcat-7.0.42/bin/startup.sh
./apache-tomcat-7.0.42/bin/shutdown.sh
vi /apache-tomcat-7.0.42/webapps/cas/WEB-INF/deployerConfigContext.xml
<!--bean
class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswo
rdAuthenticationHandler" / -->
<bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler" p:filter="cn=%u"
p:searchBase="ou=user,dc=example,dc=com,dc=my"
p:contextSourceref="contextSource" />
* note that, in this example the CAS will authenticate using cn (common
name). If you like to using another options of authentication e.g mail or etc,
change the red coloured text as per your environment configuration.
keytool -genkey -alias sso -keyalg RSA -keysize 2048 -keystore sso.jks
vi /apache-tomcat-7.0.42/conf/server.xml
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector port="8443" maxHttpHeaderSize="8192" maxThreads="1000"
minSpareThreads="25" protocol="HTTP/1.1" maxSpareThreads="75" enableLookups="true" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" SSLEnabled="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/path/to/sso.jks"
keystorePass="changeit" />
show status like '%conn%';