summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/ILDAPWrapper.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-09-28 15:27:04 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-10-20 12:56:17 +0200
commit8d07bc9b20de94f401670c0cbc84a0f9f8d5c936 (patch)
treed3125c7c031e53494214bac27261ba5d1b00cf12 /apps/user_ldap/lib/ILDAPWrapper.php
parent81064b3d225250751ac91b4a5ad040bbb5fb7b77 (diff)
downloadnextcloud-server-8d07bc9b20de94f401670c0cbc84a0f9f8d5c936.tar.gz
nextcloud-server-8d07bc9b20de94f401670c0cbc84a0f9f8d5c936.zip
Cleanup typing and improve logging
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/ILDAPWrapper.php')
-rw-r--r--apps/user_ldap/lib/ILDAPWrapper.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/ILDAPWrapper.php b/apps/user_ldap/lib/ILDAPWrapper.php
index 433ca96c071..b5c5568348e 100644
--- a/apps/user_ldap/lib/ILDAPWrapper.php
+++ b/apps/user_ldap/lib/ILDAPWrapper.php
@@ -166,6 +166,13 @@ interface ILDAPWrapper {
public function modReplace($link, $userDN, $password);
/**
+ * Performs a PASSWD extended operation.
+ * @param resource|\LDAP\Connection $link LDAP link resource
+ * @return bool|string The generated password if new_password is empty or omitted. Otherwise true on success and false on failure.
+ */
+ public function exopPasswd($link, string $userDN, string $oldPassword, string $password);
+
+ /**
* Sets the value of the specified option to be $value
* @param resource|\LDAP\Connection $link LDAP link resource
* @param int $option a defined LDAP Server option