Authentification CAS du Workflow

  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:94628db12f134c53b7ce425cd0b6d03f' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour</p>\n<p>Christian Theou a creer une fiche dans le Workflow.<br />\nJe l ai publie mais c est moi qui est recu le mail au lieu du redacteur.<br />\nApparemment j intercepte tous les mails (configuration de<br />\ndeveloppement sans doute)<br />\nJe n ai pas trouve le parametre a modifier ?</p>\n<p>Pouvez vous me l indiquer merci .</p>\n<p>Cordialement<br />\nPatrick</p>\n<p>----- Message transféré de <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#112;&#97;&#116;&#114;&#105;&#99;&#107;&#46;&#106;&#97;&#111;&#117;&#101;&#110;&#64;&#115;&#116;&#45;&#99;&#121;&#114;&#46;&#116;&#101;&#114;&#114;&#101;&#46;&#100;&#101;&#102;&#101;&#110;&#115;&#101;&#46;&#103;&#111;&#117;&#118;&#46;&#102;&#114;\">&#112;&#97;&#116;&#114;&#105;&#99;&#107;&#46;&#106;&#97;&#111;&#117;&#101;&#110;&#64;&#115;&#116;&#45;&#99;&#121;&#114;&#46;&#116;&#101;&#114;&#114;&#101;&#46;&#100;&#101;&#102;&#101;&#110;&#115;&#101;&#46;&#103;&#111;&#117;&#118;&#46;&#102;&#114;</a> -----</p>\n</div>\n', created = 1507745829, expire = 1507832229, headers = '', serialized = 0 WHERE cid = '4:94628db12f134c53b7ce425cd0b6d03f' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:94628db12f134c53b7ce425cd0b6d03f' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour</p>\n<p>Christian Theou a creer une fiche dans le Workflow.<br />\nJe l ai publie mais c est moi qui est recu le mail au lieu du redacteur.<br />\nApparemment j intercepte tous les mails (configuration de<br />\ndeveloppement sans doute)<br />\nJe n ai pas trouve le parametre a modifier ?</p>\n<p>Pouvez vous me l indiquer merci .</p>\n<p>Cordialement<br />\nPatrick</p>\n<p>----- Message transféré de <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#112;&#97;&#116;&#114;&#105;&#99;&#107;&#46;&#106;&#97;&#111;&#117;&#101;&#110;&#64;&#115;&#116;&#45;&#99;&#121;&#114;&#46;&#116;&#101;&#114;&#114;&#101;&#46;&#100;&#101;&#102;&#101;&#110;&#115;&#101;&#46;&#103;&#111;&#117;&#118;&#46;&#102;&#114;\">&#112;&#97;&#116;&#114;&#105;&#99;&#107;&#46;&#106;&#97;&#111;&#117;&#101;&#110;&#64;&#115;&#116;&#45;&#99;&#121;&#114;&#46;&#116;&#101;&#114;&#114;&#101;&#46;&#100;&#101;&#102;&#101;&#110;&#115;&#101;&#46;&#103;&#111;&#117;&#118;&#46;&#102;&#114;</a> -----</p>\n</div>\n', created = 1507745829, expire = 1507832229, headers = '', serialized = 0 WHERE cid = '4:94628db12f134c53b7ce425cd0b6d03f' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:fee74530eedda4d5d2d6fa47236d75fc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour</p>\n<p>Dans le module Workflow, j ai l authentification LDAP qui fonctionne mais je<br />\nrenconcontre des difficultes avec le parametrage CAS.</p>\n<p>Je recherche des precisions sur l authentification CAS du module Workflow.</p>\n<p>Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?</p>\n<p>Voici ce que j y ai mis<br />\n---------------------------------------</p>\n<p><?xml version=\"1.0\" encoding=\"UTF-8\"?><br />\n<!DOCTYPE web-app PUBLIC \"-//Sun Microsystems, Inc.//DTD Web<br />\nApplication 2.3//EN\" \"http://java.sun.com/dtd/web-app_2_3.dtd\"><br />\n<web-app></p>\n<!-- Nom de notre Portlet --><!-- Nom de notre Portlet --><p> <display-name>ORI-OAI-Workflow</display-name></p>\n<!-- session timeout --><!-- session timeout --><p> <session-config><br />\n <session-timeout>120</session-timeout><br />\n </session-config></p>\n<p> <context-param></p>\n<param-name>contextConfigLocation</param-name>\n<param-value>classpath:/properties/applicationContext.xml</param-value>\n </context-param></p>\n<p> <context-param></p>\n<param-name>org.apache.myfaces.PRETTY_HTML</param-name>\n<param-value>true</param-value>\n </context-param></p>\n<p> <context-param></p>\n<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>\n<param-value>true</param-value>\n </context-param></p>\n<p> <context-param></p>\n<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>\n<param-value>false</param-value>\n </context-param></p>\n<p> <context-param></p>\n<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>\n<param-value>false</param-value>\n </context-param></p>\n<p> <context-param></p>\n<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>\n<param-value>\n org.apache.myfaces.renderkit.html.util.DefaultAddResource<br />\n </param-value>\n </context-param></p>\n<p> <context-param></p>\n<param-name>\n org.apache.myfaces.CHECK_EXTENSIONS_FILTER<br />\n </param-name>\n<param-value>true</param-value>\n </context-param></p>\n<p> <context-param></p>\n<param-name>javax.faces.STATE_SAVING_METHOD</param-name>\n<param-value>client</param-value>\n </context-param></p>\n<p> <filter><br />\n <filter-name>CAS Filter</filter-name><br />\n <display-name>CASFilter</display-name><br />\n <description><br />\n The CAS filter, used to authenticate users.<br />\n </description><br />\n <filter-class><br />\n edu.yale.its.tp.cas.client.filter.CASFilter<br />\n </filter-class><br />\n <init-param></p>\n<param-name>\n edu.yale.its.tp.cas.client.filter.loginUrl<br />\n </param-name>\n<param-value>\n <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\">https://cas.st-cyr.terre.defense.gouv.fr/cas</a><br />\n </param-value>\n </init-param><br />\n <init-param></p>\n<param-name>\n edu.yale.its.tp.cas.client.filter.validateUrl<br />\n </param-name>\n<param-value>\n <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\">https://cas.st-cyr.terre.defense.gouv.fr/cas/validate</a><br />\n </param-value>\n </init-param><br />\n <init-param></p>\n<param-name>\n edu.yale.its.tp.cas.client.filter.serverName<br />\n </param-name>\n<param-value>theoden.st-cyr.terre.defense.gouv.fr:8185</param-value>\n </init-param><br />\n <init-param></p>\n<param-name>\n edu.yale.its.tp.cas.client.filter.wrapRequest<br />\n </param-name>\n<param-value>true</param-value>\n </init-param><br />\n </filter><br />\n <filter-mapping><br />\n <filter-name>CAS Filter</filter-name><br />\n <url-pattern>/jsp/login-cas.faces</url-pattern><br />\n </filter-mapping></p>\n<p> <filter><br />\n <filter-name>Acegi</filter-name><br />\n <filter-class><br />\n org.acegisecurity.util.FilterToBeanProxy<br />\n </filter-class><br />\n <init-param></p>\n<param-name>targetClass</param-name>\n<param-value>\n org.acegisecurity.util.FilterChainProxy<br />\n </param-value>\n </init-param><br />\n </filter><br />\n <filter-mapping><br />\n <filter-name>Acegi</filter-name><br />\n <url-pattern>*.faces</url-pattern><br />\n </filter-mapping></p>\n<listener>\n<listener-class>\n org.springframework.web.context.request.RequestContextListener<br />\n </listener-class>\n </listener>\n<listener>\n<listener-class>\n org.springframework.web.context.ContextLoaderListener<br />\n </listener-class>\n </listener>\n<!--\n The HttpSessionEventPublisher will publish\n HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n to the WebApplicationContext\n --><!--\n The HttpSessionEventPublisher will publish\n HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n to the WebApplicationContext\n --><listener>\n<listener-class>\n org.acegisecurity.ui.session.HttpSessionEventPublisher<br />\n </listener-class>\n </listener>\n<p> <servlet><br />\n <servlet-name>Jenia internal servlet</servlet-name><br />\n <servlet-class>org.jenia.faces.util.Servlet</servlet-class><br />\n <load-on-startup>2</load-on-startup><br />\n </servlet></p>\n<p> <servlet><br />\n <servlet-name>Faces Servlet</servlet-name></p>\n<!-- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><!-- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><p> <servlet-class>org.esupportail.commons.web.servlet.FacesServlet</servlet-class><br />\n <init-param></p>\n<param-name>default-view</param-name>\n<param-value>/jsp/main-menu.faces</param-value>\n </init-param><br />\n <load-on-startup>1</load-on-startup><br />\n </servlet></p>\n<p> <servlet><br />\n <servlet-name>xfire</servlet-name><br />\n <servlet-class><br />\n org.springframework.web.servlet.DispatcherServlet<br />\n </servlet-class><br />\n </servlet></p>\n<!--\n <servlet>\n <servlet-name>portlet</servlet-name>\n <display-name>portlet</display-name>\n <description>\n The ori-oai-workflow-spring portlet servlet\n </description>\n <servlet-class>\n org.apache.pluto.core.PortletServlet\n </servlet-class>\n <init-param>\n <param-name>portlet-class</param-name>\n <param-value>\n org.esupportail.commons.web.portlet.FacesPortlet\n </param-value>\n </init-param>\n <init-param>\n <param-name>portlet-guid</param-name>\n <param-value>ori-oai-workflow-spring.portlet</param-value>\n </init-param>\n </servlet>\n --><!--\n <servlet>\n <servlet-name>portlet</servlet-name>\n <display-name>portlet</display-name>\n <description>\n The ori-oai-workflow-spring portlet servlet\n </description>\n <servlet-class>\n org.apache.pluto.core.PortletServlet\n </servlet-class>\n <init-param>\n <param-name>portlet-class</param-name>\n <param-value>\n org.esupportail.commons.web.portlet.FacesPortlet\n </param-value>\n </init-param>\n <init-param>\n <param-name>portlet-guid</param-name>\n <param-value>ori-oai-workflow-spring.portlet</param-value>\n </init-param>\n </servlet>\n --><p>\n <servlet-mapping><br />\n <servlet-name>Jenia internal servlet</servlet-name><br />\n <url-pattern>/jenia4faces/*</url-pattern><br />\n </servlet-mapping></p>\n<p> <servlet-mapping><br />\n <servlet-name>Faces Servlet</servlet-name><br />\n <url-pattern>*.faces</url-pattern><br />\n </servlet-mapping></p>\n<p> <servlet-mapping><br />\n <servlet-name>xfire</servlet-name><br />\n <url-pattern>/xfire/*</url-pattern><br />\n </servlet-mapping></p>\n<!--\n <servlet-mapping>\n <servlet-name>portlet</servlet-name>\n <url-pattern>/portlet/*</url-pattern>\n </servlet-mapping>\n --><!--\n <servlet-mapping>\n <servlet-name>portlet</servlet-name>\n <url-pattern>/portlet/*</url-pattern>\n </servlet-mapping>\n --><!-- Welcome files --><!-- Welcome files --><p> <welcome-file-list><br />\n <welcome-file>index.html</welcome-file><br />\n </welcome-file-list></p>\n<p> <security-constraint><br />\n <display-name><br />\n Prevent access to raw JSP pages that are for JSF pages.<br />\n </display-name><br />\n <web-resource-collection><br />\n <web-resource-name>Raw-JSF-JSP-Pages</web-resource-name><br />\n <url-pattern>*.jsp</url-pattern><br />\n </web-resource-collection><br />\n <auth-constraint><br />\n <description>No roles, so no direct access</description><br />\n </auth-constraint><br />\n </security-constraint><br />\n</web-app></p>\n<p>---------------------------------------</p>\n<p>Un exemple de Config serait le bienvenu.</p>\n<p>Merci<br />\nCordialement<br />\n--<br />\nPatrick Jaouen<br />\nEcoles de St-Cyr Coetquidan<br />\nBureau Informatique</p>\n<p>--<br />\nCe message a\n</div>\n', created = 1507745829, expire = 1507832229, headers = '', serialized = 0 WHERE cid = '4:fee74530eedda4d5d2d6fa47236d75fc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:ff2e2d1fbc000e66602515a58701e81b' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour,</p>\n<p>C\'est bien le fichier WebContent/WEB-INF/web.xml qu\'il faut modifier.<br />\nPrécisément le bloc correspondant au \"filter\" nommé \"CAS Filter\".</p>\n<p>Par rapport au fichier web.xml donné ci-dessous, je pense que c\'est<br />\nsimplement les valeurs des url CAS qui ne sont pas bonnes.<br />\nJe mettrais (à l\'image du web.xml donné par défaut et configuré sur le<br />\nsso-cas de Rennes1) cela plutôt :</p>\n<p> <init-param></p>\n<param-name>\n edu.yale.its.tp.cas.client.filter.loginUrl<br />\n </param-name>\n<param-value>\n <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/login\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/login\">https://cas.st-cyr.terre.defense.gouv.fr/cas/login</a><br />\n </param-value>\n </init-param><br />\n <init-param></p>\n<param-name>\n edu.yale.its.tp.cas.client.filter.validateUrl<br />\n </param-name>\n<param-value>\n <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate\">https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate</a><br />\n </param-value>\n </init-param></p>\n<p>Cordialement,<br />\nVincent Bonamy.</p>\n<p>patrick.jaouen wrote:<br />\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Bonjour<br />\n><br />\n> Dans le module Workflow, j ai l authentification LDAP qui fonctionne<br />\n> mais je<br />\n> renconcontre des difficultes avec le parametrage CAS.<br />\n><br />\n> Je recherche des precisions sur l authentification CAS du module<br />\n> Workflow.<br />\n><br />\n> Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?<br />\n><br />\n><br />\n> Voici ce que j y ai mis<br />\n> ---------------------------------------<br />\n><br />\n> <?xml version=\"1.0\" encoding=\"UTF-8\"?><br />\n> <!DOCTYPE web-app PUBLIC \"-//Sun Microsystems, Inc.//DTD Web<br />\n> Application 2.3//EN\" \"http://java.sun.com/dtd/web-app_2_3.dtd\"><br />\n> <web-app><br />\n><br />\n> </p>\n<!-- Nom de notre Portlet --><!-- Nom de notre Portlet --><p>> <display-name>ORI-OAI-Workflow</display-name><br />\n><br />\n><br />\n> </p>\n<!-- session timeout --><!-- session timeout --><p>> <session-config><br />\n> <session-timeout>120</session-timeout><br />\n> </session-config><br />\n><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>contextConfigLocation</param-name>\n><br />\n><br />\n<param-value>classpath:/properties/applicationContext.xml</param-value>\n> </context-param><br />\n><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>org.apache.myfaces.PRETTY_HTML</param-name>\n><br />\n<param-value>true</param-value>\n> </context-param><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>\n><br />\n<param-value>true</param-value>\n> </context-param><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>\n><br />\n<param-value>false</param-value>\n> </context-param><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>\n><br />\n<param-value>false</param-value>\n> </context-param><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>\n><br />\n<param-value>\n> org.apache.myfaces.renderkit.html.util.DefaultAddResource<br />\n> </param-value>\n> </context-param><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>\n> org.apache.myfaces.CHECK_EXTENSIONS_FILTER<br />\n> </param-name>\n><br />\n<param-value>true</param-value>\n> </context-param><br />\n><br />\n> <context-param><br />\n><br />\n<param-name>javax.faces.STATE_SAVING_METHOD</param-name>\n><br />\n<param-value>client</param-value>\n> </context-param><br />\n><br />\n> <filter><br />\n> <filter-name>CAS Filter</filter-name><br />\n> <display-name>CASFilter</display-name><br />\n> <description><br />\n> The CAS filter, used to authenticate users.<br />\n> </description><br />\n> <filter-class><br />\n> edu.yale.its.tp.cas.client.filter.CASFilter<br />\n> </filter-class><br />\n> <init-param><br />\n><br />\n<param-name>\n> edu.yale.its.tp.cas.client.filter.loginUrl<br />\n> </param-name>\n><br />\n<param-value>\n> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\">https://cas.st-cyr.terre.defense.gouv.fr/cas</a><br />\n> </param-value>\n> </init-param><br />\n> <init-param><br />\n><br />\n<param-name>\n> edu.yale.its.tp.cas.client.filter.validateUrl<br />\n> </param-name>\n><br />\n<param-value>\n> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\">https://cas.st-cyr.terre.defense.gouv.fr/cas/validate</a><br />\n> </param-value>\n> </init-param><br />\n> <init-param><br />\n><br />\n<param-name>\n> edu.yale.its.tp.cas.client.filter.serverName<br />\n> </param-name>\n><br />\n><br />\n<param-value>theoden.st-cyr.terre.defense.gouv.fr:8185</param-value>\n> </init-param><br />\n> <init-param><br />\n><br />\n<param-name>\n> edu.yale.its.tp.cas.client.filter.wrapRequest<br />\n> </param-name>\n><br />\n<param-value>true</param-value>\n> </init-param><br />\n> </filter><br />\n> <filter-mapping><br />\n> <filter-name>CAS Filter</filter-name><br />\n> <url-pattern>/jsp/login-cas.faces</url-pattern><br />\n> </filter-mapping><br />\n><br />\n><br />\n> <filter><br />\n> <filter-name>Acegi</filter-name><br />\n> <filter-class><br />\n> org.acegisecurity.util.FilterToBeanProxy<br />\n> </filter-class><br />\n> <init-param><br />\n><br />\n<param-name>targetClass</param-name>\n><br />\n<param-value>\n> org.acegisecurity.util.FilterChainProxy<br />\n> </param-value>\n> </init-param><br />\n> </filter><br />\n> <filter-mapping><br />\n> <filter-name>Acegi</filter-name><br />\n> <url-pattern>*.faces</url-pattern><br />\n> </filter-mapping><br />\n><br />\n><br />\n><br />\n<listener>\n><br />\n<listener-class>\n><br />\n> org.springframework.web.context.request.RequestContextListener<br />\n> </listener-class>\n> </listener>\n><br />\n><br />\n><br />\n<listener>\n><br />\n<listener-class>\n> org.springframework.web.context.ContextLoaderListener<br />\n> </listener-class>\n> </listener>\n><br />\n><br />\n> </p>\n<!--\n> The HttpSessionEventPublisher will publish\n> HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n> to the WebApplicationContext\n> --><!--\n> The HttpSessionEventPublisher will publish\n> HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n> to the WebApplicationContext\n> --><p>><br />\n<listener>\n><br />\n<listener-class>\n> org.acegisecurity.ui.session.HttpSessionEventPublisher<br />\n> </listener-class>\n> </listener>\n><br />\n> <servlet><br />\n> <servlet-name>Jenia internal servlet</servlet-name><br />\n> <servlet-class>org.jenia.faces.util.Servlet</servlet-class><br />\n> <load-on-startup>2</load-on-startup><br />\n> </servlet><br />\n><br />\n><br />\n> <servlet><br />\n> <servlet-name>Faces Servlet</servlet-name><br />\n> </p>\n<!-- \n> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><!-- \n> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><p>><br />\n> <servlet-class>org.esupportail.commons.web.servlet.FacesServlet</servlet-class><br />\n><br />\n> <init-param><br />\n><br />\n<param-name>default-view</param-name>\n><br />\n<param-value>/jsp/main-menu.faces</param-value>\n> </init-param><br />\n> <load-on-startup>1</load-on-startup><br />\n> </servlet><br />\n><br />\n><br />\n> <servlet><br />\n> <servlet-name>xfire</servlet-name><br />\n> <servlet-class><br />\n> org.springframework.web.servlet.DispatcherServlet<br />\n> </servlet-class><br />\n> </servlet><br />\n><br />\n> </p>\n<!--\n> <servlet>\n> <servlet-name>portlet</servlet-name>\n> <display-name>portlet</display-name>\n> <description>\n> The ori-oai-workflow-spring portlet servlet\n> </description>\n> <servlet-class>\n> org.apache.pluto.core.PortletServlet\n> </servlet-class>\n> <init-param>\n> <param-name>portlet-class</param-name>\n> <param-value>\n> org.esupportail.commons.web.portlet.FacesPortlet\n> </param-value>\n> </init-param>\n> <init-param>\n> <param-name>portlet-guid</param-name>\n> <param-value>ori-oai-workflow-spring.portlet</param-value>\n> </init-param>\n> </servlet>\n> --><!--\n> <servlet>\n> <servlet-name>portlet</servlet-name>\n> <display-name>portlet</display-name>\n> <description>\n> The ori-oai-workflow-spring portlet servlet\n> </description>\n> <servlet-class>\n> org.apache.pluto.core.PortletServlet\n> </servlet-class>\n> <init-param>\n> <param-name>portlet-class</param-name>\n> <param-value>\n> org.esupportail.commons.web.portlet.FacesPortlet\n> </param-value>\n> </init-param>\n> <init-param>\n> <param-name>portlet-guid</param-name>\n> <param-value>ori-oai-workflow-spring.portlet</param-value>\n> </init-param>\n> </servlet>\n> --><p>><br />\n> <servlet-mapping><br />\n> <servlet-name>Jenia internal servlet</servlet-name><br />\n> <url-pattern>/jenia4faces/*</url-pattern><br />\n> </servlet-mapping><br />\n><br />\n><br />\n> <servlet-mapping><br />\n> <servlet-name>Faces Servlet</servlet-name><br />\n> <url-pattern>*.faces</url-pattern><br />\n> </servlet-mapping><br />\n><br />\n><br />\n> <servlet-mapping><br />\n> <servlet-name>xfire</servlet-name><br />\n> <url-pattern>/xfire/*</url-pattern><br />\n> </servlet-mapping><br />\n><br />\n> </p>\n<!--\n> <servlet-mapping>\n> <servlet-name>portlet</servlet-name>\n> <url-pattern>/portlet/*</url-pattern>\n> </servlet-mapping>\n> --><!--\n> <servlet-mapping>\n> <servlet-name>portlet</servlet-name>\n> <url-pattern>/portlet/*</url-pattern>\n> </servlet-mapping>\n> --><p>><br />\n> </p>\n<!-- Welcome files --><!-- Welcome files --><p>> <welcome-file-list><br />\n> <welcome-file>index.html</welcome-file><br />\n> </welcome-file-list><br />\n><br />\n> <security-constraint><br />\n> <display-name><br />\n> Prevent access to raw JSP pages that are for JSF pages.<br />\n> </display-name><br />\n> <web-resource-collection><br />\n> <web-resource-name>Raw-JSF-JSP-Pages</web-resource-name><br />\n> <url-pattern>*.jsp</url-pattern><br />\n> </web-resource-collection><br />\n> <auth-constraint><br />\n> <description>No roles, so no direct access</description><br />\n> </auth-constraint><br />\n> </security-constraint><br />\n> </web-app><br />\n><br />\n><br />\n> ---------------------------------------<br />\n><br />\n> Un exemple de Config serait le bienvenu.<br />\n><br />\n><br />\n> Merci<br />\n> Cordialement</div>\n</blockquote>\n<p>--<br />\nCe message a\n</div>\n', created = 1507745830, expire = 1507832230, headers = '', serialized = 0 WHERE cid = '4:ff2e2d1fbc000e66602515a58701e81b' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:44d378d736fd09e4206c030e3bc657b0' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour et merci Vincent</p>\n<p>Je me reponds a moi meme.<br />\nL \'authentification CAS de mon workflow fonctionne, le parametrage de<br />\nWebContent/WEB-INF/web.xml indique par Vincent n a pas suffit.<br />\nJ avais toujours l\'erreur ci apres<br />\n-------------------------------------------------------<br />\nERROR client.CASReceipt getReceipt[55] -<br />\nedu.yale.its.tp.cas.client.CASAuthenticationException: Unable to<br />\nvalidate ProxyTicketValidator<br />\n[[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null]<br />\n[edu.yale.its.tp.cas.client.ServiceTicketValidator<br />\ncasValidateUrl=[https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate]<br />\nticket=[ST-4874-WkLNeO9fHpV646xCwSZp]<br />\nservice=[http%3A%2F%2Ftheoden.st-cyr.terre.defense.gouv.fr%3A8185%2Fori-oai-workflow%2Fjsp%2Flogin-cas.faces]<br />\nrenew=false]]]<br />\n---------------------------------------------------------<br />\nApres recherche sur Internet et l aide de mon collegue Franck Le Calloch</p>\n<p>Nous avons fait les modifications suivantes:</p>\n<p>Installation sur le serveur ori-oai d\'une keystore contenant le<br />\ncertificat du CAS, puis parametrage du lancement du tomcat-workflow<br />\npour qu il connaisse la keystore (a la maniere du quickstart du<br />\nportail).</p>\n<p>Declaration du parametre d emplacement de la keystore<br />\nexport TRUST_CERT=/etc/ssl/certs/cas.keystore</p>\n<p>--- Ligne ajoutee dans le fichier startup.sh du tomcat-workflow<br />\n# Prise en compte de la keystore du cas<br />\nexport CATALINA_OPTS=\"-Djavax.net.ssl.trustStore=$TRUST_CERT\"</p>\n<p>Avec cela , l authentification CAS fonctionne correctement.</p>\n<p>C etait sans doute evident, mais peut etre que cela pourra aider.</p>\n<p>Merci a tous, je continue.</p>\n<p>Patrick</p>\n<p>Quoting Vincent Bonamy <<span id=\"919301b5c518c9ff00d1a59ebc883be5\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'919301b5c518c9ff00d1a59ebc883be5\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#86;&#105;&#110;&#99;&#101;&#110;&#116;&#46;&#66;&#111;&#110;&#97;&#109;&#121;&#64;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#86;&#105;&#110;&#99;&#101;&#110;&#116;&#46;&#66;&#111;&#110;&#97;&#109;&#121;&#64;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>>:</p>\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Bonjour,<br />\n><br />\n> C\'est bien le fichier WebContent/WEB-INF/web.xml qu\'il faut modifier.<br />\n> Précisément le bloc correspondant au \"filter\" nommé \"CAS Filter\".<br />\n><br />\n> Par rapport au fichier web.xml donné ci-dessous, je pense que c\'est<br />\n> simplement les valeurs des url CAS qui ne sont pas bonnes.<br />\n> Je mettrais (à l\'image du web.xml donné par défaut et configuré sur le<br />\n> sso-cas de Rennes1) cela plutôt :<br />\n><br />\n> <init-param><br />\n><br />\n<param-name>\n> edu.yale.its.tp.cas.client.filter.loginUrl<br />\n> </param-name>\n><br />\n<param-value>\n> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/login\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/login\">https://cas.st-cyr.terre.defense.gouv.fr/cas/login</a><br />\n> </param-value>\n> </init-param><br />\n> <init-param><br />\n><br />\n<param-name>\n> edu.yale.its.tp.cas.client.filter.validateUrl<br />\n> </param-name>\n><br />\n<param-value>\n> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate\">https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate</a><br />\n> </param-value>\n> </init-param><br />\n><br />\n> Cordialement,<br />\n> Vincent Bonamy.<br />\n><br />\n><br />\n> patrick.jaouen wrote:</p></blockquote>\n<blockquote class=\"emailFilter_Author_1\"><p>>> Bonjour<br />\n>><br />\n>> Dans le module Workflow, j ai l authentification LDAP qui fonctionne mais je<br />\n>> renconcontre des difficultes avec le parametrage CAS.<br />\n>><br />\n>> Je recherche des precisions sur l authentification CAS du module Workflow.<br />\n>><br />\n>> Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?<br />\n>><br />\n>><br />\n>> Voici ce que j y ai mis<br />\n>> ---------------------------------------<br />\n>><br />\n>> <?xml version=\"1.0\" encoding=\"UTF-8\"?><br />\n>> <!DOCTYPE web-app PUBLIC \"-//Sun Microsystems, Inc.//DTD Web<br />\n>> Application 2.3//EN\" \"http://java.sun.com/dtd/web-app_2_3.dtd\"><br />\n>> <web-app><br />\n>><br />\n>> </p>\n<!-- Nom de notre Portlet --><!-- Nom de notre Portlet --><p>>> <display-name>ORI-OAI-Workflow</display-name><br />\n>><br />\n>><br />\n>> </p>\n<!-- session timeout --><!-- session timeout --><p>>> <session-config><br />\n>> <session-timeout>120</session-timeout><br />\n>> </session-config><br />\n>><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>contextConfigLocation</param-name>\n>><br />\n>><br />\n<param-value>classpath:/properties/applicationContext.xml</param-value>\n>> </context-param><br />\n>><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>org.apache.myfaces.PRETTY_HTML</param-name>\n>><br />\n<param-value>true</param-value>\n>> </context-param><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>\n>><br />\n<param-value>true</param-value>\n>> </context-param><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>\n>><br />\n<param-value>false</param-value>\n>> </context-param><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>\n>><br />\n<param-value>false</param-value>\n>> </context-param><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>\n>><br />\n<param-value>\n>> org.apache.myfaces.renderkit.html.util.DefaultAddResource<br />\n>> </param-value>\n>> </context-param><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>\n>> org.apache.myfaces.CHECK_EXTENSIONS_FILTER<br />\n>> </param-name>\n>><br />\n<param-value>true</param-value>\n>> </context-param><br />\n>><br />\n>> <context-param><br />\n>><br />\n<param-name>javax.faces.STATE_SAVING_METHOD</param-name>\n>><br />\n<param-value>client</param-value>\n>> </context-param><br />\n>><br />\n>> <filter><br />\n>> <filter-name>CAS Filter</filter-name><br />\n>> <display-name>CASFilter</display-name><br />\n>> <description><br />\n>> The CAS filter, used to authenticate users.<br />\n>> </description><br />\n>> <filter-class><br />\n>> edu.yale.its.tp.cas.client.filter.CASFilter<br />\n>> </filter-class><br />\n>> <init-param><br />\n>><br />\n<param-name>\n>> edu.yale.its.tp.cas.client.filter.loginUrl<br />\n>> </param-name>\n>><br />\n<param-value>\n>> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\">https://cas.st-cyr.terre.defense.gouv.fr/cas</a><br />\n>> </param-value>\n>> </init-param><br />\n>> <init-param><br />\n>><br />\n<param-name>\n>> edu.yale.its.tp.cas.client.filter.validateUrl<br />\n>> </param-name>\n>><br />\n<param-value>\n>> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\">https://cas.st-cyr.terre.defense.gouv.fr/cas/validate</a><br />\n>> </param-value>\n>> </init-param><br />\n>> <init-param><br />\n>><br />\n<param-name>\n>> edu.yale.its.tp.cas.client.filter.serverName<br />\n>> </param-name>\n>><br />\n>><br />\n<param-value>theoden.st-cyr.terre.defense.gouv.fr:8185</param-value>\n>> </init-param><br />\n>> <init-param><br />\n>><br />\n<param-name>\n>> edu.yale.its.tp.cas.client.filter.wrapRequest<br />\n>> </param-name>\n>><br />\n<param-value>true</param-value>\n>> </init-param><br />\n>> </filter><br />\n>> <filter-mapping><br />\n>> <filter-name>CAS Filter</filter-name><br />\n>> <url-pattern>/jsp/login-cas.faces</url-pattern><br />\n>> </filter-mapping><br />\n>><br />\n>><br />\n>> <filter><br />\n>> <filter-name>Acegi</filter-name><br />\n>> <filter-class><br />\n>> org.acegisecurity.util.FilterToBeanProxy<br />\n>> </filter-class><br />\n>> <init-param><br />\n>><br />\n<param-name>targetClass</param-name>\n>><br />\n<param-value>\n>> org.acegisecurity.util.FilterChainProxy<br />\n>> </param-value>\n>> </init-param><br />\n>> </filter><br />\n>> <filter-mapping><br />\n>> <filter-name>Acegi</filter-name><br />\n>> <url-pattern>*.faces</url-pattern><br />\n>> </filter-mapping><br />\n>><br />\n>><br />\n>><br />\n<listener>\n>><br />\n<listener-class>\n>> org.springframework.web.context.request.RequestContextListener<br />\n>> </listener-class>\n>> </listener>\n>><br />\n>><br />\n>><br />\n<listener>\n>><br />\n<listener-class>\n>> org.springframework.web.context.ContextLoaderListener<br />\n>> </listener-class>\n>> </listener>\n>><br />\n>><br />\n>> </p>\n<!--\n>> The HttpSessionEventPublisher will publish\n>> HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n>> to the WebApplicationContext\n>> --><!--\n>> The HttpSessionEventPublisher will publish\n>> HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n>> to the WebApplicationContext\n>> --><p>>><br />\n<listener>\n>><br />\n<listener-class>\n>> org.acegisecurity.ui.session.HttpSessionEventPublisher<br />\n>> </listener-class>\n>> </listener>\n>><br />\n>> <servlet><br />\n>> <servlet-name>Jenia internal servlet</servlet-name><br />\n>> <servlet-class>org.jenia.faces.util.Servlet</servlet-class><br />\n>> <load-on-startup>2</load-on-startup><br />\n>> </servlet><br />\n>><br />\n>><br />\n>> <servlet><br />\n>> <servlet-name>Faces Servlet</servlet-name><br />\n>> </p>\n<!-- \n>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><!-- \n>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><p>>><br />\n>> <servlet-class>org.esupportail.commons.web.servlet.FacesServlet</servlet-class><br />\n>> <init-param><br />\n>><br />\n<param-name>default-view</param-name>\n>><br />\n<param-value>/jsp/main-menu.faces</param-value>\n>> </init-param><br />\n>> <load-on-startup>1</load-on-startup><br />\n>> </servlet><br />\n>><br />\n>><br />\n>> <servlet><br />\n>> <servlet-name>xfire</servlet-name><br />\n>> <servlet-class><br />\n>> org.springframework.web.servlet.DispatcherServlet<br />\n>> </servlet-class><br />\n>> </servlet><br />\n>><br />\n>> </p>\n<!--\n>> <servlet>\n>> <servlet-name>portlet</servlet-name>\n>> <display-name>portlet</display-name>\n>> <description>\n>> The ori-oai-workflow-spring portlet servlet\n>> </description>\n>> <servlet-class>\n>> org.apache.pluto.core.PortletServlet\n>> </servlet-class>\n>> <init-param>\n>> <param-name>portlet-class</param-name>\n>> <param-value>\n>> org.esupportail.commons.web.portlet.FacesPortlet\n>> </param-value>\n>> </init-param>\n>> <init-param>\n>> <param-name>portlet-guid</param-name>\n>> <param-value>ori-oai-workflow-spring.portlet</param-value>\n>> </init-param>\n>> </servlet>\n>> --><!--\n>> <servlet>\n>> <servlet-name>portlet</servlet-name>\n>> <display-name>portlet</display-name>\n>> <description>\n>> The ori-oai-workflow-spring portlet servlet\n>> </description>\n>> <servlet-class>\n>> org.apache.pluto.core.PortletServlet\n>> </servlet-class>\n>> <init-param>\n>> <param-name>portlet-class</param-name>\n>> <param-value>\n>> org.esupportail.commons.web.portlet.FacesPortlet\n>> </param-value>\n>> </init-param>\n>> <init-param>\n>> <param-name>portlet-guid</param-name>\n>> <param-value>ori-oai-workflow-spring.portlet</param-value>\n>> </init-param>\n>> </servlet>\n>> --><p>>><br />\n>> <servlet-mapping><br />\n>> <servlet-name>Jenia internal servlet</servlet-name><br />\n>> <url-pattern>/jenia4faces/*</url-pattern><br />\n>> </servlet-mapping><br />\n>><br />\n>><br />\n>> <servlet-mapping><br />\n>> <servlet-name>Faces Servlet</servlet-name><br />\n>> <url-pattern>*.faces</url-pattern><br />\n>> </servlet-mapping><br />\n>><br />\n>><br />\n>> <servlet-mapping><br />\n>> <servlet-name>xfire</servlet-name><br />\n>> <url-pattern>/xfire/*</url-pattern><br />\n>> </servlet-mapping><br />\n>><br />\n>> </p>\n<!--\n>> <servlet-mapping>\n>> <servlet-name>portlet</servlet-name>\n>> <url-pattern>/portlet/*</url-pattern>\n>> </servlet-mapping>\n>> --><!--\n>> <servlet-mapping>\n>> <servlet-name>portlet</servlet-name>\n>> <url-pattern>/portlet/*</url-pattern>\n>> </servlet-mapping>\n>> --><p>>><br />\n>> </p>\n<!-- Welcome files --><!-- Welcome files --><p>>> <welcome-file-list><br />\n>> <welcome-file>index.html</welcome-file><br />\n>> </welcome-file-list><br />\n>><br />\n>> <security-constraint><br />\n>> <display-name><br />\n>> Prevent access to raw JSP pages that are for JSF pages.<br />\n>> </display-name><br />\n>> <web-resource-collection><br />\n>> <web-resource-name>Raw-JSF-JSP-Pages</web-resource-name><br />\n>> <url-pattern>*.jsp</url-pattern><br />\n>> </web-resource-collection><br />\n>> <auth-constraint><br />\n>> <description>No roles, so no direct access</description><br />\n>> </auth-constraint><br />\n>> </security-constraint><br />\n>> </web-app><br />\n>><br />\n>><br />\n>> ---------------------------------------<br />\n>><br />\n>> Un exemple de Config serait le bienvenu.<br />\n>><br />\n>><br />\n>> Merci<br />\n>> Cordialement</div>\n</blockquote>\n<p>--<br />\nPatrick Jaouen<br />\nEcoles de St-Cyr Coetquidan<br />\nBureau Informatique</p>\n<p>--<br />\nCe message a\n</div>\n', created = 1507745830, expire = 1507832230, headers = '', serialized = 0 WHERE cid = '4:44d378d736fd09e4206c030e3bc657b0' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:5419ccccf7f2d095ab20703aea2b78dc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonjour Patrick,</p>\n<p>Merci pour ce retour, effectivement, j\'avais noté cela dans la<br />\ndocumentation :<br />\n<a href=\"http://sourcesup.cru.fr/ori-workflow/installation.html#6\" title=\"http://sourcesup.cru.fr/ori-workflow/installation.html#6\">http://sourcesup.cru.fr/ori-workflow/installation.html#6</a><br />\nMais c\'est vrai qu\'on utilise ici un certificat Rennes1 donné par le CRU<br />\net reconnu par la JVM de facto (donc on oublie peu à peu cette subtilité).</p>\n<p>Pour infos au passage donc, toutes les informations autour de cette<br />\npossibilité d\'obtention de certifcats via le CRU figurent ici :<br />\n<a href=\"http://www.cru.fr/services/scs/index\" title=\"http://www.cru.fr/services/scs/index\">http://www.cru.fr/services/scs/index</a></p>\n<p>Vincent.</p>\n<p>patrick.jaouen wrote:<br />\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Bonjour et merci Vincent<br />\n><br />\n> Je me reponds a moi meme.<br />\n> L \'authentification CAS de mon workflow fonctionne, le parametrage de<br />\n> WebContent/WEB-INF/web.xml indique par Vincent n a pas suffit.<br />\n> J avais toujours l\'erreur ci apres<br />\n> -------------------------------------------------------<br />\n> ERROR client.CASReceipt getReceipt[55] -<br />\n> edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to<br />\n> validate ProxyTicketValidator<br />\n> [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null]<br />\n> [edu.yale.its.tp.cas.client.ServiceTicketValidator<br />\n> casValidateUrl=[https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate]<br />\n> ticket=[ST-4874-WkLNeO9fHpV646xCwSZp]<br />\n> service=[http%3A%2F%2Ftheoden.st-cyr.terre.defense.gouv.fr%3A8185%2Fori-oai-workflow%2Fjsp%2Flogin-cas.faces]<br />\n> renew=false]]]<br />\n> ---------------------------------------------------------<br />\n> Apres recherche sur Internet et l aide de mon collegue Franck Le Calloch<br />\n><br />\n> Nous avons fait les modifications suivantes:<br />\n><br />\n> Installation sur le serveur ori-oai d\'une keystore contenant le<br />\n> certificat du CAS, puis parametrage du lancement du tomcat-workflow<br />\n> pour qu il connaisse la keystore (a la maniere du quickstart du portail).<br />\n><br />\n> Declaration du parametre d emplacement de la keystore<br />\n> export TRUST_CERT=/etc/ssl/certs/cas.keystore<br />\n><br />\n> --- Ligne ajoutee dans le fichier startup.sh du tomcat-workflow<br />\n> # Prise en compte de la keystore du cas<br />\n> export CATALINA_OPTS=\"-Djavax.net.ssl.trustStore=$TRUST_CERT\"<br />\n><br />\n><br />\n> Avec cela , l authentification CAS fonctionne correctement.<br />\n><br />\n> C etait sans doute evident, mais peut etre que cela pourra aider.<br />\n><br />\n> Merci a tous, je continue.<br />\n><br />\n> Patrick<br />\n><br />\n><br />\n><br />\n> Quoting Vincent Bonamy <<span id=\"a3d5e92c57484df32761ceb295829e87\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'a3d5e92c57484df32761ceb295829e87\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#86;&#105;&#110;&#99;&#101;&#110;&#116;&#46;&#66;&#111;&#110;&#97;&#109;&#121;&#64;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#86;&#105;&#110;&#99;&#101;&#110;&#116;&#46;&#66;&#111;&#110;&#97;&#109;&#121;&#64;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>>:<br />\n></p></blockquote>\n<blockquote class=\"emailFilter_Author_1\"><p>>> Bonjour,<br />\n>><br />\n>> C\'est bien le fichier WebContent/WEB-INF/web.xml qu\'il faut modifier.<br />\n>> Précisément le bloc correspondant au \"filter\" nommé \"CAS Filter\".<br />\n>><br />\n>> Par rapport au fichier web.xml donné ci-dessous, je pense que c\'est<br />\n>> simplement les valeurs des url CAS qui ne sont pas bonnes.<br />\n>> Je mettrais (à l\'image du web.xml donné par défaut et configuré sur le<br />\n>> sso-cas de Rennes1) cela plutôt :<br />\n>><br />\n>> <init-param><br />\n>><br />\n<param-name>\n>> edu.yale.its.tp.cas.client.filter.loginUrl<br />\n>> </param-name>\n>><br />\n<param-value>\n>> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/login\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/login\">https://cas.st-cyr.terre.defense.gouv.fr/cas/login</a><br />\n>> </param-value>\n>> </init-param><br />\n>> <init-param><br />\n>><br />\n<param-name>\n>> edu.yale.its.tp.cas.client.filter.validateUrl<br />\n>> </param-name>\n>><br />\n<param-value>\n>><br />\n>> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate\">https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate</a><br />\n>> </param-value>\n>> </init-param><br />\n>><br />\n>> Cordialement,<br />\n>> Vincent Bonamy.<br />\n>><br />\n>><br />\n>> patrick.jaouen wrote:</p></blockquote>\n<blockquote class=\"emailFilter_Author_2\"><p>>>> Bonjour<br />\n>>><br />\n>>> Dans le module Workflow, j ai l authentification LDAP qui fonctionne<br />\n>>> mais je<br />\n>>> renconcontre des difficultes avec le parametrage CAS.<br />\n>>><br />\n>>> Je recherche des precisions sur l authentification CAS du module<br />\n>>> Workflow.<br />\n>>><br />\n>>> Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?<br />\n>>><br />\n>>><br />\n>>> Voici ce que j y ai mis<br />\n>>> ---------------------------------------<br />\n>>><br />\n>>> <?xml version=\"1.0\" encoding=\"UTF-8\"?><br />\n>>> <!DOCTYPE web-app PUBLIC \"-//Sun Microsystems, Inc.//DTD Web<br />\n>>> Application 2.3//EN\" \"http://java.sun.com/dtd/web-app_2_3.dtd\"><br />\n>>> <web-app><br />\n>>><br />\n>>> </p>\n<!-- Nom de notre Portlet --><!-- Nom de notre Portlet --><p>>>> <display-name>ORI-OAI-Workflow</display-name><br />\n>>><br />\n>>><br />\n>>> </p>\n<!-- session timeout --><!-- session timeout --><p>>>> <session-config><br />\n>>> <session-timeout>120</session-timeout><br />\n>>> </session-config><br />\n>>><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>contextConfigLocation</param-name>\n>>><br />\n>>><br />\n<param-value>classpath:/properties/applicationContext.xml</param-value>\n>>> </context-param><br />\n>>><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>org.apache.myfaces.PRETTY_HTML</param-name>\n>>><br />\n<param-value>true</param-value>\n>>> </context-param><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>\n>>><br />\n<param-value>true</param-value>\n>>> </context-param><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>\n>>><br />\n<param-value>false</param-value>\n>>> </context-param><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>\n>>><br />\n<param-value>false</param-value>\n>>> </context-param><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>\n>>><br />\n<param-value>\n>>> org.apache.myfaces.renderkit.html.util.DefaultAddResource<br />\n>>> </param-value>\n>>> </context-param><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>\n>>> org.apache.myfaces.CHECK_EXTENSIONS_FILTER<br />\n>>> </param-name>\n>>><br />\n<param-value>true</param-value>\n>>> </context-param><br />\n>>><br />\n>>> <context-param><br />\n>>><br />\n<param-name>javax.faces.STATE_SAVING_METHOD</param-name>\n>>><br />\n<param-value>client</param-value>\n>>> </context-param><br />\n>>><br />\n>>> <filter><br />\n>>> <filter-name>CAS Filter</filter-name><br />\n>>> <display-name>CASFilter</display-name><br />\n>>> <description><br />\n>>> The CAS filter, used to authenticate users.<br />\n>>> </description><br />\n>>> <filter-class><br />\n>>> edu.yale.its.tp.cas.client.filter.CASFilter<br />\n>>> </filter-class><br />\n>>> <init-param><br />\n>>><br />\n<param-name>\n>>> edu.yale.its.tp.cas.client.filter.loginUrl<br />\n>>> </param-name>\n>>><br />\n<param-value>\n>>> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas\">https://cas.st-cyr.terre.defense.gouv.fr/cas</a><br />\n>>> </param-value>\n>>> </init-param><br />\n>>> <init-param><br />\n>>><br />\n<param-name>\n>>> edu.yale.its.tp.cas.client.filter.validateUrl<br />\n>>> </param-name>\n>>><br />\n<param-value>\n>>> <a href=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\" title=\"https://cas.st-cyr.terre.defense.gouv.fr/cas/validate\">https://cas.st-cyr.terre.defense.gouv.fr/cas/validate</a><br />\n>>> </param-value>\n>>> </init-param><br />\n>>> <init-param><br />\n>>><br />\n<param-name>\n>>> edu.yale.its.tp.cas.client.filter.serverName<br />\n>>> </param-name>\n>>><br />\n>>><br />\n<param-value>theoden.st-cyr.terre.defense.gouv.fr:8185</param-value>\n>>> </init-param><br />\n>>> <init-param><br />\n>>><br />\n<param-name>\n>>> edu.yale.its.tp.cas.client.filter.wrapRequest<br />\n>>> </param-name>\n>>><br />\n<param-value>true</param-value>\n>>> </init-param><br />\n>>> </filter><br />\n>>> <filter-mapping><br />\n>>> <filter-name>CAS Filter</filter-name><br />\n>>> <url-pattern>/jsp/login-cas.faces</url-pattern><br />\n>>> </filter-mapping><br />\n>>><br />\n>>><br />\n>>> <filter><br />\n>>> <filter-name>Acegi</filter-name><br />\n>>> <filter-class><br />\n>>> org.acegisecurity.util.FilterToBeanProxy<br />\n>>> </filter-class><br />\n>>> <init-param><br />\n>>><br />\n<param-name>targetClass</param-name>\n>>><br />\n<param-value>\n>>> org.acegisecurity.util.FilterChainProxy<br />\n>>> </param-value>\n>>> </init-param><br />\n>>> </filter><br />\n>>> <filter-mapping><br />\n>>> <filter-name>Acegi</filter-name><br />\n>>> <url-pattern>*.faces</url-pattern><br />\n>>> </filter-mapping><br />\n>>><br />\n>>><br />\n>>><br />\n<listener>\n>>><br />\n<listener-class>\n>>><br />\n>>> org.springframework.web.context.request.RequestContextListener<br />\n>>> </listener-class>\n>>> </listener>\n>>><br />\n>>><br />\n>>><br />\n<listener>\n>>><br />\n<listener-class>\n>>> org.springframework.web.context.ContextLoaderListener<br />\n>>> </listener-class>\n>>> </listener>\n>>><br />\n>>><br />\n>>> </p>\n<!--\n>>> The HttpSessionEventPublisher will publish\n>>> HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n>>> to the WebApplicationContext\n>>> --><!--\n>>> The HttpSessionEventPublisher will publish\n>>> HttpSessionCreatedEvent and HttpSessionDestroyedEvent\n>>> to the WebApplicationContext\n>>> --><p>>>><br />\n<listener>\n>>><br />\n<listener-class>\n>>> org.acegisecurity.ui.session.HttpSessionEventPublisher<br />\n>>> </listener-class>\n>>> </listener>\n>>><br />\n>>> <servlet><br />\n>>> <servlet-name>Jenia internal servlet</servlet-name><br />\n>>> <servlet-class>org.jenia.faces.util.Servlet</servlet-class><br />\n>>> <load-on-startup>2</load-on-startup><br />\n>>> </servlet><br />\n>>><br />\n>>><br />\n>>> <servlet><br />\n>>> <servlet-name>Faces Servlet</servlet-name><br />\n>>> </p>\n<!-- \n>>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><!-- \n>>> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> --><p>>>><br />\n>>> <servlet-class>org.esupportail.commons.web.servlet.FacesServlet</servlet-class><br />\n>>> <init-param><br />\n>>><br />\n<param-name>default-view</param-name>\n>>><br />\n<param-value>/jsp/main-menu.faces</param-value>\n>>> </init-param><br />\n>>> <load-on-startup>1</load-on-startup><br />\n>>> </servlet><br />\n>>><br />\n>>><br />\n>>> <servlet><br />\n>>> <servlet-name>xfire</servlet-name><br />\n>>> <servlet-class><br />\n>>> org.springframework.web.servlet.DispatcherServlet<br />\n>>> </servlet-class><br />\n>>> </servlet><br />\n>>><br />\n>>> </p>\n<!--\n>>> <servlet>\n>>> <servlet-name>portlet</servlet-name>\n>>> <display-name>portlet</display-name>\n>>> <description>\n>>> The ori-oai-workflow-spring portlet servlet\n>>> </description>\n>>> <servlet-class>\n>>> org.apache.pluto.core.PortletServlet\n>>> </servlet-class>\n>>> <init-param>\n>>> <param-name>portlet-class</param-name>\n>>> <param-value>\n>>> org.esupportail.commons.web.portlet.FacesPortlet\n>>> </param-value>\n>>> </init-param>\n>>> <init-param>\n>>> <param-name>portlet-guid</param-name>\n>>> <param-value>ori-oai-workflow-spring.portlet</param-value>\n>>> </init-param>\n>>> </servlet>\n>>> --><!--\n>>> <servlet>\n>>> <servlet-name>portlet</servlet-name>\n>>> <display-name>portlet</display-name>\n>>> <description>\n>>> The ori-oai-workflow-spring portlet servlet\n>>> </description>\n>>> <servlet-class>\n>>> org.apache.pluto.core.PortletServlet\n>>> </servlet-class>\n>>> <init-param>\n>>> <param-name>portlet-class</param-name>\n>>> <param-value>\n>>> org.esupportail.commons.web.portlet.FacesPortlet\n>>> </param-value>\n>>> </init-param>\n>>> <init-param>\n>>> <param-name>portlet-guid</param-name>\n>>> <param-value>ori-oai-workflow-spring.portlet</param-value>\n>>> </init-param>\n>>> </servlet>\n>>> --><p>>>><br />\n>>> <servlet-mapping><br />\n>>> <servlet-name>Jenia internal servlet</servlet-name><br />\n>>> <url-pattern>/jenia4faces/*</url-pattern><br />\n>>> </servlet-mapping><br />\n>>><br />\n>>><br />\n>>> <servlet-mapping><br />\n>>> <servlet-name>Faces Servlet</servlet-name><br />\n>>> <url-pattern>*.faces</url-pattern><br />\n>>> </servlet-mapping><br />\n>>><br />\n>>><br />\n>>> <servlet-mapping><br />\n>>> <servlet-name>xfire</servlet-name><br />\n>>> <url-pattern>/xfire/*</url-pattern><br />\n>>> </servlet-mapping><br />\n>>><br />\n>>> </p>\n<!--\n>>> <servlet-mapping>\n>>> <servlet-name>portlet</servlet-name>\n>>> <url-pattern>/portlet/*</url-pattern>\n>>> </servlet-mapping>\n>>> --><!--\n>>> <servlet-mapping>\n>>> <servlet-name>portlet</servlet-name>\n>>> <url-pattern>/portlet/*</url-pattern>\n>>> </servlet-mapping>\n>>> --><p>>>><br />\n>>> </p>\n<!-- Welcome files --><!-- Welcome files --><p>>>> <welcome-file-list><br />\n>>> <welcome-file>index.html</welcome-file><br />\n>>> </welcome-file-list><br />\n>>><br />\n>>> <security-constraint><br />\n>>> <display-name><br />\n>>> Prevent access to raw JSP pages that are for JSF pages.<br />\n>>> </display-name><br />\n>>> <web-resource-collection><br />\n>>> <web-resource-name>Raw-JSF-JSP-Pages</web-resource-name><br />\n>>> <url-pattern>*.jsp</url-pattern><br />\n>>> </web-resource-collection><br />\n>>> <auth-constraint><br />\n>>> <description>No roles, so no direct access</description><br />\n>>> </auth-constraint><br />\n>>> </security-constraint><br />\n>>> </web-app><br />\n>>><br />\n>>><br />\n>>> ---------------------------------------<br />\n>>><br />\n>>> Un exemple de Config serait le bienvenu.<br />\n>>><br />\n>>><br />\n>>> Merci<br />\n>>> Cordialement</p></blockquote>\n<blockquote class=\"emailFilter_Author_0\"><p>><br />\n><br />\n></div>\n</blockquote>\n<p>--<br />\nCe message a\n</div>\n', created = 1507745830, expire = 1507832230, headers = '', serialized = 0 WHERE cid = '4:5419ccccf7f2d095ab20703aea2b78dc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
4 messages / 0 nouveaux
Dernière contribution
patrick.jaouen
Authentification CAS du Workflow
Bonjour

Dans le module Workflow, j ai l authentification LDAP qui fonctionne mais je
renconcontre des difficultes avec le parametrage CAS.

Je recherche des precisions sur l authentification CAS du module Workflow.

Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?

Voici ce que j y ai mis
---------------------------------------


Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

ORI-OAI-Workflow


120

contextConfigLocation classpath:/properties/applicationContext.xml

org.apache.myfaces.PRETTY_HTML true

org.apache.myfaces.ALLOW_JAVASCRIPT true

org.apache.myfaces.DETECT_JAVASCRIPT false

org.apache.myfaces.AUTO_SCROLL false

org.apache.myfaces.ADD_RESOURCE_CLASS org.apache.myfaces.renderkit.html.util.DefaultAddResource

org.apache.myfaces.CHECK_EXTENSIONS_FILTER
true

javax.faces.STATE_SAVING_METHOD client


CAS Filter
CASFilter

The CAS filter, used to authenticate users.


edu.yale.its.tp.cas.client.filter.CASFilter

edu.yale.its.tp.cas.client.filter.loginUrl
https://cas.st-cyr.terre.defense.gouv.fr/cas

edu.yale.its.tp.cas.client.filter.validateUrl
https://cas.st-cyr.terre.defense.gouv.fr/cas/validate

edu.yale.its.tp.cas.client.filter.serverName
theoden.st-cyr.terre.defense.gouv.fr:8185

edu.yale.its.tp.cas.client.filter.wrapRequest
true



CAS Filter
/jsp/login-cas.faces


Acegi

org.acegisecurity.util.FilterToBeanProxy

targetClass org.acegisecurity.util.FilterChainProxy



Acegi
*.faces

org.springframework.web.context.request.RequestContextListener
org.springframework.web.context.ContextLoaderListener
org.acegisecurity.ui.session.HttpSessionEventPublisher


Jenia internal servlet
org.jenia.faces.util.Servlet
2


Faces Servlet

org.esupportail.commons.web.servlet.FacesServlet

default-view /jsp/main-menu.faces
1


xfire

org.springframework.web.servlet.DispatcherServlet


Jenia internal servlet
/jenia4faces/*


Faces Servlet
*.faces


xfire
/xfire/*


index.html



Prevent access to raw JSP pages that are for JSF pages.


Raw-JSF-JSP-Pages
*.jsp


No roles, so no direct access


---------------------------------------

Un exemple de Config serait le bienvenu.

Merci
Cordialement
--
Patrick Jaouen
Ecoles de St-Cyr Coetquidan
Bureau Informatique

--
Ce message a

vincentbonamy
Bonjour,

C'est bien le fichier WebContent/WEB-INF/web.xml qu'il faut modifier.
Précisément le bloc correspondant au "filter" nommé "CAS Filter".

Par rapport au fichier web.xml donné ci-dessous, je pense que c'est
simplement les valeurs des url CAS qui ne sont pas bonnes.
Je mettrais (à l'image du web.xml donné par défaut et configuré sur le
sso-cas de Rennes1) cela plutôt :

edu.yale.its.tp.cas.client.filter.loginUrl
https://cas.st-cyr.terre.defense.gouv.fr/cas/login

edu.yale.its.tp.cas.client.filter.validateUrl
https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate

Cordialement,
Vincent Bonamy.

patrick.jaouen wrote:

> Bonjour
>
> Dans le module Workflow, j ai l authentification LDAP qui fonctionne
> mais je
> renconcontre des difficultes avec le parametrage CAS.
>
> Je recherche des precisions sur l authentification CAS du module
> Workflow.
>
> Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?
>
>
> Voici ce que j y ai mis
> ---------------------------------------
>
>
> > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
>
>
>

> ORI-OAI-Workflow
>
>
>

>
> 120
>

>
>
>
>
contextConfigLocation >
>
classpath:/properties/applicationContext.xml >

>
>
>
>
org.apache.myfaces.PRETTY_HTML >
true >

>
>
>
org.apache.myfaces.ALLOW_JAVASCRIPT >
true >

>
>
>
org.apache.myfaces.DETECT_JAVASCRIPT >
false >

>
>
>
org.apache.myfaces.AUTO_SCROLL >
false >

>
>
>
org.apache.myfaces.ADD_RESOURCE_CLASS >
> org.apache.myfaces.renderkit.html.util.DefaultAddResource
>
>

>
>
>
> org.apache.myfaces.CHECK_EXTENSIONS_FILTER
>
>
true >

>
>
>
javax.faces.STATE_SAVING_METHOD >
client >

>
>
> CAS Filter
> CASFilter
>
> The CAS filter, used to authenticate users.
>

>
> edu.yale.its.tp.cas.client.filter.CASFilter
>

>
>
> edu.yale.its.tp.cas.client.filter.loginUrl
>
>
> https://cas.st-cyr.terre.defense.gouv.fr/cas
>
>

>
>
> edu.yale.its.tp.cas.client.filter.validateUrl
>
>
> https://cas.st-cyr.terre.defense.gouv.fr/cas/validate
>
>

>
>
> edu.yale.its.tp.cas.client.filter.serverName
>
>
>
theoden.st-cyr.terre.defense.gouv.fr:8185 >

>
>
> edu.yale.its.tp.cas.client.filter.wrapRequest
>
>
true >

>

>
> CAS Filter
> /jsp/login-cas.faces
>

>
>
>
> Acegi
>
> org.acegisecurity.util.FilterToBeanProxy
>

>
>
targetClass >
> org.acegisecurity.util.FilterChainProxy
>
>

>

>
> Acegi
> *.faces
>

>
>
>
>
>
> org.springframework.web.context.request.RequestContextListener
>
>
>
>
>
>
> org.springframework.web.context.ContextLoaderListener
>
>
>
>
>

>
>
> org.acegisecurity.ui.session.HttpSessionEventPublisher
>
>
>
>
> Jenia internal servlet
> org.jenia.faces.util.Servlet
> 2
>

>
>
>
> Faces Servlet
>

>
> org.esupportail.commons.web.servlet.FacesServlet
>
>
>
default-view >
/jsp/main-menu.faces >

> 1
>
>
>
>
> xfire
>
> org.springframework.web.servlet.DispatcherServlet
>

>

>
>

>
>
> Jenia internal servlet
> /jenia4faces/*
>

>
>
>
> Faces Servlet
> *.faces
>

>
>
>
> xfire
> /xfire/*
>

>
>

>
>

>
> index.html
>

>
>
>
> Prevent access to raw JSP pages that are for JSF pages.
>

>
> Raw-JSF-JSP-Pages
> *.jsp
>

>
> No roles, so no direct access
>

>

>
>
>
> ---------------------------------------
>
> Un exemple de Config serait le bienvenu.
>
>
> Merci
> Cordialement

--
Ce message a

patrick.jaouen
Bonjour et merci Vincent

Je me reponds a moi meme.
L 'authentification CAS de mon workflow fonctionne, le parametrage de
WebContent/WEB-INF/web.xml indique par Vincent n a pas suffit.
J avais toujours l'erreur ci apres
-------------------------------------------------------
ERROR client.CASReceipt getReceipt[55] -
edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to
validate ProxyTicketValidator
[[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null]
[edu.yale.its.tp.cas.client.ServiceTicketValidator
casValidateUrl=[https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate]
ticket=[ST-4874-WkLNeO9fHpV646xCwSZp]
service=[http%3A%2F%2Ftheoden.st-cyr.terre.defense.gouv.fr%3A8185%2Fori-oai-workflow%2Fjsp%2Flogin-cas.faces]
renew=false]]]
---------------------------------------------------------
Apres recherche sur Internet et l aide de mon collegue Franck Le Calloch

Nous avons fait les modifications suivantes:

Installation sur le serveur ori-oai d'une keystore contenant le
certificat du CAS, puis parametrage du lancement du tomcat-workflow
pour qu il connaisse la keystore (a la maniere du quickstart du
portail).

Declaration du parametre d emplacement de la keystore
export TRUST_CERT=/etc/ssl/certs/cas.keystore

--- Ligne ajoutee dans le fichier startup.sh du tomcat-workflow
# Prise en compte de la keystore du cas
export CATALINA_OPTS="-Djavax.net.ssl.trustStore=$TRUST_CERT"

Avec cela , l authentification CAS fonctionne correctement.

C etait sans doute evident, mais peut etre que cela pourra aider.

Merci a tous, je continue.

Patrick

Quoting Vincent Bonamy < >:

> Bonjour,
>
> C'est bien le fichier WebContent/WEB-INF/web.xml qu'il faut modifier.
> Précisément le bloc correspondant au "filter" nommé "CAS Filter".
>
> Par rapport au fichier web.xml donné ci-dessous, je pense que c'est
> simplement les valeurs des url CAS qui ne sont pas bonnes.
> Je mettrais (à l'image du web.xml donné par défaut et configuré sur le
> sso-cas de Rennes1) cela plutôt :
>
>
>
> edu.yale.its.tp.cas.client.filter.loginUrl
>
>
> https://cas.st-cyr.terre.defense.gouv.fr/cas/login
>
>

>
>
> edu.yale.its.tp.cas.client.filter.validateUrl
>
>
> https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate
>
>

>
> Cordialement,
> Vincent Bonamy.
>
>
> patrick.jaouen wrote:

>> Bonjour
>>
>> Dans le module Workflow, j ai l authentification LDAP qui fonctionne mais je
>> renconcontre des difficultes avec le parametrage CAS.
>>
>> Je recherche des precisions sur l authentification CAS du module Workflow.
>>
>> Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?
>>
>>
>> Voici ce que j y ai mis
>> ---------------------------------------
>>
>>
>> >> Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
>>
>>
>>

>> ORI-OAI-Workflow
>>
>>
>>

>>
>> 120
>>

>>
>>
>>
>>
contextConfigLocation >>
>>
classpath:/properties/applicationContext.xml >>

>>
>>
>>
>>
org.apache.myfaces.PRETTY_HTML >>
true >>

>>
>>
>>
org.apache.myfaces.ALLOW_JAVASCRIPT >>
true >>

>>
>>
>>
org.apache.myfaces.DETECT_JAVASCRIPT >>
false >>

>>
>>
>>
org.apache.myfaces.AUTO_SCROLL >>
false >>

>>
>>
>>
org.apache.myfaces.ADD_RESOURCE_CLASS >>
>> org.apache.myfaces.renderkit.html.util.DefaultAddResource
>>
>>

>>
>>
>>
>> org.apache.myfaces.CHECK_EXTENSIONS_FILTER
>>
>>
true >>

>>
>>
>>
javax.faces.STATE_SAVING_METHOD >>
client >>

>>
>>
>> CAS Filter
>> CASFilter
>>
>> The CAS filter, used to authenticate users.
>>

>>
>> edu.yale.its.tp.cas.client.filter.CASFilter
>>

>>
>>
>> edu.yale.its.tp.cas.client.filter.loginUrl
>>
>>
>> https://cas.st-cyr.terre.defense.gouv.fr/cas
>>
>>

>>
>>
>> edu.yale.its.tp.cas.client.filter.validateUrl
>>
>>
>> https://cas.st-cyr.terre.defense.gouv.fr/cas/validate
>>
>>

>>
>>
>> edu.yale.its.tp.cas.client.filter.serverName
>>
>>
>>
theoden.st-cyr.terre.defense.gouv.fr:8185 >>

>>
>>
>> edu.yale.its.tp.cas.client.filter.wrapRequest
>>
>>
true >>

>>

>>
>> CAS Filter
>> /jsp/login-cas.faces
>>

>>
>>
>>
>> Acegi
>>
>> org.acegisecurity.util.FilterToBeanProxy
>>

>>
>>
targetClass >>
>> org.acegisecurity.util.FilterChainProxy
>>
>>

>>

>>
>> Acegi
>> *.faces
>>

>>
>>
>>
>>
>> org.springframework.web.context.request.RequestContextListener
>>
>>
>>
>>
>>
>>
>> org.springframework.web.context.ContextLoaderListener
>>
>>
>>
>>
>>

>>
>>
>> org.acegisecurity.ui.session.HttpSessionEventPublisher
>>
>>
>>
>>
>> Jenia internal servlet
>> org.jenia.faces.util.Servlet
>> 2
>>

>>
>>
>>
>> Faces Servlet
>>

>>
>> org.esupportail.commons.web.servlet.FacesServlet
>>
>>
default-view >>
/jsp/main-menu.faces >>

>> 1
>>
>>
>>
>>
>> xfire
>>
>> org.springframework.web.servlet.DispatcherServlet
>>

>>

>>
>>

>>
>>
>> Jenia internal servlet
>> /jenia4faces/*
>>

>>
>>
>>
>> Faces Servlet
>> *.faces
>>

>>
>>
>>
>> xfire
>> /xfire/*
>>

>>
>>

>>
>>

>>
>> index.html
>>

>>
>>
>>
>> Prevent access to raw JSP pages that are for JSF pages.
>>

>>
>> Raw-JSF-JSP-Pages
>> *.jsp
>>

>>
>> No roles, so no direct access
>>

>>

>>
>>
>>
>> ---------------------------------------
>>
>> Un exemple de Config serait le bienvenu.
>>
>>
>> Merci
>> Cordialement

--
Patrick Jaouen
Ecoles de St-Cyr Coetquidan
Bureau Informatique

--
Ce message a

vincentbonamy
Bonjour Patrick,

Merci pour ce retour, effectivement, j'avais noté cela dans la
documentation :
http://sourcesup.cru.fr/ori-workflow/installation.html#6
Mais c'est vrai qu'on utilise ici un certificat Rennes1 donné par le CRU
et reconnu par la JVM de facto (donc on oublie peu à peu cette subtilité).

Pour infos au passage donc, toutes les informations autour de cette
possibilité d'obtention de certifcats via le CRU figurent ici :
http://www.cru.fr/services/scs/index

Vincent.

patrick.jaouen wrote:

> Bonjour et merci Vincent
>
> Je me reponds a moi meme.
> L 'authentification CAS de mon workflow fonctionne, le parametrage de
> WebContent/WEB-INF/web.xml indique par Vincent n a pas suffit.
> J avais toujours l'erreur ci apres
> -------------------------------------------------------
> ERROR client.CASReceipt getReceipt[55] -
> edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to
> validate ProxyTicketValidator
> [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null]
> [edu.yale.its.tp.cas.client.ServiceTicketValidator
> casValidateUrl=[https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate]
> ticket=[ST-4874-WkLNeO9fHpV646xCwSZp]
> service=[http%3A%2F%2Ftheoden.st-cyr.terre.defense.gouv.fr%3A8185%2Fori-oai-workflow%2Fjsp%2Flogin-cas.faces]
> renew=false]]]
> ---------------------------------------------------------
> Apres recherche sur Internet et l aide de mon collegue Franck Le Calloch
>
> Nous avons fait les modifications suivantes:
>
> Installation sur le serveur ori-oai d'une keystore contenant le
> certificat du CAS, puis parametrage du lancement du tomcat-workflow
> pour qu il connaisse la keystore (a la maniere du quickstart du portail).
>
> Declaration du parametre d emplacement de la keystore
> export TRUST_CERT=/etc/ssl/certs/cas.keystore
>
> --- Ligne ajoutee dans le fichier startup.sh du tomcat-workflow
> # Prise en compte de la keystore du cas
> export CATALINA_OPTS="-Djavax.net.ssl.trustStore=$TRUST_CERT"
>
>
> Avec cela , l authentification CAS fonctionne correctement.
>
> C etait sans doute evident, mais peut etre que cela pourra aider.
>
> Merci a tous, je continue.
>
> Patrick
>
>
>
> Quoting Vincent Bonamy < >:
>

>> Bonjour,
>>
>> C'est bien le fichier WebContent/WEB-INF/web.xml qu'il faut modifier.
>> Précisément le bloc correspondant au "filter" nommé "CAS Filter".
>>
>> Par rapport au fichier web.xml donné ci-dessous, je pense que c'est
>> simplement les valeurs des url CAS qui ne sont pas bonnes.
>> Je mettrais (à l'image du web.xml donné par défaut et configuré sur le
>> sso-cas de Rennes1) cela plutôt :
>>
>>
>>
>> edu.yale.its.tp.cas.client.filter.loginUrl
>>
>>
>> https://cas.st-cyr.terre.defense.gouv.fr/cas/login
>>
>>

>>
>>
>> edu.yale.its.tp.cas.client.filter.validateUrl
>>
>>
>>
>> https://cas.st-cyr.terre.defense.gouv.fr/cas/serviceValidate
>>
>>

>>
>> Cordialement,
>> Vincent Bonamy.
>>
>>
>> patrick.jaouen wrote:

>>> Bonjour
>>>
>>> Dans le module Workflow, j ai l authentification LDAP qui fonctionne
>>> mais je
>>> renconcontre des difficultes avec le parametrage CAS.
>>>
>>> Je recherche des precisions sur l authentification CAS du module
>>> Workflow.
>>>
>>> Le fichier a parametrer est il bien /WebContent/WEB-INF/web.xml ?
>>>
>>>
>>> Voici ce que j y ai mis
>>> ---------------------------------------
>>>
>>>
>>> >>> Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
>>>
>>>
>>>

>>> ORI-OAI-Workflow
>>>
>>>
>>>

>>>
>>> 120
>>>

>>>
>>>
>>>
>>>
contextConfigLocation >>>
>>>
classpath:/properties/applicationContext.xml >>>

>>>
>>>
>>>
>>>
org.apache.myfaces.PRETTY_HTML >>>
true >>>

>>>
>>>
>>>
org.apache.myfaces.ALLOW_JAVASCRIPT >>>
true >>>

>>>
>>>
>>>
org.apache.myfaces.DETECT_JAVASCRIPT >>>
false >>>

>>>
>>>
>>>
org.apache.myfaces.AUTO_SCROLL >>>
false >>>

>>>
>>>
>>>
org.apache.myfaces.ADD_RESOURCE_CLASS >>>
>>> org.apache.myfaces.renderkit.html.util.DefaultAddResource
>>>
>>>

>>>
>>>
>>>
>>> org.apache.myfaces.CHECK_EXTENSIONS_FILTER
>>>
>>>
true >>>

>>>
>>>
>>>
javax.faces.STATE_SAVING_METHOD >>>
client >>>

>>>
>>>
>>> CAS Filter
>>> CASFilter
>>>
>>> The CAS filter, used to authenticate users.
>>>

>>>
>>> edu.yale.its.tp.cas.client.filter.CASFilter
>>>

>>>
>>>
>>> edu.yale.its.tp.cas.client.filter.loginUrl
>>>
>>>
>>> https://cas.st-cyr.terre.defense.gouv.fr/cas
>>>
>>>

>>>
>>>
>>> edu.yale.its.tp.cas.client.filter.validateUrl
>>>
>>>
>>> https://cas.st-cyr.terre.defense.gouv.fr/cas/validate
>>>
>>>

>>>
>>>
>>> edu.yale.its.tp.cas.client.filter.serverName
>>>
>>>
>>>
theoden.st-cyr.terre.defense.gouv.fr:8185 >>>

>>>
>>>
>>> edu.yale.its.tp.cas.client.filter.wrapRequest
>>>
>>>
true >>>

>>>

>>>
>>> CAS Filter
>>> /jsp/login-cas.faces
>>>

>>>
>>>
>>>
>>> Acegi
>>>
>>> org.acegisecurity.util.FilterToBeanProxy
>>>

>>>
>>>
targetClass >>>
>>> org.acegisecurity.util.FilterChainProxy
>>>
>>>

>>>

>>>
>>> Acegi
>>> *.faces
>>>

>>>
>>>
>>>
>>>
>>>
>>> org.springframework.web.context.request.RequestContextListener
>>>
>>>
>>>
>>>
>>>
>>>
>>> org.springframework.web.context.ContextLoaderListener
>>>
>>>
>>>
>>>
>>>

>>>
>>>
>>> org.acegisecurity.ui.session.HttpSessionEventPublisher
>>>
>>>
>>>
>>>
>>> Jenia internal servlet
>>> org.jenia.faces.util.Servlet
>>> 2
>>>

>>>
>>>
>>>
>>> Faces Servlet
>>>

>>>
>>> org.esupportail.commons.web.servlet.FacesServlet
>>>
>>>
default-view >>>
/jsp/main-menu.faces >>>

>>> 1
>>>
>>>
>>>
>>>
>>> xfire
>>>
>>> org.springframework.web.servlet.DispatcherServlet
>>>

>>>

>>>
>>>

>>>
>>>
>>> Jenia internal servlet
>>> /jenia4faces/*
>>>

>>>
>>>
>>>
>>> Faces Servlet
>>> *.faces
>>>

>>>
>>>
>>>
>>> xfire
>>> /xfire/*
>>>

>>>
>>>

>>>
>>>

>>>
>>> index.html
>>>

>>>
>>>
>>>
>>> Prevent access to raw JSP pages that are for JSF pages.
>>>

>>>
>>> Raw-JSF-JSP-Pages
>>> *.jsp
>>>

>>>
>>> No roles, so no direct access
>>>

>>>

>>>
>>>
>>>
>>> ---------------------------------------
>>>
>>> Un exemple de Config serait le bienvenu.
>>>
>>>
>>> Merci
>>> Cordialement

>
>
>

--
Ce message a

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur « Enregistrer les paramètres » pour activer vos changements.
Sujet clos