Skip to content

Commit

Permalink
Fix LDAP authentication
Browse files Browse the repository at this point in the history
ldap class, that is responsable for authentication was not called correctly.
Now parameters from config file are used properly to find ldap authentication
 class correctly.
Add corresponding test.
  • Loading branch information
Ekaterina Chernova committed Mar 5, 2018
1 parent 69ba155 commit 86cf086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kqueen/auth/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_auth_instance(name):
auth_config = config.get("AUTH", {}).get(name, {})

# If user auth is not specified clearly, use local
if name == 'local' or None:
if name == 'local' or name is None:
auth_config = {'engine': 'LocalAuth', 'param': {}}

module = importlib.import_module('kqueen.auth')
Expand Down

0 comments on commit 86cf086

Please sign in to comment.