forked from DGNum/infrastructure
20 lines
670 B
Diff
20 lines
670 B
Diff
diff --git i/app/settings.py w/app/settings.py
|
|
index 57ff8ac..56f2581 100644
|
|
--- i/app/settings.py
|
|
+++ w/app/settings.py
|
|
@@ -174,14 +174,8 @@ LOGGING = {
|
|
|
|
CAS_AUTH_CLASS = "cas_server.auth.LdapAuthUser"
|
|
CAS_LDAP_SERVER = ldap3.Server(
|
|
- credentials.get("LDAP_URI", "ldaps://ldap.spi.ens.fr:636"),
|
|
+ credentials.get("LDAP_URI", "ldap://ldap.spi.ens.fr:389"),
|
|
get_info=ldap3.ALL,
|
|
- tls=ldap3.Tls(
|
|
- validate=ssl.CERT_REQUIRED,
|
|
- version=ssl.PROTOCOL_TLSv1_1,
|
|
- ciphers="AES256-SHA:@SECLEVEL=0",
|
|
- ssl_options=[ssl.OP_LEGACY_SERVER_CONNECT],
|
|
- ),
|
|
)
|
|
CAS_LDAP_BASE_DN = "dc=spi,dc=ens,dc=fr"
|
|
CAS_LDAP_USER_QUERY = "(uid=%s)"
|