diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-24 11:18:08 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-25 12:56:08 +0200 |
commit | d0aebf05bf71df6f8ad11d0464e396d2be6fa744 (patch) | |
tree | 0f61cdb222f857a30bc1efaf0628e5fce3351180 | |
parent | 6b320a260434712d8c558bee431dd40af58883ad (diff) | |
download | nextcloud-server-d0aebf05bf71df6f8ad11d0464e396d2be6fa744.tar.gz nextcloud-server-d0aebf05bf71df6f8ad11d0464e396d2be6fa744.zip |
LDAP: group backend now implements the interface, does not inherit backend class
-rw-r--r-- | apps/user_ldap/group_ldap.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 06db535490a..1585b905aa9 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -23,7 +23,7 @@ namespace OCA\user_ldap; -class GROUP_LDAP extends \OC_Group_Backend { +class GROUP_LDAP implements \OCP\GroupInterface { // //group specific settings protected $ldapGroupFilter; protected $ldapGroupMemberAssocAttr; @@ -205,4 +205,17 @@ class GROUP_LDAP extends \OC_Group_Backend { public function groupExists($gid){ return in_array($gid, $this->getGroups()); } + + /** + * @brief Check if backend implements actions + * @param $actions bitwise-or'ed actions + * @returns boolean + * + * Returns the supported actions as int to be + * compared with OC_USER_BACKEND_CREATE_USER etc. + */ + public function implementsActions($actions) { + //always returns false, because possible actions are modifying actions. We do not write to LDAP, at least for now. + return false; + } }
\ No newline at end of file |