Add wildcard back into the eauth matching

Looks like it was just omitted from 403699697, so this allows users
to run with a config like the following again:

```
external_auth:
  ldap:
    '*':
      - .*
```
This commit is contained in:
Tait Clarridge 2015-12-22 10:37:58 -05:00
parent 135b863b20
commit be5c9d8f35

View File

@ -1960,6 +1960,8 @@ class ClearFuncs(object):
# what the user has access to. # what the user has access to.
auth_list = [] auth_list = []
if '*' in self.opts['external_auth'][extra['eauth']]:
auth_list.extend(self.opts['external_auth'][extra['eauth']]['*'])
if name in self.opts['external_auth'][extra['eauth']]: if name in self.opts['external_auth'][extra['eauth']]:
auth_list = self.opts['external_auth'][extra['eauth']][name] auth_list = self.opts['external_auth'][extra['eauth']][name]
if group_auth_match: if group_auth_match: