diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-23 19:58:43 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-23 19:58:43 +0100 |
commit | 4c5e7d270ae81c341195d47055aadabbb761b84c (patch) | |
tree | 68611ba0c21e97822f5aafe7e5c350313d326a26 /apps/user_ldap/lib | |
parent | 861c8572c03ba577ca89e1f9e88ab108cfafdf49 (diff) | |
download | nextcloud-server-4c5e7d270ae81c341195d47055aadabbb761b84c.tar.gz nextcloud-server-4c5e7d270ae81c341195d47055aadabbb761b84c.zip |
Add tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/Access.php | 3 | ||||
-rw-r--r-- | apps/user_ldap/lib/Connection.php | 1 | ||||
-rw-r--r-- | apps/user_ldap/lib/LDAP.php | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index f06f76bb910..d88378c1888 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -226,9 +226,12 @@ class Access extends LDAPUtility implements IUserTools { /** * Set password for an LDAP user identified by a DN + * * @param string $userDN the user in question * @param string $password the new password * @return bool + * @throws HintException + * @throws \Exception */ public function setPassword($userDN, $password) { if(intval($this->connection->turnOnPasswordChange) !== 1) { diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index 6028486e8bb..d74afa42fe8 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -42,6 +42,7 @@ use OC\ServerNotAvailableException; * @property string ldapUserFilter * @property string ldapUserDisplayName * @property string ldapUserDisplayName2 + * @property boolean turnOnPasswordChange * @property boolean hasPagedResultSupport * @property string[] ldapBaseUsers * @property int|string ldapPagingSize holds an integer diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php index 0d491396ee4..cac09f25993 100644 --- a/apps/user_ldap/lib/LDAP.php +++ b/apps/user_ldap/lib/LDAP.php @@ -260,7 +260,7 @@ class LDAP implements ILDAPWrapper { /** * @return mixed */ - private function invokeLDAPMethod() { + protected function invokeLDAPMethod() { $arguments = func_get_args(); $func = 'ldap_' . array_shift($arguments); if(function_exists($func)) { |