Michael DeHaan wrote:
Ronald J. Yacketta wrote:
Looks like this is only happening when the users attempt to edit a
KickStart file, everything else appears to work and provides a nice
warning indicating that the user doe snot have permissions.
-Ron
Ronald J. Yacketta wrote:
Hello all!
Now that I have things working as I wish from the command line I set
out to dabble in the webui side of cobbler. Currently have cobbler
set to-do ldap authentication via modules.conf as well as added my
ldap uid to users.conf [admins] section. This works like a champ,
but, did notice that if I do not put a uid in the users.conf the
following exception is thrown:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/importer.py",
line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py",
line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py",
line 1128, in _execute_target
result = object(arg)
File "/var/www/cobbler/web/index.py", line 123, in handler
content = func( **form )
File
"/usr/lib/python2.5/site-packages/cobbler/webui/CobblerWeb.py", line
768, in ksfile_edit
'deleteable' : not self.remote.is_kickstart_in_use(name,self.token),
File "/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request
verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1204, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.5/xmlrpclib.py", line 1343, in _parse_response
return u.close()
File "/usr/lib/python2.5/xmlrpclib.py", line 790, in close
raise Fault(**self._stack[0])
Fault: <Fault 1: "<type 'exceptions.NameError'>:global name '_' is
not defined">
I searched the wiki and google without any luck :(
-Ron
------------------------------------------------------------------------
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
------------------------------------------------------------------------
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
This is related to the message I previously shared about error reporting
and the missing "import" line in remote.py
This is not the actual error message but is representative of Cobbler
not being able to give you the correct message.
This is fixed in later versions.
As for your users file, it would only make sense that it would need to
be in a valid format.
--Michael
OK :)
Updated remote.py and now receive the following exception
Fault: <Fault 1: "<class 'cobbler.cexceptions.CX'>:'user does not have access to
resource: is_kickstart_in_use'">
Should cobbler handle this exception similar to other objects that a user does not have rights to modify?
When I attempt view other objects with a user account that is not in users.conf
I see a messages similar to:
WARNING: You do not have permission to make changes to this
object. To recieve access, contact your Cobbler server administrator.
The access control list for this object is: admin.
My users.conf is fine :) I use the stock users.conf that ships with cobbler to test unauthorized access and the
following to test authorized.
[admins]
MyUserName = ""
admin = ""
cobbler = ""
Oh, and there is a typo in the unauthorized message :) recieve should be receive
-Ron
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler