From: cajus Date: Tue, 30 Jan 2007 09:04:37 +0000 (+0000) Subject: Fixed user plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c199bfbb3c1206b7d7e4d40f35538a923301c2cf;p=gosa.git Fixed user plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5661 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index 4b2f11b2e..c25cab419 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -69,31 +69,6 @@ class userinfo function loadACL() { - -#--------------------------------------------------------------------------OLD-BUT-ACTIVE----------------------------- - $ldap= $this->config->get_ldap_link(); - - /* Load ACL's from all groups we're in */ - $this->subtreeACL= array(); - $ldap->cd($this->config->current['BASE']); - if ($this->gidNumber == -1){ - $ldap->search("(&(objectClass=posixGroup)(objectClass=gosaObject)". - "(memberUid=$this->username))"); - } else { - $ldap->search("(&(objectClass=posixGroup)(objectClass=gosaObject)". - "(|(memberUid=$this->username)(gidNumber=$this->gidNumber)))"); - } - - while($attrs = $ldap->fetch()){ - $base= preg_replace('/^[^,]+,ou=[^,]+,/i', "",$ldap->getDN()); - $base= preg_replace("/[ ]*,[ ]*/", ",", $base); - - for ($i= 0; $i<$attrs["gosaSubtreeACL"]["count"]; $i++){ - $this->subtreeACL[$base][]= $attrs["gosaSubtreeACL"][$i]; - } - } -#echo "NEW ACL LOADING --------------------------------------------------------------------------------------------
"; - $this->ACL= array(); $this->groups= array(); $this->result_cache =array(); @@ -159,7 +134,6 @@ class userinfo } } - } diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc index c434af47f..367903914 100644 --- a/plugins/personal/connectivity/class_intranetAccount.inc +++ b/plugins/personal/connectivity/class_intranetAccount.inc @@ -178,8 +178,7 @@ class intranetAccount extends plugin "plDepends" => array("user"), "plPriority" => 25, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Intranet account"), - "objectClass" => "gosaIntranetAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plDescription" => _("Intranet account settings")." : "._("Connectivity addon")."", diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc index 85245ebdf..b038cd9c7 100644 --- a/plugins/personal/connectivity/class_kolabAccount.inc +++ b/plugins/personal/connectivity/class_kolabAccount.inc @@ -449,8 +449,7 @@ class kolabAccount extends plugin "plDepends" => array("user"), "plPriority" => 20, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Kolab account"), - "objectClass" => "kolabAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc index 558ce4c4a..5f6058e5a 100644 --- a/plugins/personal/connectivity/class_opengwAccount.inc +++ b/plugins/personal/connectivity/class_opengwAccount.inc @@ -312,8 +312,7 @@ class opengwAccount extends plugin "plDepends" => array("user"), "plPriority" => 26, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Opengroupware"), - "objectClass" => "openGroupwareAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc index 7a91e92ab..8553e16ff 100644 --- a/plugins/personal/connectivity/class_oxchangeAccount.inc +++ b/plugins/personal/connectivity/class_oxchangeAccount.inc @@ -952,8 +952,7 @@ class oxchangeAccount extends plugin "plDepends" => array("user"), "plPriority" => 27, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("OpenExchange account"), - "objectClass" => "OXUserObject")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/connectivity/class_phpgwAccount.inc b/plugins/personal/connectivity/class_phpgwAccount.inc index 143fcb8e5..ce14d589c 100644 --- a/plugins/personal/connectivity/class_phpgwAccount.inc +++ b/plugins/personal/connectivity/class_phpgwAccount.inc @@ -145,8 +145,7 @@ class phpgwAccount extends plugin "plDepends" => array("user"), "plPriority" => 24, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("PHPgroupware"), - "objectClass" => "phpgwAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array() diff --git a/plugins/personal/connectivity/class_phpscheduleitAccount.inc b/plugins/personal/connectivity/class_phpscheduleitAccount.inc index 78da8dfb0..a744b2dae 100644 --- a/plugins/personal/connectivity/class_phpscheduleitAccount.inc +++ b/plugins/personal/connectivity/class_phpscheduleitAccount.inc @@ -146,8 +146,7 @@ class phpscheduleitAccount extends plugin "plDepends" => array("user"), "plPriority" => 29, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("PHP schedule it"), - "objectClass" => "phpscheduleitAccount")), + "plCategory" => array("users"), "plOptions" => array(), diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc index 22ef56389..96c8dea6c 100644 --- a/plugins/personal/connectivity/class_pptpAccount.inc +++ b/plugins/personal/connectivity/class_pptpAccount.inc @@ -161,8 +161,7 @@ class pptpAccount extends plugin "plDepends" => array("user"), "plPriority" => 28, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("PPTP account"), - "objectClass" => "pptpServerAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array() diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc index 7b333061e..dbb0f7935 100644 --- a/plugins/personal/connectivity/class_proxyAccount.inc +++ b/plugins/personal/connectivity/class_proxyAccount.inc @@ -294,8 +294,7 @@ class proxyAccount extends plugin "plDepends" => array("user"), "plPriority" => 21, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Proxy account"), - "objectClass" => "gosaProxyAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/connectivity/class_pureftpdAccount.inc b/plugins/personal/connectivity/class_pureftpdAccount.inc index fc967e856..1069f60c9 100644 --- a/plugins/personal/connectivity/class_pureftpdAccount.inc +++ b/plugins/personal/connectivity/class_pureftpdAccount.inc @@ -221,8 +221,7 @@ class pureftpdAccount extends plugin "plDepends" => array("user"), "plPriority" => 22, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("FTP account"), - "objectClass" => "PureFTPdUser")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/connectivity/class_webdavAccount.inc b/plugins/personal/connectivity/class_webdavAccount.inc index 7460e4bde..dfc9352be 100644 --- a/plugins/personal/connectivity/class_webdavAccount.inc +++ b/plugins/personal/connectivity/class_webdavAccount.inc @@ -144,8 +144,7 @@ class webdavAccount extends plugin "plDepends" => array("user"), "plPriority" => 23, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("WebDAV account"), - "objectClass" => "gosaWebdavAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array() diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index a0fd23c6d..9c2676155 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -1272,10 +1272,8 @@ class environment extends plugin "plDepends" => array("user", "posixAccount"), // This plugin depends on "plPriority" => 3, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Environment settings"), - "objectClass" => "gotoEnvironment"), - "groups" => array("description" => _("Environment settings"), - "objectClass" => "gotoEnvironment")), + "plCategory" => array("users", + "groups"), "plOptions" => array("resolution_hook" => array("type" => "string", "description" => _("Command to extend the list of possible screen resolutions"))), diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index a1a60c50a..d9c203927 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -1010,8 +1010,7 @@ class mailAccount extends plugin "plDepends" => array("user"), // This plugin depends on "plPriority" => 4, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Mail account"), - "objectClass" => "gosaMailAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc index a19d0b1a7..9f32138a1 100644 --- a/plugins/personal/nagios/class_nagiosAccount.inc +++ b/plugins/personal/nagios/class_nagiosAccount.inc @@ -262,8 +262,7 @@ class nagiosAccount extends plugin "plDepends" => array("user"), "plPriority" => 8, // Position in tabs "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Nagios account"), - "objectClass" => array("nagiosContact", "nagiosAuth"))), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc index 96f88fd72..1d06faac4 100644 --- a/plugins/personal/netatalk/class_netatalk.inc +++ b/plugins/personal/netatalk/class_netatalk.inc @@ -357,8 +357,7 @@ class netatalk extends plugin { "plDepends" => array("user"), "plPriority" => 6, "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Netatalk account"), - "objectClass" => "apple-user")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/password/class_password.inc b/plugins/personal/password/class_password.inc index 94f64e7bc..46cf8a048 100644 --- a/plugins/personal/password/class_password.inc +++ b/plugins/personal/password/class_password.inc @@ -14,8 +14,7 @@ class password "plDepends" => array("user"), "plPriority" => 10, "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Password"), - "objectClass" => "gosaAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array()) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 427add565..4df29ad4a 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -1324,8 +1324,7 @@ class posixAccount extends plugin "plDepends" => array("user"), "plPriority" => 2, "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Posix Account"), - "objectClass" => "posixAccount")), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array( diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index 87712a963..c99544ea5 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -1070,8 +1070,7 @@ class sambaAccount extends plugin "plDepends" => array("user"), "plPriority" => 5, "plSection" => array("personal" => _("My account")), - "plCategory" => array("users" => array("description" => _("Samba account"), - "objectClass" => array("sambaSamAccount"))), + "plCategory" => array("users"), "plOptions" => array(), "plProvidedAcls" => array(