PAPI Archivos

The PAPI authentication and authorization framework

PAPI@LISTSERV.REDIRIS.ES

Opciones: Vista Forum

Use Monospaced Font
Por defecto enseñar Text Part
Mostrar todas las cabeceras de correo

Mensaje: [<< Primero] [< Prev] [Siguiente >] [Último >>]
Tema: [<< Primero] [< Prev] [Siguiente >] [Último >>]
Autor: [<< Primero] [< Prev] [Siguiente >] [Último >>]

Print Responder
Subject:
Emisor:
Francisco Vivancos <[log in para visualizar]>
Reply To:
The PAPI authentication and authorization framework <[log in para visualizar]>
Fecha:
Thu, 25 Jun 2009 12:24:58 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (128 lines)
Hola,

al meter la url para acceder a la aplicacion http://poa.localhost/glpi da
error, el log de apache contiene lo siguiente:

[Thu Jun 25 12:18:41 2009] [notice] [client 127.0.0.1]
PAPI#19074_1245925121: PoA::set_parameters# Servername = <poa.localhost>\n
[Thu Jun 25 12:18:41 2009] [notice] [client 127.0.0.1]
PAPI#19074_1245925121: PoA::set_parameters# Server_ID = <glpi>\n
[Thu Jun 25 12:18:41 2009] [error] [client 127.0.0.1] PAPI#19074_1245925121:
Apache Server_ID = <glpi>
[Thu Jun 25 12:18:41 2009] [error] [client 127.0.0.1] PAPI#19074_1245925121:
PAPI XML Service_ID = <>
[Thu Jun 25 12:18:41 2009] [error] [client 127.0.0.1] PAPI#19074_1245925121:
Can't instance a new PoA, the Service_ID from Apache conf. is not equal to
the id for the Location from PAPI XML configuration file.

por lo que se la diretiva PerlSetVar Service_ID glpi debe ser igual al id
que hay en <location path="/glpi" id="glpi".....,  estan iguales pero parece
ser que tambien hay que poner un PAPI XML Service_ID, pero no se donde se
debe indicar.
Sabe alguien que esta pasando?

dejo acontinuacin el listen.conf y el papi_conf.xml:

LIsten:conf:::

NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
	ServerName localhost
	RedirectMatch (.*) https://localhost/AuthServer
</VirtualHost>

<VirtualHost *:443>
	ServerName localhost
	ErrorDocument 404 https://localhost/AuthServer
	RedirectMatch /index.html https://localhost/AuthServer
	<IfModule mod_ssl.c>
		SSLEngine on
		SSLCertificateFile /etc/apache2/apache.pem
	</IfModule>

</VirtualHost>
<VirtualHost *:80>
            ServerName      poa.localhost
            DocumentRoot    /srv/www/htdocs
            ServerAdmin     admin@localhost
    
        <Location /glpi>
            PerlSetVar          Service_ID glpi
            PerlOptions         +ParseHeaders
            SetHandler          perl-script
            PerlAccessHandler   PAPI::Main
        </Location>
</VirtualHost>


Papi_conf.xml::::


<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE PAPI_Configuration SYSTEM "file:///./papi_conf.dtd">

<PAPI_Configuration>

<Global>

<!-- <Accept_File>/usr/local/apache/conf/PAPIConf/PoA/blueball.gif</Accept_File>

<Reject_File>/usr/local/apache/conf/PAPIConf/PoA/redball.gif</Reject_File>

-->

<Accept_File>./image_ok.png</Accept_File>

<Reject_File>./image_nok.png</Reject_File>

<Debug>0</Debug>

<HKey>YWNhOWZkNzE4MDRhNGU3YjVhNDM1ODkxNzgwMzNmOTU=</HKey>

<LKey>ZjYwNTk2NGEyMGNjNjhkMmZlZjM0NDMwMDlhNWYyMWU=</LKey>

<Pubkeys_Path>/usr/local//PAPI/PoA</Pubkeys_Path>

<Hcook_DB>/usr/local/PAPI/PoA/hcookdb</Hcook_DB>

<Lcook_Timeout>18000</Lcook_Timeout>

<CRC_Timeout>1800</CRC_Timeout>

<URL_Timeout>1800</URL_Timeout>

<Req_DB>/usr/local/PAPI/PoA/req_db.mldbm</Req_DB>

<PAPI_AS id="MyAS" url="http://localhost/cgi-bin/AuthServer">PAPI usando
Apache-2.00</PAPI_AS>

<!-- <GPoA_URL>wayf:built-in</GPoA_URL> -->

<!-- <SPOCP_Action>accept</SPOCP_Action> -->

</Global>

<!-- *********************************************************************** -->

<!-- Protecting a location local to the server the PoA lives in: -->
<Server name="poa.localhost" port="80" independent="0">
	<Auth_Location>/cookie_handler.cgi</Auth_Location>
            <Location path="/glpi" id="glpi" filtered="true"
independent="false">
            <PAPI_Filter regex="default" action="reject"></PAPI_Filter>
        </Location>
</Server>

<!-- END OF: Protecting a location local to the server the PoA lives in: -->



</PAPI_Configuration>

Gracias por todo

Un Saludo.
Francisco.

ATOM RSS1 RSS2