]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: checkPassword ain't static
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 4 May 2012 11:14:03 +0000 (13:14 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 4 May 2012 11:26:07 +0000 (13:26 +0200)
apps/user_ldap/user_ldap.php

index d9c36da87be8579663c0ef07a556ebd9f0ee5908..e924faa8fd1b895c1676cebc8fd6c863bbf643cd 100755 (executable)
@@ -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');