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 21:08]
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> 
  
-et on en modifie le contenu pour y ajouter la list des services autoriser (exact match) a faire du clearpass 
  
-<code> 
- [disi@cas4 simple-cas4-overlay-template]$ diff -ur ./target/cas/WEB-INF/unused-spring-configuration/clearpass-configuration.xml ./src/main/webapp/WEB-INF/spring-configuration/clearpass-configuration.xml 
---- ./target/cas/WEB-INF/unused-spring-configuration/clearpass-configuration.xml 2014-05-07 17:30:56.000000000 +0200 
-+++ ./src/main/webapp/WEB-INF/spring-configuration/clearpass-configuration.xml 2015-07-01 23:02:00.727073681 +0200 
-@@ -95,4 +95,17 @@ 
-  
-   <bean id="httpServletRequestWrappingFilter" class="org.jasig.cas.client.util.HttpServletRequestWrapperFilter"/> 
-  
--</beans> 
-\ Pas de fin de ligne à la fin du fichier 
-+  <!-- JP list urls --> 
-+ 
-+  <bean id="clearPassProxyList" class="org.jasig.cas.client.validation.ProxyList"> 
-+    <constructor-arg> 
-+        <list> 
-+            <value>https://cas4.tem-tsp.eu/testapi</value> 
-+            <value>https://oldcas.tem-tsp.eu/cas/logintest</value> 
-+            <value>https://java.tem-tsp.eu/Write2File</value> 
-+        </list> 
-+    </constructor-arg> 
-+  </bean> 
-+ 
-+ 
-+</beans> 
-</code> 
  
  
-dernier fichier a modifier 
  
-<code> 
-[disi@cas4 simple-cas4-overlay-template]$ cp ./target/cas/WEB-INF/spring-configuration/ticketRegistry.xml ./src/main/webapp/WEB-INF/spring-configuration/ 
-[disi@cas4 simple-cas4-overlay-template]$ diff -ur ./target/cas/WEB-INF/spring-configuration/ticketRegistry.xml ./src/main/webapp/WEB-INF/spring-configuration/ticketRegistry.xml  
---- ./target/cas/WEB-INF/spring-configuration/ticketRegistry.xml 2014-05-07 17:30:56.000000000 +0200 
-+++ ./src/main/webapp/WEB-INF/spring-configuration/ticketRegistry.xml 2015-07-01 23:07:05.906316924 +0200 
-@@ -28,7 +28,8 @@ 
-     </description> 
-         
-   <!-- Ticket Registry --> 
--  <bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.DefaultTicketRegistry" /> 
-+  <!-- JP comment <bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.DefaultTicketRegistry" /> --> 
-+  <bean id="ticketRegistryValue" class="org.jasig.cas.ticket.registry.DefaultTicketRegistry" /> 
-   
-  <!--Quartz --> 
-  <!-- TICKET REGISTRY CLEANER --> 
-@@ -44,4 +45,4 @@ 
-  p:jobDetail-ref="jobDetailTicketRegistryCleaner" 
-  p:startDelay="20000" 
-  p:repeatInterval="5000000" /> 
--</beans> 
-\ Pas de fin de ligne à la fin du fichier 
-+</beans> 
-</code> 
docpublic/systemes/ssocas/cas4install.1435784892.txt.gz · Last modified: 2015/07/01 21:08 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