i want to use phpCAS module, to integrate my own PHP App. with CAS, i use
phpCAS 1.2.0 with PEAR,

but, i have an error when i login succesful and redirect to my PHP test
application :

-----------------------------------------------------------------------
Server error.

The website encountered an error while retrieving
https://www.enterprise-ptpn10.com/test/?ticket=*
ST-14-w5jhILCSRnRZXD0jw7Rd-cas*. It may be down for maintenance or
configured incorrectly.

Here are some suggestions:
Reload this web page later.
  More information on this error
-----------------------------------------------------------------------

My PHP test app :
----------------------------------------------------------------------
<?
*include "CAS/CAS.php";

phpCAS::client(CAS_VERSION_2_0, 'www.enterprise-ptpn10.com', 443, '/cas/');
phpCAS::setNoCasServerValidation();
phpCAS::forceAuthentication();

//if the user is requesting to be logged in
if (isset($_REQUEST['login'])) {
   phpCAS::forceAuthentication();
   //the user is known to be logged in to CAS at this point
   $_SESSION['loggedInLocally'] = true;  //set a local variable telling the
program we are logged in
   $_SESSION['username'] = phpCAS::getUser();  //this stores their network
user id
   echo $_SESSION['username'];
}

//if we want to log out of the program
if (isset($_REQUEST['logout'])) {
   $_SESSION['loggedInLocally'] = false;
   unset($_SESSION['username']);
}

if (isset($_SESSION['loggedinLocally']) &&
$_SESSION['loggedInLocally']===true) {

   echo "You are logged in to the application";
} else {
   echo "You are not logged in to the application.  Log in by specifying the
'login' log parameter to this script.";
}

phpCAS::setDebug();*

?>
----------------------------------------------------------------------

This My PHP & Library Installation :
----------------------------------------------------------------------
ii  libapache2-mod-php5                  5.3.3-6
server-side, HTML-embedded scripting languag
ii  php-pear                             5.3.3-6                    PEAR -
PHP Extension and Application Reposit
ii  php5-cgi                             5.3.3-6
server-side, HTML-embedded scripting languag
ii  php5-cli                             5.3.3-6
command-line interpreter for the php5 script
ii  php5-common                          5.3.3-6                    Common
files for packages built from the php
ii  php5-gd                              5.3.3-6                    GD
module for php5
ii  php5-ldap                            5.3.3-6                    LDAP
module for php5
ii  php5-mcrypt                          5.3.3-6                    MCrypt
module for php5
ii  php5-mysql                           5.3.3-6                    MySQL
module for php5
ii  php5-suhosin                         0.9.32.1-1                 advanced
protection module for php5
ii  phpmyadmin                           4:2.11.8.1-5+lenny6        MySQL
web administration tool
----------------------------------------------------------------------


maybe, what wrong with my test application??
Thanks for your attention..............




Best Regards,
Ziz

-- 
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

Reply via email to