Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Atoti Python SDK
atoti.SecurityConfig.sso
LdapConfig
>>> session_config = tt.SessionConfig( ... security=tt.SecurityConfig( ... sso=tt.LdapConfig( ... url="ldap://example.com:389", ... base_dn="dc=example,dc=com", ... user_search_base="ou=people", ... group_search_base="ou=roles", ... username_case_conversion="lower", ... ) ... ) ... ) >>> session = tt.Session.start(session_config) >>> table = session.create_table( ... "Restrictions example", ... data_types={"City": "String"}, ... ) >>> session.tables.restrictions["ROLE_MATHS"] = table["City"] == "Paris"
>>> session.security.ldap.role_mapping["MATHEMATICIANS"] = { ... "ROLE_MATHS", ... "ROLE_USER", ... } >>> sorted(session.security.ldap.role_mapping["MATHEMATICIANS"]) ['ROLE_MATHS', 'ROLE_USER']
>>> session.security.ldap.default_roles.add("ROLE_USER") >>> session.security.ldap.default_roles {'ROLE_USER'}
default_roles
role_mapping
Was this page helpful?