Robin Appelman hace 13 años
padre
commit
a72cba4ae2
Se han modificado 3 ficheros con 44 adiciones y 0 borrados
  1. 12
    0
      inc/User/backend.php
  2. 15
    0
      inc/lib_user.php
  3. 17
    0
      plugins/ldap/lib_ldap.php

+ 12
- 0
inc/User/backend.php Ver fichero

@@ -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();
}

+ 15
- 0
inc/lib_user.php Ver fichero

@@ -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();
}
}

+ 17
- 0
plugins/ldap/lib_ldap.php Ver fichero

@@ -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;
}
}

Cargando…
Cancelar
Guardar