Different location for home directory on jupyterhub server than in ldap, how to configure?

My jupyterhub server authenticates against ldap via pam. The ldap user dirs are mounted in /remote/home/

In ldap the users homedirs are in /home/

How should I configure jupyterhub to use /remote/home/ instead of /home/

Currently I can login, but spawning the notebooks fail due to this

What spawner are you using? Can you show us your full JupyterHub configuration with secrets redacted?

Do other user applications work on your server, e.g. if a user logs in remotely via SSH does everything work for them?