summaryrefslogtreecommitdiffstats
path: root/cobbler/api.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-08-28 17:54:13 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-08-28 17:54:13 -0400
commitf2406b0115acd0c2a34ac27f572037e02c54ddd8 (patch)
treecd641a80b5bdb45e01eb1ac2da6c35f72a8c29b5 /cobbler/api.py
parentc3cb47903f10493d78fa575db1a085e3091ad84b (diff)
downloadcobbler-f2406b0115acd0c2a34ac27f572037e02c54ddd8.tar.gz
cobbler-f2406b0115acd0c2a34ac27f572037e02c54ddd8.tar.xz
cobbler-f2406b0115acd0c2a34ac27f572037e02c54ddd8.zip
Lots of work on the acl module, still need to test some niche cases and ensure
the authz_configfile still works, though ownership is looking pretty good at this point with ACL's tacked on after normal authz approval
Diffstat (limited to 'cobbler/api.py')
-rw-r--r--cobbler/api.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cobbler/api.py b/cobbler/api.py
index b78d8cf7..3defb05f 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -38,6 +38,7 @@ import sub_process
import module_loader
import kickgen
import yumgen
+import acls
import logging
import os
@@ -89,6 +90,8 @@ class BootAPI:
self._config = config.Config(self)
self.deserialize()
+ self.acl_engine = acls.AclEngine()
+
self.authn = self.get_module_from_file(
"authentication",
"module",
@@ -492,8 +495,9 @@ class BootAPI:
"""
(Remote) access control.
"""
- rc = self.authz.authorize(self,user,resource,arg1,arg2)
+ rc = self.authz.authorize(self,user,resource,arg1,arg2,self.acl_engine)
self.log("authorize",[user,resource,arg1,arg2,rc],debug=True)
+ # if we clear authz, now ask the ACL engine
return rc
def build_iso(self,iso=None,profiles=None,systems=None,tempdir=None):