summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-05-16 16:46:57 +0200
committerGitHub <noreply@github.com>2024-05-16 16:46:57 +0200
commitecb488048ac1095cc71fb6a4f43d8295115867bd (patch)
tree6233aa03a1a134e26a85d5f9de7533f46e3f0252
parent3b9464aef932e7c676e18ba363dce4b36e81a956 (diff)
parent8f24109572d30cdc51e564d902c2c9b5d9d32ce4 (diff)
downloadnextcloud-server-ecb488048ac1095cc71fb6a4f43d8295115867bd.tar.gz
nextcloud-server-ecb488048ac1095cc71fb6a4f43d8295115867bd.zip
Merge pull request #45360 from nextcloud/backport/45357/stable29
[stable29] fix: add ldap_exop_passwd function to sensitive value
-rw-r--r--apps/user_ldap/lib/LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php
index 8e63422b1ac..15ce4d2f412 100644
--- a/apps/user_ldap/lib/LDAP.php
+++ b/apps/user_ldap/lib/LDAP.php
@@ -318,7 +318,7 @@ class LDAP implements ILDAPWrapper {
private function preFunctionCall(string $functionName, array $args): void {
$this->curArgs = $args;
- if(strcasecmp($functionName, 'ldap_bind') === 0) {
+ if(strcasecmp($functionName, 'ldap_bind') === 0 || strcasecmp($functionName, 'ldap_exop_passwd') === 0) {
// The arguments are not key value pairs
// \OCA\User_LDAP\LDAP::bind passes 3 arguments, the 3rd being the pw
// Remove it via direct array access for now, although a better solution could be found mebbe?