-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
Hello, at first thank you for great package! I am a newbie in Django+LDAP but I have managed to run it in quite short time :)
But I have a question about the case if the LDAP server is not reachable, so it can't be connected.
LDAP_AUTH_URL = ['ldaps://nonsense.com']
Is there a fallback that it will stop trying to connect the server and authenticate you via User model data?
I thought that these settings could help but nothing happened:
LDAP_AUTH_CONNECT_TIMEOUT = 2
LDAP_AUTH_RECEIVE_TIMEOUT = 2
I have also tried to add ModelBackend but also without success:
AUTHENTICATION_BACKENDS = (
'django_python3_ldap.auth.LDAPBackend',
'django.contrib.auth.backends.ModelBackend',)
Also nothing about unreachable server appears in console (with logging settings from help):
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django_python3_ldap': {
'handlers': ['console'],
'level': 'INFO',
},
},
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels