Skip to content
Permalink
Browse files Browse the repository at this point in the history
Do not expose old ldap pass
  • Loading branch information
trasher authored and cedric-anne committed Apr 20, 2022
1 parent f876935 commit 26f0a20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Config.php
Expand Up @@ -56,7 +56,12 @@ class Config extends CommonDBTM

public static $rightname = 'config';

public static $undisclosedFields = ['proxy_passwd', 'smtp_passwd', 'glpinetwork_registration_key'];
public static $undisclosedFields = [
'proxy_passwd',
'smtp_passwd',
'glpinetwork_registration_key',
'ldap_pass', // this one should not exist anymore, but may be present when admin restored config dump after migration
];
public static $saferUndisclosedFields = ['admin_email', 'replyto_email'];

public static function getTypeName($nb = 0)
Expand Down

0 comments on commit 26f0a20

Please sign in to comment.