The different authenticators in Athento are configured at different levels (settings, advanced interface, etc).
In the case of framework level configuration, it is done by defining the AUTHENTICATION_BACKENDS property in the local_settings.py file.
For example, the following configuration allows to have LDAP authenticator and authenticator against database:
AUTHENTICATION_BACKENDS = (
'ldapase.ldapteams.TeamsLDAPAuthenticationBackend',
'django.contrib.auth.backends.ModelBackend',
)
The following configuration allows to restrict access only for special users against the database, leaving all other access restricted to authentication against LDAP:
AUTHENTICATION_BACKENDS = (
'ldapase.ldapteams.TeamsLDAPAuthenticationBackend',
'users.auths.AdminUserAuthenticationBackend',
)
Comments
0 comments
Please sign in to leave a comment.