LDAP: group backend now implements the interface, does not inherit backend class

This commit is contained in:
Arthur Schiwon 2012-07-24 11:18:08 +02:00
parent 6b320a2604
commit d0aebf05bf
1 changed files with 14 additions and 1 deletions

View File

@ -23,7 +23,7 @@
namespace OCA\user_ldap; namespace OCA\user_ldap;
class GROUP_LDAP extends \OC_Group_Backend { class GROUP_LDAP implements \OCP\GroupInterface {
// //group specific settings // //group specific settings
protected $ldapGroupFilter; protected $ldapGroupFilter;
protected $ldapGroupMemberAssocAttr; protected $ldapGroupMemberAssocAttr;
@ -205,4 +205,17 @@ class GROUP_LDAP extends \OC_Group_Backend {
public function groupExists($gid){ public function groupExists($gid){
return in_array($gid, $this->getGroups()); 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;
}
} }