Installation de CAS pour php
Salut,
J'essaye de mettre en place du SSO entre notre active directory et un serveur apache qui héberge des applis PHP. Pour cela j'essaye d'utiliser CAS (https://wiki.jasig.org/display/CASUM/Home). Est ce que certains d'entre vous l'ont mis en place ? Les docs que j'ai trouvé ne sont pas tres complets et je ne sais pas ce que j'ai raté.
J'ai installé un tomcat sur lequel j'ai déployé le war fourni ici http://www.jasig.org/cas/download. Ensuite j'ai télecharger le client pour php que j'ai dézippé sur le serveur apache. Enfin j'appelle une des pages d'exemple, du genre example_html.php.
je vais sur : http://myserver/examples_html.php
et voici les logs générés par CAS :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
B33C .START phpCAS-1.3.0 ****************** [CAS.php:450]
B33C .=> phpCAS::client('2.0', 'myserver.com', 443, '/cas') [example_html.php:26]
B33C .| => CAS_Client::__construct('2.0', false, 'myserver.com', 443, '/cas', true) [CAS.php:347]
B33C .| | Starting a new session [Client.php:790]
B33C .| <= ''
B33C .<= ''
B33C .=> phpCAS::setNoCasServerValidation() [example_html.php:35]
B33C .| You have configured no validation of the legitimacy of the cas server. This is not recommended for production use. [CAS.php:1663]
B33C .<= ''
B33C .=> phpCAS::forceAuthentication() [example_html.php:57]
B33C .| => CAS_Client::forceAuthentication() [CAS.php:1100]
B33C .| | => CAS_Client::isAuthenticated() [Client.php:1081]
B33C .| | | => CAS_Client::_wasPreviouslyAuthenticated() [Client.php:1185]
B33C .| | | | no user found [Client.php:1371]
B33C .| | | <= false
B33C .| | | no ticket found [Client.php:1254]
B33C .| | <= false
B33C .| | => CAS_Client::redirectToCas(false) [Client.php:1090]
B33C .| | | => CAS_Client::getServerLoginURL(false, false) [Client.php:1392]
B33C .| | | | => CAS_Client::getURL() [Client.php:326]
B33C .| | | | | Final URI: http://myserver/example_html.php [Client.php:3058]
B33C .| | | | <= 'http://myserver/example_html.php'
B33C .| | | <= 'https://myserver.com/cas/login?service=http%3A%2F%2Fmyserver%2Fexample_html.php'
B33C .| | | Redirect to : https://myserver.com/cas/login?service=http%3A%2F%myserver%2Fexample_html.php [Client.php:1398]
B33C .| | | exit()
B33C .| | | -
B33C .| | -
B33C .| - |
et dans firefox je suis redirgié vers https://myserver.com/cas/login?servi...ample_html.php et j'ai le message d'erreur suivant : Firefox can't establish a connection to the server at myserver.com.
Une idée de la provenance du bloquage ?
Merci