schooltool-developers team mailing list archive
-
schooltool-developers team
-
Mailing list archive
-
Message #00107
CAS problem
Could it be that we need to change something in schooltool.cas as a
result of using new zope packages? Starting schooltool at SLA with
CAS enabled gives the following error:
Traceback (most recent call last):
File "/srv/schooltool/schooltool/eggs/zope.publisher-3.11.0-py2.5.egg/zope/publisher/publish.py",
line 131, in publish
obj = request.traverse(obj)
File "/srv/schooltool/schooltool/eggs/zope.publisher-3.11.0-py2.5.egg/zope/publisher/browser.py",
line 542, in traverse
ob = super(BrowserRequest, self).traverse(obj)
File "/srv/schooltool/schooltool/eggs/zope.publisher-3.11.0-py2.5.egg/zope/publisher/http.py",
line 456, in traverse
ob = super(HTTPRequest, self).traverse(obj)
File "/srv/schooltool/schooltool/eggs/zope.publisher-3.11.0-py2.5.egg/zope/publisher/base.py",
line 250, in traverse
publication.callTraversalHooks(self, obj)
File "/srv/schooltool/schooltool/eggs/zope.app.publication-3.10.0-py2.5.egg/zope/app/publication/zopepublication.py",
line 135, in callTraversalHooks
self._maybePlacefullyAuthenticate(request, ob)
File "/srv/schooltool/schooltool/eggs/zope.app.publication-3.10.0-py2.5.egg/zope/app/publication/zopepublication.py",
line 122, in _maybePlacefullyAuthenticate
principal = auth.authenticate(request)
File "/srv/schooltool/schooltool/src/schooltool/app/security.py",
line 219, in authenticate
return self.authPlugin.authenticate(request)
File "/srv/schooltool/schooltool.cas/src/schooltool/cas/__init__.py",
line 125, in authenticate
request.response.redirect(requrl)
File "/srv/schooltool/schooltool/eggs/zope.publisher-3.11.0-py2.5.egg/zope/publisher/browser.py",
line 761, in redirect
return super(BrowserResponse, self).redirect(location, status, trusted)
File "/srv/schooltool/schooltool/eggs/zope.publisher-3.11.0-py2.5.egg/zope/publisher/http.py",
line 888, in redirect
% target_host)
ValueError: Untrusted redirect to host 'sla.cas.host:443' not allowed.
I replaced the actual host name with a fake one in this note for
security reasons. I know the cas server name (the real one) is right
and that it worked using the older version of schooltool which in turn
used older zope packages, so that's why Chris suggested that there may
have been a change in zope to cause the error. That may be the case,
but I don't know why.
Does anybody have any ideas?
Follow ups