I have configured a raspberry pi 4 running raspian to authenticate users using LDAP. The LDAP server is hosted elsewhere. I am able to log in to the system as an LDAP user, but the user has no home directory. To attempt to fix this, after some searching and reading, I attempted to use pam_mkhomedir
. To do this I added the following line to the file /etc/pam.d/login
:
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
However, when I log in as the test LDAP user (the same one as before, so this is not a first time login, in case that is important), there is still no home directory. Therefore my question is, how can I have a user home directory created automatically on Raspbian for LDAP users.