mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #38406 from alex-zel/fix-eauth-groups-permissions
Fix eauth error with openLDAP/389 directory server groups
This commit is contained in:
commit
179d385003
1 changed files with 0 additions and 7 deletions
|
@ -1718,13 +1718,6 @@ class ClearFuncs(object):
|
|||
message=msg))
|
||||
|
||||
name = self.loadauth.load_name(clear_load)
|
||||
if not ((name in self.opts['external_auth'][clear_load['eauth']]) |
|
||||
('*' in self.opts['external_auth'][clear_load['eauth']])):
|
||||
msg = ('Authentication failure of type "eauth" occurred for '
|
||||
'user {0}.').format(clear_load.get('username', 'UNKNOWN'))
|
||||
log.warning(msg)
|
||||
return dict(error=dict(name='EauthAuthenticationError',
|
||||
message=msg))
|
||||
if self.loadauth.time_auth(clear_load) is False:
|
||||
msg = ('Authentication failure of type "eauth" occurred for '
|
||||
'user {0}.').format(clear_load.get('username', 'UNKNOWN'))
|
||||
|
|
Loading…
Add table
Reference in a new issue