I am trying to connect to CAS-server using phpCAS.
Server version: 3.3.1
Code is as simple as possible:
<?php
phpCAS::setDebug('/var/log/phpCAS.log');
phpCAS::client(CAS_VERSION_2_0, $host, $port, $path);
phpCAS::setNoCasServerValidation();
phpCAS::forceAuthentication();
var_dump(phpCAS::getUser());
?>
As the result, I get the following:
string(28) "kH4JJoDz7kQEkmJJlHUinOQ8Cr0="
I added some debug-logging to phpCAS and found, that it makes
"https://host/serviceValidate?service=…&ticket=…" request and gets the
following XML:
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationSuccess>
<cas:user>kH4JJoDz7kQEkmJJlHUinOQ8Cr0=</cas:user>
</cas:authenticationSuccess>
</cas:serviceResponse>
this "kH4JJoDz7kQEkmJJlHUinOQ8Cr0=" string is definitely not the login I use.
I suppose, that I do something wrong, but can't figure out what
--
Alexey Zakhlestin
http://www.milkfarmsoft.com/
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user