Commit d453bd9b authored by Ziirish's avatar Ziirish

Merge branch 'fix-ldap' into 'master'

Fix ldap

See merge request !102
parents b854b76c de53553a
Pipeline #1542 passed with stages
in 4 minutes and 39 seconds
......@@ -307,6 +307,11 @@ class UserHandler(BUIuser):
self.back = None
return self.login(passwd)
self.authenticated = self.real.login(passwd)
# allow to try another backend
if not self.authenticated:
self.real = None
self.back = None
return self.login(passwd)
session['authenticated'] = self.authenticated
session['language'] = self.language
session['login'] = self.name
......
......@@ -29,7 +29,7 @@ class LdapLoader(BUIloader):
conf = self.app.conf
handler.name = self.name
defaults = {
'LDAP': {
'LDAP:AUTH': {
'host': 'localhost',
'port': None,
'encryption': None,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment