From 3f1b762a51d69db4eacaae7c12bb8bfad37c8c3c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20F=2E=20Esteban=20M=C3=BCller?=
 <juanf.estebanmuller@ess.eu>
Date: Tue, 22 Oct 2024 22:31:14 +0200
Subject: [PATCH] Updating to Jupyterhub 5.2.1 and 
 jupyterhub-ldapauthenticator-2.0.0

---
 Dockerfile                       | 4 ++--
 config/jupyterhub_config.ldap.py | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index ad206c8..bf1db17 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM jupyterhub/jupyterhub:4.1.4
+FROM jupyterhub/jupyterhub:5.2.1
 
 LABEL MAINTAINER "benjamin.bertrand@esss.se"
 
@@ -12,4 +12,4 @@ RUN curl https://get.docker.com -s --output /tmp/getdocker \
 # Use a specific commit for ldapauthenticator (patch needed)
 RUN /usr/local/bin/pip install --no-cache-dir \
     dockerspawner==13.0.0 \
-    jupyterhub-ldapauthenticator==1.3.2
+    jupyterhub-ldapauthenticator==2.0.0
diff --git a/config/jupyterhub_config.ldap.py b/config/jupyterhub_config.ldap.py
index 7a17a4f..9337eb7 100644
--- a/config/jupyterhub_config.ldap.py
+++ b/config/jupyterhub_config.ldap.py
@@ -57,13 +57,12 @@ c.JupyterHub.authenticator_class = LDAPAuthenticatorAuthState
 
 # Authenticate users with LDAP
 c.LDAPAuthenticatorAuthState.server_address = "ldap-cslab.cslab.esss.lu.se"
-c.LDAPAuthenticatorAuthState.use_ssl = True
+c.LDAPAuthenticatorAuthState.tls_strategy = "on_connect"
 c.LDAPAuthenticatorAuthState.bind_dn_template = [
     "uid={username},ou=Users,dc=esss,dc=lu,dc=se"
 ]
 c.LDAPAuthenticatorAuthState.lookup_dn = False
 c.LDAPAuthenticatorAuthState.allowed_groups = []
-c.LDAPAuthenticatorAuthState.escape_userdn = False
 c.LDAPAuthenticatorAuthState.auth_state_attributes = [
     "uid",
     "uidNumber",
-- 
GitLab