atoti.LdapConfig#
- class atoti.LdapConfig#
The configuration to connect to an LDAP authentication provider.
The user’s roles can be defined using
atoti_query.security.Security.ldap
andindividual_roles
.Example
>>> auth_config = tt.LdapConfig( ... url="ldap://example.com:389", ... base_dn="dc=example,dc=com", ... user_search_base="ou=people", ... group_search_base="ou=roles", ... )
- group_search_filter: str = '(uniqueMember={0})'#
The LDAP filter to search for groups.
The substituted parameter is the DN of the user.
- manager_dn: str | None = None#
The Distinguished Name (DN) used to log into the Directory Service and to search for user accounts.
If
None
, the connection to the service will be done anonymously.