Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 07/10/2010 17:31:24

pdelage
Guest
From: Le Mans
Registered: 07/10/2010
Posts: 196
Website

Configuration CAS LDAP du CMS

Résumé des échanges précédents avec Anyware:
Question Delage
J'aimerais utiliser l'authentification CAS. la V3.0.0, ou la
ametys-3.1.0.20101006-0410-b327-SNAPSHOT
ne permet que l'authentif locale.
Puis-je l'installer moi-même ?
Réponse Anyware :
Pour passer en CAS, il faut donc aller dans "plugins et workspaces" dans l'admin.
Dans le  "UsersManager" vous pouvez choisir LDAP ; la configuration vous sera demandée dès que vous aurez sauvegardé et que l'application aura redémarré (normalement c'est automatique).
Ensuite  aller dans "plugins et workspaces" dans l'admin et sélectionner l'authentification CAS dans le plugins "CredentialsProvider".

Ceci étant, là ou je disais que c'est plus compliqué, c'est qu'en plus, il va falloir modifier le fichier WEB-INF/param/authentication.xml en mettant en commentaire le tag "authentication" qui s'y trouve, sinon après avoir été redirigé par le CAS vous aurez un AccessDenied.

Offline

#2 07/10/2010 17:36:34

pdelage
Guest
From: Le Mans
Registered: 07/10/2010
Posts: 196
Website

Re: Configuration CAS LDAP du CMS

Ok pour LDAP.
Après sélection du plugin LDAP, l'interface d'admin propose la config d'accès à l'annuaire.
Après config, j'accède aux "people" de mon annuaire dans la gestions des utilisateurs.
Par contre, impossible de sélectionner le plugin CAS. Je suis la même procédure que pour LDAP (sélection, changement)
Au retour dans l'interface d'admin, pas de changement ?
Voir png joint .
Merci
Patrick

Offline

#3 07/10/2010 18:08:10

pdelage
Guest
From: Le Mans
Registered: 07/10/2010
Posts: 196
Website

Re: Configuration CAS LDAP du CMS

Après relance du tomcat, le plugin cas a bien été pris en compte.
J'ai maintenant cette erreur :
java.lang.NoClassDefFoundError: org/jasig/cas/client/authentication/AuthenticationFilter
    org.ametys.runtime.plugins.core.authentication.CASCredentialsProvider.getCredentials(CASCredentialsProvider.java:221)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:159)
    $Proxy30.getCredentials(Unknown Source)

J'ai ajouté le keystore qu'il faut au lancement du tomcat.
D'après le message il manque la classe org/jasig/cas/client/authentication/AuthenticationFilter
Je vérifie cela ....

Patrick

Offline

#4 07/10/2010 18:22:35

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,111

Re: Configuration CAS LDAP du CMS

Selon la version du CMS vous devez ajouter le jar :
Ametys 3.0 :
ou
Ametys 3.1 :

(il y a un bug graphique dans le forum pour le moment, les liens sont en blanc sur fond blanc)


Raphael Franchet
Expert Ametys

Offline

#5 07/10/2010 18:28:34

pdelage
Guest
From: Le Mans
Registered: 07/10/2010
Posts: 196
Website

Re: Configuration CAS LDAP du CMS

J'ai mis le jar cas-client-core-3.1.9.jar du JASIG
et j'ai une org.ametys.runtime.authentication.AccessDeniedException après authentif sur mon serveur CAS.
Ou puis-je trouver  le jar Ametys 3.1 ?
Merci Patrick

Offline

#6 07/10/2010 18:45:06

Cédric Damioli
Ametys Product Manager
From: Toulouse
Registered: 10/08/2010
Posts: 323

Re: Configuration CAS LDAP du CMS

là ca doit sans doute vouloir dire que vous n'avez pas enlevé la ligne
<authentication>org.ametys.runtime.plugins.core.authentication.UsersManagerAuthentication</authentication>

de votre fichier WEB-INF/param/authentication.xml

Offline

#7 08/10/2010 08:31:59

pdelage
Guest
From: Le Mans
Registered: 07/10/2010
Posts: 196
Website

Re: Configuration CAS LDAP du CMS

Bonjour,
J'ai modifie le fichier WEB-INF/param/authentication.xml ainsi :
<!-- +
     | This file contains parameters for authentication
     + -->
<!-- P. Delage pour authentification CAS !
<authentications>
    <authentication>org.ametys.runtime.plugins.core.authentication.UsersManagerA
uthentication</authentication>
</authentications>
-->

Patrick

Offline

#8 08/10/2010 08:41:53

pdelage
Guest
From: Le Mans
Registered: 07/10/2010
Posts: 196
Website

Re: Configuration CAS LDAP du CMS

Je viens de modifier authentication.xml ainsi :
<!-- P. Delage pour authentification CAS ! -->
<authentications>
<!--    <authentication>org.ametys.runtime.plugins.core.authentication.UsersMana
gerAuthentication</authentication>-->
</authentications>

ET CELA FONCTIONNE  smile

Désolé pour le post précédent  sad
Patrick

Offline

#9 08/10/2010 10:08:59

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,111

Re: Configuration CAS LDAP du CMS

Concernant les liens dont vous parliez plus haut, comme je l'ai dit juste en dessous: la charte graphique actuelle du forum a un gros problème : les liens ne sont pas visible car ils sont en blanc sur fond blanc.
Le seul moyen est de passer la souris au dessus (et voir la main s'afficher) ou de sélectionner le texte autour


Raphael Franchet
Expert Ametys

Offline

Board footer

Powered by FluxBB