I've been trying to get cobbler web going on cobbler-2.0.1-1.el5 (epel-testing) and built from git source on Centos-5.3. I had problems right away from the start of an upgrade from 1.6. I wiped away 1.6 and any trace of cobbler from the system and am still having issues. I've searched google/wiki/mailing lists and not found anybody else with my issues so I am probably just Doin' It Wrong.
I install cobbler and cobbler-web.
I start Apache. I have no idea what the default username/password are for login. An older article state cobbler/ILoveCobbler, but that doesn't appear to work.
I remove authentication from the web interface for cobbler. I get a Django error. I figure it might need some form of REMOTE_USER env variable present so decide not to go too far down this path.
I change the configuration for apache to use a basic htpasswd file. I login that way. I then get a django traceback.
Environment:
Request Method: GET Request URL: http://x2.stahnkage.com/cobbler_web/ 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 index 58. html = t.render(Context({
Exception Type: AttributeError at /cobbler_web/ Exception Value: 'NoneType' object has no attribute 'version'
I figure maybe it needed content, and imported a distro. That didn't help either.
What am I doing wrong?
I've only changed cobbler_web.conf to have "AuthUserFile /etc/httpd/passwd" added. It appears there is some type of django authentication handler, but I can't find log of it being executed ever, even before I messed with apache.
Thanks for any help.
stahnma
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 index 58. html = t.render(Context({
Exception Type: AttributeError at /cobbler_web/ Exception Value: 'NoneType' object has no attribute 'version'
This may be a sign of an Apache configuration issue? Version as an XMLPRC api method has been in pretty much every version of Cobbler.
Another likely problem is that -- if you built it yourself (not a rpmbuild --rebuild, but actually built it yourself) that the version file was missing from /var/lib/cobbler/version.
This wouldn't happen with a rpmbuild rebuilt version, however -- but if you built from source ("make rpms", etc) on a system without git installed, it could be possible.
I figure maybe it needed content, and imported a distro. That didn't help either.
What am I doing wrong?
I've only changed cobbler_web.conf to have "AuthUserFile /etc/httpd/passwd" added.
You shouldn't do this -- the authn/authz layers are enforced by cobblerd, not Apache. Just because we don't log does not mean it is not being used. (Logging levels and levels of detail possibly being subject to another discussion of course, that's a valid point).
Anyway, authn/authz is still controlled by /etc/cobbler/modules.conf -- this has *not* changed.
It would not be effective to enforce user control only at the web access level because then we wouldn't be securing other XMLRPC clients. Further, doing double authentication via Apache and then also Django ... I'm not sure what that would do.
cobbler@lists.fedorahosted.org