Projet

Général

Profil

Webclasseur » Historique » Version 1

Gaston TJEBBES, 20/07/2010 10:25

1 1 Gaston TJEBBES
h1. Webclasseur
2 1 Gaston TJEBBES
3 1 Gaston TJEBBES
4 1 Gaston TJEBBES
h2. Contacts 
5 1 Gaston TJEBBES
6 1 Gaston TJEBBES
** Onisep : Bernard Bonnet (bbonnet@onisep.fr)
7 1 Gaston TJEBBES
** kosmos : Francois Boutin (francois.boutin@kosmos.fr), Pierre Cosson (pierre.cosson@kosmos.fr)
8 1 Gaston TJEBBES
9 1 Gaston TJEBBES
h2. Étape 1 configuration du webclasseur
10 1 Gaston TJEBBES
11 1 Gaston TJEBBES
Dans la configuration du serveur d'authentification CAS du webclasseur.
12 1 Gaston TJEBBES
Indiquez :
13 1 Gaston TJEBBES
* L'url de validation du ticket CAS: https://<adresse du scribe>:8443/proxyValidate;
14 1 Gaston TJEBBES
* Les données renvoyées : la somme md5 du login de l'utilisateur.
15 1 Gaston TJEBBES
16 1 Gaston TJEBBES
h2. Étape 2 configuration du serveur EoleSso
17 1 Gaston TJEBBES
18 1 Gaston TJEBBES
Afin de renvoyer les bonnes informations au webclasseur, il faut renseigner l'application auprès du serveur Sso afin de lui attribuer un filtre de données
19 1 Gaston TJEBBES
20 1 Gaston TJEBBES
h3. Le fichier d'application
21 1 Gaston TJEBBES
22 1 Gaston TJEBBES
Créer un fichier d'application : __/usr/share/sso/app_filters/webclasseur_apps.ini__
23 1 Gaston TJEBBES
<pre>
24 1 Gaston TJEBBES
[onisep]
25 1 Gaston TJEBBES
port=
26 1 Gaston TJEBBES
baseurl=/servlet/com.jsbsoft.jtf.core.SG
27 1 Gaston TJEBBES
scheme=both
28 1 Gaston TJEBBES
addr=webclasseur.ac-dijon.fr
29 1 Gaston TJEBBES
typeaddr=dns
30 1 Gaston TJEBBES
filter=webclasseur
31 1 Gaston TJEBBES
</pre>
32 1 Gaston TJEBBES
NB : A priori seul le champ addr est à modifier (il s'agit de l'url de base d'accès au webclasseur).
33 1 Gaston TJEBBES
34 1 Gaston TJEBBES
h3. Le filtre de données
35 1 Gaston TJEBBES
36 1 Gaston TJEBBES
Dans le fichier d'application, le champ filter a pour valeur 'webclasseur' cela correspond au fichier de filtre associé que l'on trouve ici : __/usr/share/sso/app_filters/webclasseur.ini__
37 1 Gaston TJEBBES
Ce fichier est présent par défaut sur Scribe.
38 1 Gaston TJEBBES
39 1 Gaston TJEBBES
Pour information, le contenu est celui-ci :
40 1 Gaston TJEBBES
<pre>
41 1 Gaston TJEBBES
[utilisateur]
42 1 Gaston TJEBBES
user=id_webclasseur
43 1 Gaston TJEBBES
</pre>
44 1 Gaston TJEBBES
45 1 Gaston TJEBBES
NB : __id_webclasseur__ est calculé par __/usr/share/sso/user_infos/id_webclasseur.py__ et correspond au md5 du login de l'utilisateur.
46 1 Gaston TJEBBES
47 1 Gaston TJEBBES
h2. Tester la connexion
48 1 Gaston TJEBBES
49 1 Gaston TJEBBES
h3. La connexion
50 1 Gaston TJEBBES
51 1 Gaston TJEBBES
Le webclasseur ne redirige pas vers le serveur sso, il faut se connecter directement sur le serveur sso en passant l'url webclasseur en paramètre:
52 1 Gaston TJEBBES
__https://monscribe.monacad.fr:8443/?service=https://webclasseur.monacad.fr/servlet/com.jsbsoft.jtf.core.SG?PROC=IDENTIFICATION_SSO%26CODE_APPLICATION=XXXXXXXXX__
53 1 Gaston TJEBBES
54 1 Gaston TJEBBES
CODE_APPLICATION correspond au code application de l'établissement dans le webclasseur.
55 1 Gaston TJEBBES
56 1 Gaston TJEBBES
h3. Rapprochement des comptes
57 1 Gaston TJEBBES
58 1 Gaston TJEBBES
Une fois connecté un rapprochement de comptes doit s'effectuer lors de la première connexion, en fournissant le login du portail d'origine et le login/mot de passe du compte webclasseur.
59 1 Gaston TJEBBES
60 1 Gaston TJEBBES
h3. Problèmes connus 
61 1 Gaston TJEBBES
62 1 Gaston TJEBBES
Si vous utilisez des certificats auto-signés, n'oubliez pas de les faire installer sur le tomcat du serveur hébergeant le webclasseur.
63 1 Gaston TJEBBES
64 1 Gaston TJEBBES
Si vous utilisez des certificats avec des altname (comme ceux générés sur Scribe). Il semble que, en fonction de la version de la jdk utilisée sur le serveur hébergeant le webclasseur, celui-ci soit incapable de valider les certificats utilisés (à priori vrai pour les versions <1.6).
65 1 Gaston TJEBBES
66 1 Gaston TJEBBES
Le message retourné est : "Impossible de valider le ticket CAS"
67 1 Gaston TJEBBES
68 1 Gaston TJEBBES
Dans ce cas, il faut ouvrir deux consoles sur le serveur Scribe, dans la première lancer :
69 1 Gaston TJEBBES
<pre>
70 1 Gaston TJEBBES
tail -f /var/log/eole-sso.log
71 1 Gaston TJEBBES
</pre>
72 1 Gaston TJEBBES
Dans la deuxième console, lancer:
73 1 Gaston TJEBBES
<pre>
74 1 Gaston TJEBBES
tcpdump 
75 1 Gaston TJEBBES
</pre>
76 1 Gaston TJEBBES
Rafraichir la page, seul la deuxième console devrait afficher un contenu.