ComputeCanada / puppet-jupyterhub

Puppet module to deploy a JupyterHub that submits job to Slurm
MIT License
11 stars 7 forks source link

PAM authentication not working #63

Open fraenki opened 1 month ago

fraenki commented 1 month ago

When using this module, PAM authentication does not seem to work out-of-the-box:

Sep 16 17:45:46 host.example.com unix_chkpwd[54472]: check pass; user unknown
Sep 16 17:45:46 host.example.com unix_chkpwd[54472]: password check failed for user (myuser)
Sep 16 17:45:46 host.example.com python3.9: pam_unix(jupyterhub-login:auth): authentication failure; logname= uid=990 euid=990 tty= ruser= rhost=  user=myuser

I've changed /usr/lib/systemd/system/jupyterhub.service to let the service run as root and this immediately fixed the issue. So there seems to be something missing for proper PAM authentication.

Is this a known issue? Any hints?

This was tested on Rocky 8 using the patch from https://github.com/ComputeCanada/puppet-jupyterhub/pull/60.