summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-07-20 16:28:20 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-07-25 12:56:08 +0200
commitafdc5bf264cbb061807d1d34a9ca451fd5eb72a4 (patch)
treebe8a85ad3d6e3af851f3391f54197d04609aa9fc /apps
parent81c0ca4ffb1065fc5f59ee916c06758605639fc8 (diff)
downloadnextcloud-server-afdc5bf264cbb061807d1d34a9ca451fd5eb72a4.tar.gz
nextcloud-server-afdc5bf264cbb061807d1d34a9ca451fd5eb72a4.zip
LDAP: switch user backend from extending class OC_User_Backend to implementing OC_User_Interface for improved flexibility
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/user_ldap.php25
1 files changed, 24 insertions, 1 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index b51d9a55cc7..7ff9b23af05 100644
--- a/apps/user_ldap/user_ldap.php
+++ b/apps/user_ldap/user_ldap.php
@@ -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