Skip to content
Snippets Groups Projects
Commit afdc5bf2 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: switch user backend from extending class OC_User_Backend to implementing...

LDAP: switch user backend from extending class OC_User_Backend to implementing OC_User_Interface for improved flexibility
parent 81c0ca4f
Branches
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@
*
*/
class OC_USER_LDAP extends OC_User_Backend {
class OC_USER_LDAP implements OCP\UserInterface {
// cached settings
protected $ldapUserFilter;
......@@ -139,4 +139,27 @@ class OC_USER_LDAP extends OC_User_Backend {
return true;
}
/**
* @brief delete a user
* @param $uid The username of the user to delete
* @returns true/false
*
* Deletes a user
*/
public function deleteUser($uid) {
return false;
}
/**
* @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) {
return (bool)(OC_USER_BACKEND_CHECK_PASSWORD & $actions);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment