summaryrefslogtreecommitdiffstats
path: root/lib/Auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Auth.php')
-rw-r--r--lib/Auth.php63
1 files changed, 63 insertions, 0 deletions
diff --git a/lib/Auth.php b/lib/Auth.php
index fd34e97..5176933 100644
--- a/lib/Auth.php
+++ b/lib/Auth.php
@@ -205,6 +205,26 @@ class Auth {
return $this->_auth[$_SESSION['user']->get_domain()]->attribute_details($attributes);
}
+ public function domain_add($domain, $parent_domain=null)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->domain_add($domain, $parent_domain);
+ }
+
+ public function domain_edit($domain, $attributes, $typeid = null)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->domain_edit($domain, $attributes, $typeid);
+ }
+
+ public function domain_find_by_attribute($attribute)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->domain_find_by_attribute($attribute);
+ }
+
+ public function domain_info($domaindata)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->domain_info($domaindata);
+ }
+
public function find_user_groups($member_dn)
{
return $this->_auth[$_SESSION['user']->get_domain()]->find_user_groups($member_dn);
@@ -286,6 +306,19 @@ class Auth {
return $groups;
}
+ public function list_resources($domain = NULL, $attributes = array(), $search = array(), $params = array())
+ {
+ $this->connect($domain);
+ if ($domain === NULL) {
+ $domain = $this->conf->get('primary_domain');
+ }
+
+ $resources = $this->_auth[$domain]->list_resources($attributes, $search, $params);
+
+ return $resources;
+ }
+
+
public function list_roles($domain = NULL, $attributes = array(), $search = array(), $params = array())
{
$this->connect($domain);
@@ -320,6 +353,36 @@ class Auth {
}
}
+ public function resource_add($attributes, $typeid = null)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->resource_add($attributes, $typeid);
+ }
+
+ public function resource_edit($resource, $attributes, $typeid = null)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->resource_edit($resource, $attributes, $typeid);
+ }
+
+ public function resource_delete($subject)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->resource_delete($subject);
+ }
+
+ public function resource_find_by_attribute($attribute)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->resource_find_by_attribute($attribute);
+ }
+
+ public function resource_info($resourcedata)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->resource_info($resourcedata);
+ }
+
+ public function resource_members_list($resourcedata, $recurse = true)
+ {
+ return $this->_auth[$_SESSION['user']->get_domain()]->resource_members_list($resourcedata, $recurse);
+ }
+
public function search()
{
$this->connect($domain);