Hi,
we would like to have the users login as their GID.
I set values.yaml
according to @manics’s ideas.
But @manics’s ideas were invalid in version z2jh:1.1.3
How shuld we change values.yaml ?
Thanks.
This is my values.yaml.
user.get_auth_state()
in LDAPAuthenticatorInfoUIDreturns.pre_spawn_start
returns None
. (src)
singleuser:
uid: 0
hub:
config:
Authenticator:
enable_auth_state: true
extraConfig:
uid_ldap: |
(https://gist.github.com/manics/c4bcf53a210d444db9e64db7673e8580#file-zero-to-jupyterhub-config-yml-L5-L473)
c.Authenticator.enable_auth_state = True
c.CryptKeeper.keys = [b'12165cfefacf75c49e82f10a3b2344aa2ec93e972c7e17c1f929c2188f26dbdd']
os.environ['JUPYTERHUB_CRYPT_KEY']='12165cfefacf75c49e82f10a3b2344aa2ec93e972c7e17c1f929c2188f26dbdd'
c.KubeSpawner.environment['JUPYTERHUB_CRYPT_KEY']='12165cfefacf75c49e82f10a3b2344aa2ec93e972c7e17c1f929c2188f26dbdd'
c.KubeSpawner.args = ['--allow-root']
c.KubeSpawner.environment["GRANT_SUDO"]="yes"
c.JupyterHub.authenticator_class = LDAPAuthenticatorInfoUID
c.LDAPAuthenticatorInfo.server_address = '<my-ldap-server-address>'
c.LDAPAuthenticatorInfo.use_ssl = False
c.LDAPAuthenticatorInfo.bind_dn_template = '<my-dn-template>'
# Must match LDAPAuthenticatorInfoUID.pre_spawn_start
c.LDAPAuthenticatorInfo.auth_state_attributes = ['uid', 'uidNumber']
User login as root, uid is 0(root).
(I’m trying to integrate only the uid as a confirmation.)
root@jupyter-ldap-2djupyter:~# id
uid=0(root) gid=0(root) groups=0(root),100(users)