Having some trouble implementing MultiAuthenticator with PAM and FirstUseAuthenticator. Eventually will add AzureAD and ORCID but for now I want to get initial admin account logged in before moving to Oauth. The reason for wanting to get the initial admin account logged in, it’s so that I can approve/promote new Oauth users to admin then deprecate firstuseauthenticator and PAM.
Created /opt/tljh/config/jupyterhub_config.d/Multiauthenticator.py and configured various authenticators e.g. FirstUseAuthenticator, PAM, generic-oauth (ORCID) and AzureAD.
On the PAM landing page I have sign-in with PAM button but no fields for credentials.
On the FirstUse page I enter credentials but for some reason username gets added but has : appended
e.g. “jupyter-:username”
Jun 11 17:06:18 python3[48231]: subprocess.CalledProcessError: Command '['useradd', '--create-home', 'jupyter-:username']' returned non-zero exit status 3.
Jun 11 17:06:18 python3[48231]:
Jun 11 17:06:18 1 python3[48231]: [E 2025-06-11 17:06:18.907 JupyterHub pages:312] Error starting server :username: Command '['useradd', '--create-home', 'jupyter-:username']' returned non-zero exit status 3.
Jun 11 17:06:18 svrlducklakemeta01 python3[48231]: Traceback (most recent call last):
Jun 11 17:06:18 svrlducklakemeta01 python3[48231]: NoneType: None
Jun 11 17:06:18 svrlducklakemeta01 python3[48231]:
Jun 11 17:06:18 svrlducklakemeta01 python3[48231]: [W 2025-06-11 17:06:18.907 JupyterHub web:1932] 500 GET /hub/spawn (172.18.27.55): Unhandled error starting server :username