mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix auth failure on syndic with external_auth
This is totally @thatch45's fix, but if it's broken it's probably my fault. Refs #24147.
This commit is contained in:
parent
071751d13f
commit
482d1cfc64
1 changed files with 2 additions and 0 deletions
|
@ -2379,6 +2379,8 @@ class ClearFuncs(object):
|
|||
'Authentication failure of type "user" occurred.'
|
||||
)
|
||||
return ''
|
||||
elif clear_load.get('key', 'invalid') == self.key.get('root'):
|
||||
clear_load.pop('key')
|
||||
else:
|
||||
if clear_load['user'] in self.key:
|
||||
# User is authorised, check key and check perms
|
||||
|
|
Loading…
Add table
Reference in a new issue