File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 3333 */
3434namespace OCA \User_LDAP ;
3535
36+ use OCP \IConfig ;
3637use OCP \Profiler \IProfiler ;
3738use OC \ServerNotAvailableException ;
3839use OCA \User_LDAP \DataCollector \LdapDataCollector ;
@@ -317,6 +318,14 @@ protected function invokeLDAPMethod(string $func, ...$arguments) {
317318
318319 private function preFunctionCall (string $ functionName , array $ args ): void {
319320 $ this ->curArgs = $ args ;
321+ if (strcasecmp ($ functionName , 'ldap_bind ' ) === 0 ) {
322+ // The arguments are not key value pairs
323+ // \OCA\User_LDAP\LDAP::bind passes 3 arguments, the 3rd being the pw
324+ // Remove it via direct array access for now, although a better solution could be found mebbe?
325+ // @link https://github.com/nextcloud/server/issues/38461
326+ $ args [2 ] = IConfig::SENSITIVE_VALUE ;
327+ }
328+
320329 $ this ->logger ->debug ('Calling LDAP function {func} with parameters {args} ' , [
321330 'app ' => 'user_ldap ' ,
322331 'func ' => $ functionName ,
You can’t perform that action at this time.
0 commit comments