Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/07/2008, 02:16
jspcat
 
Fecha de Ingreso: junio-2005
Ubicación: Barcelona
Mensajes: 458
Antigüedad: 19 años, 8 meses
Puntos: 4
Autentificacion

Hola a tod@s,

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
?>
Donde SERVIDOR es donde esta montado el phpcas, y de echo si pones en al URL esto puedes autentificarte.
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
__________________
La ficción es y será mi única realidad