Here is one way:
$services =
array('https://mycasclearpassserver.pepperdine.edu:8443/cas/clearPass');
foreach ( $services as $service ) {
echo '<h2>Response from service '.$service.'</h2><ul><hr>';
flush();
// call the service and change the color depending on the result
if ( phpCAS::serviceWeb($service,$err_code,$output) ) {
echo '<font color="#00FF00">';
} else {
echo '<font color="#FF0000">';
}
echo $output;
echo '</font><hr></ul>';
phpCAS::serviceWeb will take the URL for a service (in this case
/cas/clearPass) from the specified variable, GET it, grab the output (or error)
and return that in the specified variable.
I think I took this from the CASPHP examples.
Hope that helps!
KC
On Nov 22, 2010, at 7:58 AM, Francisco Estanqueiro wrote:
Hi everyone,
I have clearPass working (I'm sure) but now I need to obtain the password in a
php file. I was trying to understand this steps:
https://wiki.jasig.org/display/CAS/Proxy+CAS+Walkthrough
and the phpCAS proxy example files but I cant figure how to obtain the actual
password in a php file.
Help me please! (I'm guessing its pretty easy..)
Francisco
--
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
--
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