Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:ssocas:cas4install [2015/07/01 20:18]
procacci@tem-tsp.eu [clearPass]
docpublic:systemes:ssocas:cas4install [2015/07/01 22:20] (current)
procacci@tem-tsp.eu
Line 682: Line 682:
 </code> </code>
  
-===== clearPass ===== 
  
-ref http://jasig.github.io/cas/4.0.x/integration/ClearPass.html+===== redeploiement cas  ===== 
 + 
 +On reconstruit a nouveau Cas 
  
 <code> <code>
-[disi@cas4 simple-cas4-overlay-template]$ git diff 4a0275d pom.xml +[disi@cas4 simple-cas4-overlay-template]$  mvn -Dmaven.test.skip\=true package
-diff --git a/pom.xml b/pom.xml +
-index 8e4621a..716a2f4 100755 +
---- a/pom.xml +
-+++ b/pom.xml +
-@@ -51,12 +51,22 @@ +
-             <scope>runtime</scope> +
-         </dependency> +
-  +
-+       <!-- Ajout JP ldap--> +
-        <dependency> +
-                <groupId>org.jasig.cas</groupId> +
-                <artifactId>cas-server-support-ldap</artifactId> +
-                <version>${cas.version}</version> +
-        </dependency> +
-  +
-+       <!-- Ajout JP clearpass--> +
-+        <dependency> +
-+                <groupId>org.jasig.cas</groupId> +
-+                <artifactId>cas-server-extension-clearpass</artifactId> +
-+                <version>${cas.version}</version> +
-+                <scope>runtime</scope> +
-+        </dependency> +
-+
-+
-     </dependencies> +
-  +
-     <properties>+
 </code> </code>
  
  
-Single Node Configuration +puis on fait un RAZ du war dans l'arborescence tomcat 
- +
-on part d'un web.xml du target qu'on copie dans notre src car le maven overlay Unicon n'en avait pas par defaut, puis on ajoute le filter et servlet-mapping+
  
 <code> <code>
-[disi@cas4 simple-cas4-overlay-template]$ cp ./target/cas/WEB-INF/web.xml ./src/main/webapp/WEB-INF/ +[root@cas4 cas-server-webapp]# systemctl stop tomcat.service  
- +[root@cas4 cas-server-webapp]# rm -rf /var/lib/tomcat/webapps/cas 
-[disi@cas4 simple-cas4-overlay-template]$ diff -ur ./target/cas/WEB-INF/web.xml ./src/main/webapp/WEB-INF/web.xml  +[root@cas4 cas-server-webapp]# rm -rf /var/lib/tomcat/webapps/cas.war  
---- ./target/cas/WEB-INF/web.xml 2014-05-07 17:42:42.000000000 +0200 +[root@cas4 cas-server-webapp]# systemctl start tomcat.service ; tail -/var/log/cas/cas.log
-+++ ./src/main/webapp/WEB-INF/web.xml 2015-07-01 22:11:51.327070993 +0200 +
-@-64,6 +64,19 @@ +
-     <url-pattern>/*</url-pattern> +
-   </filter-mapping> +
-  +
-+<!-- JP clearpass servlet mapping --> +
-+
-+<filter> +
-+  <filter-name>clearPassFilterChainProxy</filter-name> +
-+  <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> +
-+</filter> +
-+  +
-+<filter-mapping> +
-+  <filter-name>clearPassFilterChainProxy</filter-name> +
-+  <url-pattern>/clearPass</url-pattern> +
-+</filter-mapping> +
-+
-+
-   <!-- +
-     - Loads the CAS ApplicationContext. +
-     - The deployer choice here is how to handle Throwables thrown by Spring'+
-@@ -169,6 +182,13 @@ +
-     <url-pattern>/authorizationFailure.html</url-pattern> +
-   </servlet-mapping> +
-  +
-+<!-- JP clearpass servlet mapping --> +
-+  <servlet-mapping> +
-+   <servlet-name>cas</servlet-name> +
-+   <url-pattern>/clearPass</url-pattern> +
-+  </servlet-mapping> +
-+
-+
-   <session-config> +
-     <!-- Default to 5 minute session timeouts --> +
-     <session-timeout>5</session-timeout>+
 </code> </code>
  
  
-idem , on recopie un modele de clearpass-configuration.xml  dans src pour customisation 
  
-<code> + 
-[disi@cas4 simple-cas4-overlay-template]$ cp ./target/cas/WEB-INF/unused-spring-configuration/clearpass-configuration.xml ./src/main/webapp/WEB-INF/spring-configuration/ + 
-</code>+ 
 + 
docpublic/systemes/ssocas/cas4install.1435781896.txt.gz · Last modified: 2015/07/01 20:18 by procacci@tem-tsp.eu
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0