|
@@ -16,6 +16,7 @@ ADMINS = (
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
|
DATABASES = {
|
|
|
+ # Base de donnée du SI
|
|
|
'default': {
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
|
'NAME': 'illyse_coin',
|
|
@@ -24,6 +25,7 @@ DATABASES = {
|
|
|
'HOST': '', # Empty for localhost through domain sockets
|
|
|
'PORT': '', # Empty for default
|
|
|
},
|
|
|
+ # LDAP backend pour stockage et mise à jour de données
|
|
|
'ldap': {
|
|
|
'ENGINE': 'ldapdb.backends.ldap',
|
|
|
'NAME': 'ldap://ldapdev.illyse.org:390',
|
|
@@ -176,6 +178,8 @@ AUTHENTICATION_BACKENDS = (
|
|
|
'django.contrib.auth.backends.ModelBackend',
|
|
|
)
|
|
|
|
|
|
+# LDAP Backend pour authentification
|
|
|
+
|
|
|
AUTH_LDAP_SERVER_URI = "ldap://ldapdev.illyse.org:390"
|
|
|
AUTH_LDAP_START_TLS = True
|
|
|
AUTH_LDAP_GLOBAL_OPTIONS = {ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER}
|