Estoy intentando hacer una autentificacion mediante phpcas. Estoy con un ejemplo simple
Código PHP:
<?php
//
// phpCAS simple client
//
// import phpCAS lib
include_once('CAS/CAS.php');
phpCAS::setDebug();
// initialize phpCAS
phpCAS::client(CAS_VERSION_2_0,'SERVIDOR',443,'');
// no SSL validation for the CAS server
phpCAS::setNoCasServerValidation();
// force CAS authentication
phpCAS::forceAuthentication();
// at this step, the user has been authenticated by the CAS server
// and the user's login name can be read with phpCAS::getUser().
// logout if desired
if (isset($_REQUEST['logout'])) {
phpCAS::logout();
}
// for this test, simply print that the authentication was successfull
?>
Pero esto lo quiero ligar a otra alplicacion la qual me devuelve los siguientes errores.Recordemos que phpcas es una libreria.
Código:
Warning: main(DB.php) [function.main]: failed to open stream: No such file or directory in C:\wamp\www\mantis\CAS\PGTStorage\pgt-db.php on line 11 Warning: main() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\mantis\CAS\PGTStorage\pgt-db.php on line 11 Fatal error: Call to undefined function curl_init() in C:\wamp\www\mantis\CAS\client.php on line 1669