Fix eauth error with openLDAP/389 directory server groups

Fixes #36148
This commit is contained in:
root 2016-12-22 08:08:49 +02:00
parent 12436efb54
commit 6b9e9d8f89

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