Projet Socle ENT
Pages enfant
  • Installer uP4 rapidement

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

uportal-war/src/main/resources/properties/security.properties (logout cas avec redirect + ajout d'une variable qui représente le contexte du serveur CAS)

Bloc de code
diff --git a/uportal-war/src/main/resources/properties/security.properties b/uportal-war/src/main/resources/properties/security.properties
index 2de19c9..c80725fcb67036 100644
--- a/uportal-war/src/main/resources/properties/security.properties
+++ b/uportal-war/src/main/resources/properties/security.properties
@@ -48,717 +48,717 @@ credentialToken.root.cas=ticket
 ## (See comments in the LogoutServlet class)
 ## It would be better to escape the value of the url parameter, but since there are no parameters on the
 ## unescaped URL and since there are no further parameters on the logout URL, this does work.
-logoutRedirect.root=${environment.build.cas.protocol}://${environment.build.cas.server}/cas/logout?url=${environment.build.uportal.protocol}://${environment.build.uportal.server}${environment.build.uportal.context}/Login
+logoutRedirect.root=${environment.build.cas.protocol}://${environment.build.cas.server}/cas${environment.build.cas.context}/logout?service=${environment.build.uportal.protocol}://${environment.build.uportal.server}${environment.build.uportal.context}/Login
 
 ## This is the factory that supplies the concrete authorization class
 authorizationProvider=org.jasig.portal.security.provider.AuthorizationServiceFactoryImpl
 
 ## Login URL, if specified the CLogin channel will display a Login link with
 ## this URL instead of the standard userName/password form.
-org.jasig.portal.channels.CLogin.CasLoginUrl=${environment.build.cas.protocol}://${environment.build.cas.server}/cas/login?service=${environment.build.uportal.protocol}://${environment.build.uportal.server}${environment.build.uportal.context}/Login
+org.jasig.portal.channels.CLogin.CasLoginUrl=${environment.build.cas.protocol}://${environment.build.cas.server}${environment.build.cas.context}/login?service=${environment.build.uportal.protocol}://${environment.build.uportal.server}${environment.build.uportal.context}/Login
 
 ## URL of the CAS cleartext password service
-#org.jasig.cas3.extensions.clearpass.integration.uportal.PasswordCachingCasAssertionSecurityContextFactory.clearPassCasUrl=${environment.build.cas.protocol}://${environment.build.cas.server}/cas/clearPass
+#org.jasig.cas3.extensions.clearpass.integration.uportal.PasswordCachingCasAssertionSecurityContextFactory.clearPassCasUrl=${environment.build.cas.protocol}://${environment.build.cas.server}${environment.build.cas.context}/clearPass

uportal-war/src/main/webapp/WEB-INF/web.xml (ajout d'une variable qui représente le contexte du serveur CAS)

...

voici un script d'exemple qui positionne les variables d'environnement qui vont bien (pour windows désolé)

Bloc de code


SET JAVA_HOME=D:/jdk1.6.0_30
SET ANT_HOME=E:/esup4/apache-ant-1.8.2
SET M2_HOME=E:/esup4/apache-maven-3.0.4
SET TOMCAT_HOME=E:/esup4/apache-tomcat-6.0.35
SET TRUST_CERT=E:/esup4/esup-portail.keystore

SET M2=%M2_HOME%/bin

SET CATALINA_HOME=%TOMCAT_HOME%
SET CATALINA_BASE=%CATALINA_HOME%
SET CATALINA_TMPDIR=%CATALINA_HOME%/temp
SET CATALINA_OPTS=-Djavax.net.ssl.trustStore="%TRUST_CERT%"
SET CATALINA_PID=%ATALINA_TMPDIR%/uportal.pid


SET PATH=%M2%;%ANT_HOME%/bin;%JAVA_HOME%/bin;%PATH%;

SET JAVA_OPTS=-server
SET JAVA_OPTS=%JAVA_OPTS% -XX:MaxPermSize=512m  -XX:PermSize=300m
SET JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1520m
SET JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote