|
@@ -26,15 +26,15 @@ class LDAPAuth(Auth):
|
26
|
26
|
|
27
|
27
|
def wrap_config(self):
|
28
|
28
|
super().wrap_config()
|
29
|
|
- self._config.auth_backend = 'ldapauth'
|
30
|
|
- self._config.sa_auth.authenticators = [('ldapauth', self.ldap_auth)]
|
|
29
|
+ self._config['auth_backend'] = 'ldapauth'
|
|
30
|
+ self._config['sa_auth'].authenticators = [('ldapauth', self.ldap_auth)]
|
31
|
31
|
|
32
|
32
|
mdproviders = [('ldapuser', self.ldap_user_provider)]
|
33
|
33
|
if self._config.get('ldap_group_enabled', False):
|
34
|
34
|
mdproviders.append(('ldapgroups', self.ldap_groups_provider))
|
35
|
|
- self._config.sa_auth.mdproviders = mdproviders
|
|
35
|
+ self._config['sa_auth'].mdproviders = mdproviders
|
36
|
36
|
|
37
|
|
- self._config.sa_auth.authmetadata = LDAPApplicationAuthMetadata(self._config.sa_auth)
|
|
37
|
+ self._config['sa_auth'].authmetadata = LDAPApplicationAuthMetadata(self._config.get('sa_auth'))
|
38
|
38
|
|
39
|
39
|
def _get_ldap_auth(self):
|
40
|
40
|
auth_plug = LDAPSearchAuthenticatorPlugin(
|