In Athento, the different authenticators can be configured at various levels (settings, advanced interface, etc.). When the configuration is done at the framework level, you must define the AUTHENTICATION_BACKENDS property in the local_settings.py file.
For example, the following configuration allows enabling an LDAP authenticator and, additionally, the database authenticator:
AUTHENTICATION_BACKENDS = (
'ldapase.ldapteams.TeamsLDAPAuthenticationBackend',
'django.contrib.auth.backends.ModelBackend',
)
The following configuration allows restricting database access only to special users, leaving the rest of the access limited to authentication via LDAP:
AUTHENTICATION_BACKENDS = (
'ldapase.ldapteams.TeamsLDAPAuthenticationBackend',
'users.auths.AdminUserAuthenticationBackend',
)
The following configuration allows users to use the value of the “identification number” field (this field is usually used as DNI, ID card number, etc.) as the username:
AUTHENTICATION_BACKENDS = (
'users.auths.IdentificationNumberAuthenticationBackend',
'django.contrib.auth.backends.ModelBackend',
)