config.py: add RBAC backends to authorized backends

This commit is contained in:
Benjamin Dauvergne 2015-06-29 17:06:47 +02:00
parent 1ec684b60a
commit b52022e5d4
1 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,10 @@ LDAP_AUTH_SETTINGS = [
},
}
]
AUTHENTICATION_BACKENDS = ('authentic2.backends.ldap_backend.LDAPBackend',)
AUTHENTICATION_BACKENDS = (
'authentic2.backends.ldap_backend.LDAPBackend',
'django_rbac.backends.DjangoRBACBackend',
)
# bypass authentic2 warning: "DEFAULT_FROM_EMAIL must be customized"
DEFAULT_FROM_EMAIL = 'root@localhost'