I think I have this figured out
the web interface was defaulting to 'authn_passthru'
The question I have now is whether kerberos authentication will have AUTH_TYPE: Basic and
HTTP_AUTHORIZATION in the request from the browser?
I've never used it, so I don't know exactly how it works.
Perhaps a better way of detecting this is to pull the data from /etc/cobbler/modules.conf.
If anyone thinks this is a better method, let me know and I'll change it and send a
new patch.
The patch I have is at
git@github.com:gordonchil/cobbler.git
Also attached to this email
-Gordon
On May 4, 2010, at 5:32 PM, Gordon Child wrote:
Did you happen to figure out what is going on here?
It's happening to me on master and the tag [cobbler-2.0.3.2-1]
I do not have this problem on v2.0.3.1
I'm using authn_configfile.
-Gordon
On Apr 6, 2010, at 3:36 PM, Devan Goodwin wrote:
> I'm seeing some authentication problems with Cobbler web on two
> separate machines now, the problem crops up in
> 8373491156c673a31225daf8503c1f090d20a65b which was a fix for
>
https://fedorahosted.org/cobbler/ticket/549.
>
> Upon entering login credentials I get:
>
> Environment:
>
> Request Method: GET
> Request URL:
http://cobblerdev/cobbler_web/settings
> Django Version: 1.1.1
> Python Version: 2.4.3
> Installed Applications:
> ['django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'cobbler_web']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware')
>
>
> Traceback:
> File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py"
> in get_response
> 92. response = callback(request, *callback_args,
> **callback_kwargs)
> File "/usr/share/cobbler/web/cobbler_web/views.py" in settings
> 748. check_auth(request)
> File "/usr/share/cobbler/web/cobbler_web/views.py" in check_auth
> 76. token = remote.login(username, password)
> File "/usr/lib/python2.4/xmlrpclib.py" in __call__
> 1096. return self.__send(self.__name, args)
> File "/usr/lib/python2.4/xmlrpclib.py" in __request
> 1383. verbose=self.__verbose
> File "/usr/lib/python2.4/xmlrpclib.py" in request
> 1147. return self._parse_response(h.getfile(), sock)
> File "/usr/lib/python2.4/xmlrpclib.py" in _parse_response
> 1286. return u.close()
> File "/usr/lib/python2.4/xmlrpclib.py" in close
> 744. raise Fault(**self._stack[0])
>
> Exception Type: Fault at /cobbler_web/settings
> Exception Value: <Fault 1: "cobbler.cexceptions.CX:'login failed
(testing)'">
>
> In case it's useful my request variable inside views.py.check_auth is:
>
> request
> <ModPythonRequest path:/cobbler_web/settings, GET:<QueryDict: {}>,
> POST:<QueryDict: {}>, COOKIES:{}, META:{'AUTH_TYPE': 'Basic',
> 'CONTENT_LENGTH': 0, 'CONTENT_TYPE': None,
'GATEWAY_INTERFACE':
> 'CGI/1.1', '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':
> 'en-us,en;q=0.5', 'HTTP_AUTHORIZATION': 'Basic
dGVzdGluZzp0ZXN0aW5n',
> 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION':
'keep-alive',
> 'HTTP_HOST': 'cobblerdev', 'HTTP_KEEP_ALIVE': '300',
'HTTP_REFERER':
> 'http://cobblerdev/cobbler_web/', 'HTTP_USER_AGENT':
'Mozilla/5.0
> (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330
> Fedora/3.5.9-1.fc12 Firefox/3.5.9', 'PATH_INFO':
> u'/cobbler_web/settings', 'PATH_TRANSLATED': None,
'QUERY_STRING':
> None, 'REMOTE_ADDR': '192.168.1.1', 'REMOTE_HOST': None,
> 'REMOTE_IDENT': None, 'REMOTE_USER': 'testing',
'REQUEST_METHOD':
> 'GET', 'SCRIPT_NAME': '', 'SERVER_NAME':
'cobblerdev.local.rm-rf.ca',
> 'SERVER_PORT': 80, 'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE':
> 'mod_python'}>
>
>
> I'm using authn_testing but I believe I've seen it with
> authn_configfile as well. I've got this cropping up on two Cobbler
> installs currently, one was fresh so I don't think I've got anything
> misconfigured. I can checkout the revision prior to this one and 'make
> webtest' and authentication will then work.
>
> Going to continue digging to see if I can figure out what's up but
> wanted to see if anyone's fixed this or knows what might be going on.
>
> Thanks,
>
> Devan
>
>
> --
> Devan Goodwin <dgoodwin(a)rm-rf.ca>
>
http://rm-rf.ca
> _______________________________________________
> cobbler-devel mailing list
> cobbler-devel(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler-devel
_______________________________________________
cobbler-devel mailing list
cobbler-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel