|
@@ -176,12 +176,15 @@ AUTHENTICATION_BACKENDS = (
|
|
|
'django.contrib.auth.backends.ModelBackend',
|
|
|
)
|
|
|
|
|
|
-AUTH_LDAP_SERVER_URI = "ldap://localhost"
|
|
|
+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}
|
|
|
+
|
|
|
+AUTH_LDAP_BIND_DN = "cn=illysedev,ou=services,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR"
|
|
|
+AUTH_LDAP_BIND_PASSWORD = "gfj83-E8ECgGh23JK_Ol12"
|
|
|
|
|
|
-AUTH_LDAP_BIND_DN = "cn=admin,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR"
|
|
|
-AUTH_LDAP_BIND_PASSWORD = "admin"
|
|
|
AUTH_LDAP_USER_SEARCH = LDAPSearch(
|
|
|
- "ou=users,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
+ "ou=users,ou=unix,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
ldap.SCOPE_SUBTREE,
|
|
|
"(cn=%(user)s)"
|
|
|
)
|
|
@@ -189,7 +192,7 @@ AUTH_LDAP_USER_SEARCH = LDAPSearch(
|
|
|
AUTH_LDAP_CACHE_GROUPS = False
|
|
|
|
|
|
AUTH_LDAP_GROUP_SEARCH = LDAPSearch(
|
|
|
- "ou=groups,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
+ "ou=groups,ou=unix,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
ldap.SCOPE_SUBTREE,
|
|
|
"(objectClass=posixGroup)"
|
|
|
)
|
|
@@ -205,9 +208,9 @@ AUTH_LDAP_USER_ATTR_MAP = {
|
|
|
}
|
|
|
|
|
|
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
|
|
|
- "is_active": "cn=admin,ou=groups,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
- "is_staff": "cn=admin,ou=groups,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
- "is_superuser": "cn=admin,ou=groups,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR"
|
|
|
+ "is_active": "cn=users,ou=groups,ou=unix,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
+ "is_staff": "cn=users,ou=groups,ou=unix,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR",
|
|
|
+ "is_superuser": "cn=users,ou=groups,ou=unix,o=ILLYSE,l=Villeurbanne,st=RHA,c=FR"
|
|
|
}
|
|
|
|
|
|
|