weird <cas:user> response

2 messages Options
Embed this post
Permalink
Alexey Zakhlestin

weird <cas:user> response

Reply Threaded More More options
Print post
Permalink
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 [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user

Scott Battaglia-2

Re: weird <cas:user> response

Reply Threaded More More options
Print post
Permalink
Have you implemented any custom code in CAS? I.e. a custom resolver?


On Wed, Jul 8, 2009 at 9:59 AM, Alexey Zakhlestin <[hidden email]> wrote:
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 [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user


-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user