Skip to content

Commit 5c1c789

Browse files
Merge pull request #45359 from nextcloud/backport/45357/stable28
[stable28] fix: add ldap_exop_passwd function to sensitive value
2 parents 55dd808 + 140ca2b commit 5c1c789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/user_ldap/lib/LDAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected function invokeLDAPMethod(string $func, ...$arguments) {
318318

319319
private function preFunctionCall(string $functionName, array $args): void {
320320
$this->curArgs = $args;
321-
if(strcasecmp($functionName, 'ldap_bind') === 0) {
321+
if(strcasecmp($functionName, 'ldap_bind') === 0 || strcasecmp($functionName, 'ldap_exop_passwd') === 0) {
322322
// The arguments are not key value pairs
323323
// \OCA\User_LDAP\LDAP::bind passes 3 arguments, the 3rd being the pw
324324
// Remove it via direct array access for now, although a better solution could be found mebbe?

0 commit comments

Comments
 (0)