mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #32561 from gtmanfred/user_passwords
redact passwords and hashes from user.present updates
This commit is contained in:
commit
027b502335
1 changed files with 4 additions and 1 deletions
|
@ -516,7 +516,10 @@ def present(name,
|
|||
if 'shadow.info' in __salt__:
|
||||
for key in spost:
|
||||
if lshad[key] != spost[key]:
|
||||
ret['changes'][key] = spost[key]
|
||||
if key == 'passwd':
|
||||
ret['changes'][key] = 'XXX-REDACTED-XXX'
|
||||
else:
|
||||
ret['changes'][key] = spost[key]
|
||||
if __grains__['kernel'] == 'OpenBSD':
|
||||
if lcpre != lcpost:
|
||||
ret['changes']['loginclass'] = lcpost
|
||||
|
|
Loading…
Add table
Reference in a new issue