I know this sounds obvious, but out of curiosity have you tried as
user admin or ran "cobbler aclsetup" to give user cobbler access to do
this? It appears like you are logging in as user cobbler to the
daemon. Just a guess.
Sent from my iPhone
On Apr 26, 2009, at 8:15 AM, James Cammarata <jimi(a)sngx.net> wrote:
Ok, I'm having some problems getting the ownership stuff working.
I've got
the user added to the owners list, and I've got the modules.conf setup
properly (restarted cobblerd of course), but I'm seeing tracebacks
in the
cobblerd.log file both when loading the object from the webui and when
testing manually from the python cli:
2009-04-26 10:09:55,952 - api - REMOTE login attempt; user(cobbler)
2009-04-26 10:09:55,953 - api - authenticate; ['cobbler', True]
2009-04-26 10:09:55,954 - api - REMOTE login succeeded; user(cobbler)
2009-04-26 10:09:56,046 - api - REMOTE calling authorize for resource
['modify_distro', <cobbler.item_distro.Distro instance at 0x9816f2c>,
None]; user(cobbler)
2009-04-26 10:09:56,047 - api - Exception occured:
cobbler.cexceptions.CX
2009-04-26 10:09:56,047 - api - Exception value: 'user does not have
access
to resource: modify_distro'
2009-04-26 10:09:56,048 - api - Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line
1102, in
check_access_no_fail
self.check_access(token,resource,arg1,arg2)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line
1115, in
check_access
rc = self.__authorize(token,resource,arg1,arg2)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line
1146, in
__authorize
raise CX(_("user does not have access to resource: %s") % resource)
# cobbler distro report --name=centos5.2-xen-i386 | grep owner
owners : [u'admin', u'cobbler']
>>> import xmlrpclib
>>> remote = xmlrpclib.Server('http://127.0.0.1/cobbler_api',
allow_none=True)
>>> token = remote.login('cobbler','cobbler')
>>> token
'mOs+/j/jwbun6lgxQ/1IfVk4CrUZdi0Jdw=='
>>> remote.update(token)
True
>>>
remote.check_access_no_fail(token,"modify_distro","centos5.2-xen-
>>> i386")
False
So what is going on here?
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
cobbler-devel mailing list
cobbler-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel