Skip to content

Commit

Permalink
implement jupyterhub ldap intergration, #537
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Mar 18, 2023
1 parent 2e3de32 commit d1ae385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system/roles/service-jupyterhub/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
install_recommends: no
state: latest

- name: Install LDAP Authenticator Plugin for JupyterHub
pip:
name:
- jupyterhub-ldapauthenticator

- name: Configure JupyterHub service
template:
src: "{{ item.src }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
c.JupyterHub.bind_url = 'http://:{{ jupyterhub_port }}'
c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
c.LDAPAuthenticator.server_address = 'ldapi:///var/run/slapd/ldapi'
c.LDAPAuthenticator.use_ssl = False
c.LDAPAuthenticator.bind_dn_template = ["uid={username},ou=People,dc=gis,dc=lab"]

0 comments on commit d1ae385

Please sign in to comment.