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:
C. R. Oldham 2017-01-06 14:40:29 -07:00 committed by GitHub
commit 179d385003

View file

@ -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'))