Beispiel #1
0
 def __init__(self):
     param_tools.apply_to_django_settings()
     self.global_params = dict(param_tools.get_global_parameters("core"))
     self.server_uri = self._setting("AUTH_LDAP_SERVER_URI",
                                     "ldap://localhost")
     self.pwd_attr = self._setting("LDAP_PASSWORD_ATTR", "userPassword")
     self.ldap_ad = self._setting("LDAP_ACTIVE_DIRECTORY", False)
     self.conn = None
     self.user_filter = self._setting("LDAP_USER_FILTER", "")
Beispiel #2
0
 def __init__(self):
     param_tools.apply_to_django_settings()
     self.global_params = dict(param_tools.get_global_parameters("core"))
     self.server_uri = self._setting(
         "AUTH_LDAP_SERVER_URI", "ldap://localhost"
     )
     self.pwd_attr = self._setting("LDAP_PASSWORD_ATTR", "userPassword")
     self.ldap_ad = self._setting("LDAP_ACTIVE_DIRECTORY", False)
     self.conn = None
     self.user_filter = self._setting("LDAP_USER_FILTER", "")
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     """Load LDAP settings."""
     param_tools.apply_to_django_settings()
     super(LDAPBackend, self).__init__(*args, **kwargs)
     self.global_params = dict(
         param_tools.get_global_parameters("core"))
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     """Load LDAP settings."""
     param_tools.apply_to_django_settings()
     super(LDAPBackend, self).__init__(*args, **kwargs)
     self.global_params = dict(
         param_tools.get_global_parameters("core"))