Foros del Web » Administración de Sistemas » Apache »

Problemas apache+python+authentic

Estas en el tema de Problemas apache+python+authentic en el foro de Apache en Foros del Web. Hola, estoy intentando configurar un proveedor de identidad implementado por Lasso (authentic). He seguido todos los pasos q se indican en la siguiente pagina: http://authentic.labs.libre-entrepri...tic-admin.html ...
  #1 (permalink)  
Antiguo 22/01/2009, 03:18
 
Fecha de Ingreso: noviembre-2008
Mensajes: 4
Antigüedad: 15 años, 5 meses
Puntos: 0
Problemas apache+python+authentic

Hola, estoy intentando configurar un proveedor de identidad implementado por Lasso (authentic). He seguido todos los pasos q se indican en la siguiente pagina:

http://authentic.labs.libre-entrepri...tic-admin.html

El virtual host q tengo es el siguiente:


NameVirtualHost *:5443
<VirtualHost *:5443>
ServerAdmin [email protected]
ServerName authentic.example.com
DocumentRoot /usr/share/authentic/web
#DocumentRoot /home/apt/rsanchez/Apache/IdP/htdocs
#DocumentRoot /usr/lib/python2.5/site-packages/authentic/
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/IdP_cert.pem
SSLCertificateKeyFile /etc/apache2/ssl/IdP_priv.pem
#<Directory /usr/share/authentic/web>
#<Directory /home/apt/rsanchez/Apache/IdP/htdocs>
#<Directory /usr/lib/python2.5/site-packages/authentic/>

#Options Indexes FollowSymLinks MultiViews
#AllowOverride None
#Order allow,deny
#allow from all
#AddHandler mod_python .py
#PythonDebug On
#</Directory>
<LocationMatch "^/authentic(/|$)">
SetHandler python-program
PythonHandler quixote.server.mod_python_handler
PythonOption quixote-publisher-factory authentic.create_publisher
PythonDebug On
</LocationMatch>
#AddHandler mod_python .py
#PythonHandler mod_python.publisher
#PythonDebug On

</VirtualHost>

Cuando accedo con el navegador con https://authentic.example.com/authentic/admin
me aparece la interfaz q sale en la documentacion, pero sin embargo cuando hago:
Admin->settings->identity proveedor me aparece una pagina con el siguiente mensaje de error:


Oops, the server borked severely

This is bad bad bad; perhaps you will have more luck if you retry in a few minutes ? Alternatively you could harass the webmaster (who may have been emailed automatically with this incident but you can't be sure about this.


Los documentos los tengo en /usr/share/authentic/web. El fichero error.log es el siguiente:

SERVER_SOFTWARE Apache/2.2.9 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g
[2009-01-21 13:36:55] exception caught
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/quixote/publish.py", line 275, in process_request
output = self.try_publish(request)
File "/usr/lib/python2.5/site-packages/authentic/__init__.py", line 105, in try_publish
return Publisher.try_publish(self, request)
File "/usr/lib/python2.5/site-packages/quixote/publish.py", line 253, in try_publish
output = self.root_directory._q_traverse(components)
File "/usr/lib/python2.5/site-packages/authentic/root.ptl", line 51, in _q_traverse
return Directory._q_traverse(self, path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 63, in _q_traverse
return obj._q_traverse(path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 91, in _q_traverse
return super(AccessControlled, self)._q_traverse(path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 63, in _q_traverse
return obj._q_traverse(path)
File "/usr/lib/python2.5/site-packages/authentic/admin/settings.ptl", line 731, in _q_traverse
return Directory._q_traverse(self, path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 67, in _q_traverse
return obj()
File "/usr/lib/python2.5/site-packages/authentic/admin/settings.ptl", line 1162, in idp
req.environ['SCRIPT_NAME'] + '/liberty')
TypeError: table keys must be strings

Form:

Cookies:
authentic 284f75c3e51c3dd3

Environment:
DOCUMENT_ROOT /usr/share/authentic/web
GATEWAY_INTERFACE Python-CGI/1.1
HTTPS on
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_CONNECTION keep-alive
HTTP_COOKIE authentic="284f75c3e51c3dd3"
HTTP_HOST authentic.example.com:5443
HTTP_KEEP_ALIVE 300
HTTP_REFERER https://authentic.example.com:5443/a...dmin/settings/
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.4
PATH /usr/lib/jvm/java-1.5.0-sun-1.5.0.14//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
PATH_INFO /admin/settings/idp
PATH_TRANSLATED /usr/share/authentic/web/admin/settings/idp
QUERY_STRING
REMOTE_ADDR 127.0.0.1
REMOTE_HOST localhost
REMOTE_PORT 48584
REQUEST_METHOD GET
REQUEST_URI /authentic/admin/settings/idp
SCRIPT_FILENAME /usr/share/authentic/web/authentic
SCRIPT_NAME /authentic
SERVER_ADDR 127.0.0.1
SERVER_ADMIN [email protected]
SERVER_NAME authentic.example.com
SERVER_PORT 5443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE <address>Apache/2.2.9 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g Server at authentic.example.com Port 5443</address>

SERVER_SOFTWARE Apache/2.2.9 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g
[2009-01-21 14:05:26] exception caught
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/quixote/publish.py", line 275, in process_request
output = self.try_publish(request)
File "/usr/lib/python2.5/site-packages/authentic/__init__.py", line 105, in try_publish
return Publisher.try_publish(self, request)
File "/usr/lib/python2.5/site-packages/quixote/publish.py", line 253, in try_publish
output = self.root_directory._q_traverse(components)
File "/usr/lib/python2.5/site-packages/authentic/root.ptl", line 51, in _q_traverse
return Directory._q_traverse(self, path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 63, in _q_traverse
return obj._q_traverse(path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 91, in _q_traverse
return super(AccessControlled, self)._q_traverse(path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 63, in _q_traverse
return obj._q_traverse(path)
File "/usr/lib/python2.5/site-packages/authentic/admin/settings.ptl", line 731, in _q_traverse
return Directory._q_traverse(self, path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 63, in _q_traverse
return obj._q_traverse(path)
File "/usr/lib/python2.5/site-packages/authentic/admin/settings.ptl", line 35, in _q_traverse
return Directory._q_traverse(self, path)
File "/usr/lib/python2.5/site-packages/quixote/directory.py", line 67, in _q_traverse
return obj()
File "/usr/lib/python2.5/site-packages/authentic/admin/settings.ptl", line 94, in new
lpk, error = self.submit_new(form)
File "/usr/lib/python2.5/site-packages/authentic/admin/settings.ptl", line 195, in submit_new
if p.this is None:
AttributeError: 'Provider' object has no attribute 'this'

Form:
_form_id 747a818300c804c9
cacertchain cacert.pem
idp_initiated_sso yes
metadata _CBGcFVVbIEmt5oh3jUx4GEfHLM
publickey IdP_cert.pem
submit Submit

Cookies:
authentic 284f75c3e51c3dd3

Environment:
CONTENT_LENGTH 35268
CONTENT_TYPE multipart/form-data; boundary=---------------------------9780415045261756251977294845
DOCUMENT_ROOT /usr/share/authentic/web
GATEWAY_INTERFACE Python-CGI/1.1
HTTPS on
HTTP_ACCEPT text/html,appT_FILENAME /usr/share/authentic/web/authentic
SCRIPT_NAME /authentic
SERVER_ADDR 127.0.0.1
SERVER_ADMIN [email protected]
SERVER_NAME authentic.example.com
SERVER_PORT 5443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE <address>Apache/2.2.9 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g Server at authentic.example.com Port 5443</address>

SERVER_SOFTWARE Apache/2.2.9 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g
[Thu Jan 22 09:25:06 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Jan 22 09:25:06 2009] [warn] RSA server certificate CommonName (CN) `Lasso IdP' does NOT match server name!?
[Thu Jan 22 09:25:06 2009] [notice] mod_python: Creating 8 session mutexes based on 6 max processes and 25 max threads.
[Thu Jan 22 09:25:06 2009] [notice] mod_python: using mutex_directory /tmp
[Thu Jan 22 09:25:06 2009] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Thu Jan 22 09:25:06 2009] [warn] RSA server certificate CommonName (CN) `Lasso IdP' does NOT match server name!?
[Thu Jan 22 09:25:06 2009] [warn] pid file /home/apt/rsanchez/Apache/IdP/apache.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Jan 22 09:25:06 2009] [notice] Apache/2.2.9 (Ubuntu) mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations


¿Alguien sabe q puede estar pasando? ¿Alguien ha trabajado con este IdP de Lasso?
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.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:56.