From 7c91ab1b090c0ea67b67f8243619a814c3d95063 Mon Sep 17 00:00:00 2001 From: yemkareems Date: Thu, 16 May 2024 16:54:18 +0530 Subject: [PATCH] fix: add ldap_exop_passwd function to sensitive value Signed-off-by: yemkareems --- apps/user_ldap/lib/LDAP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php index 9322b6fbdaaa7..d17bd7ce13677 100644 --- a/apps/user_ldap/lib/LDAP.php +++ b/apps/user_ldap/lib/LDAP.php @@ -319,7 +319,7 @@ protected function invokeLDAPMethod(string $func, ...$arguments) { 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?