summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/user_ldap.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-05-04 13:14:03 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-05-04 13:26:07 +0200
commitadb32ad347ce09a8d256f85b52be2a285b3b7531 (patch)
treefcc9a39862805f49d910b661277511f099e5ad50 /apps/user_ldap/user_ldap.php
parent594221a4670ddf9092b97c544de1cbded42b8454 (diff)
downloadnextcloud-server-adb32ad347ce09a8d256f85b52be2a285b3b7531.tar.gz
nextcloud-server-adb32ad347ce09a8d256f85b52be2a285b3b7531.zip
LDAP: checkPassword ain't static
Diffstat (limited to 'apps/user_ldap/user_ldap.php')
-rwxr-xr-xapps/user_ldap/user_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php
index d9c36da87be..e924faa8fd1 100755
--- a/apps/user_ldap/user_ldap.php
+++ b/apps/user_ldap/user_ldap.php
@@ -50,7 +50,7 @@ class OC_USER_LDAP extends OC_User_Backend {
// will be retrieved from LDAP server
protected $ldap_dc = false;
- function __construct() {
+ public function __construct() {
$this->ldap_host = OCP\Config::getAppValue('user_ldap', 'ldap_host','');
$this->ldap_port = OCP\Config::getAppValue('user_ldap', 'ldap_port', OC_USER_BACKEND_LDAP_DEFAULT_PORT );
$this->ldap_dn = OCP\Config::getAppValue('user_ldap', 'ldap_dn','');
@@ -171,7 +171,7 @@ class OC_USER_LDAP extends OC_User_Backend {
*
* Check if the password is correct without logging in the user
*/
- public static function checkPassword( $uid, $password ){
+ public function checkPassword($uid, $password){
//find out dn of the user name
$filter = str_replace('%uid', $uid, $this->ldapLoginFilter);
$ldap_users = OC_LDAP::fetchListOfUsers($filter, 'dn');