Skip to content
Snippets Groups Projects
Commit a72cba4a authored by Robin Appelman's avatar Robin Appelman
Browse files
parents 210e5d5c a1fbbd09
No related branches found
No related tags found
No related merge requests found
......@@ -138,4 +138,16 @@ abstract class OC_USER_BACKEND {
*/
abstract public static function checkPassword($username, $password);
/**
* get a list of all users
*
*/
abstract public static function getUsers();
/**
* get a list of all groups
*
*/
abstract public static function getGroups();
}
......@@ -213,4 +213,19 @@ class OC_USER {
return self::$_backend->checkPassword($username, $password);
}
/**
* get a list of all users
*
*/
public static function getUsers() {
return self::$_backend->getUsers();
}
/**
* get a list of all groups
*
*/
public static function getGroups() {
return self::$_backend->getGroups();
}
}
......@@ -199,4 +199,21 @@ class OC_USER_LDAP extends OC_USER_BACKEND {
return false;
}
/**
* get a list of all users
*
*/
public static function getUsers(){
// does not work with MOD_AUTH (only or some modules)
return false;
}
/**
* get a list of all groups
*
*/
public static function getGroups(){
// does not work with MOD_AUTH (only or some modules)
return false;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment