Foros del Web » Programando para Internet » PHP »

Autentificacion

Estas en el tema de Autentificacion en el foro de PHP en Foros del Web. 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' ); ...
  #1 (permalink)  
Antiguo 15/07/2008, 02:16
 
Fecha de Ingreso: junio-2005
Ubicación: Barcelona
Mensajes: 458
Antigüedad: 18 años, 11 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
  #2 (permalink)  
Antiguo 15/07/2008, 15:31
Avatar de Marvin
Colaborador
 
Fecha de Ingreso: febrero-2005
Ubicación: global $Chile->Santiago;
Mensajes: 1.991
Antigüedad: 19 años, 3 meses
Puntos: 81
Respuesta: Autentificacion

El error que tienes es que estas llamando al archivo DB.php en una ubicacion que no existe.

Eso dice tu error...
__________________
El que dice "Solo sé que nada sé", esta asumiendo que sabe algo.
Lea las FAQ's!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Tema Cerrado




La zona horaria es GMT -6. Ahora son las 16:24.