abx_plugin_ldap_auth.config

Module Contents

Classes

LdapConfig

LDAP Config gets imported by core/settings.py very early during startup. It needs to be in a separate file from apps.py so that it can be imported during settings.py initialization before the apps are loaded.

Functions

get_ldap_lib

Data

LDAP_LIB

LDAP_SEARCH

LDAP_CONFIG

API

abx_plugin_ldap_auth.config.LDAP_LIB[source]

None

None

abx_plugin_ldap_auth.config.get_ldap_lib(extra_paths=())[source]
class abx_plugin_ldap_auth.config.LdapConfig[source]

Bases: abx_spec_config.base_configset.BaseConfigSet

LDAP Config gets imported by core/settings.py very early during startup. It needs to be in a separate file from apps.py so that it can be imported during settings.py initialization before the apps are loaded.

LDAP_ENABLED: bool[source]

‘Field(…)’

LDAP_SERVER_URI: str[source]

‘Field(…)’

LDAP_BIND_DN: str[source]

‘Field(…)’

LDAP_BIND_PASSWORD: str[source]

‘Field(…)’

LDAP_USER_BASE: str[source]

‘Field(…)’

LDAP_USER_FILTER: str[source]

‘Field(…)’

LDAP_CREATE_SUPERUSER: bool[source]

‘Field(…)’

LDAP_USERNAME_ATTR: str[source]

‘Field(…)’

LDAP_FIRSTNAME_ATTR: str[source]

‘Field(…)’

LDAP_LASTNAME_ATTR: str[source]

‘Field(…)’

LDAP_EMAIL_ATTR: str[source]

‘Field(…)’

validate()[source]
property LDAP_CONFIG_IS_SET: bool[source]

Check that all required LDAP config options are set

property LDAP_USER_ATTR_MAP: Dict[str, str][source]
property AUTHENTICATION_BACKENDS: List[str][source]
abx_plugin_ldap_auth.config.LDAP_CONFIG[source]

‘LdapConfig(…)’