PAM: Install pam_mkhomedir for Automatic User Home Directory Creation
Introduction
You may be in a situation like mine where you have your Solaris connected to an LDAP server or similar, and you're facing the problem of automatic home directory creation for users who connect. After 2-3 hours of struggles, I finally managed to compile and configure everything.
Here's my documentation to save time for others who might face the same issue.
Prerequisites
First, you'll need a small package to avoid errors like this:
...
# Default definition for Session management# Used when service name is not explicitly mentioned for session management#othersessionrequiredpam_unix_session.so.1
othersessionrequiredpam_mkhomedir.so.1skel=/etc/skel/umask=0022...
You can now log in and you'll get this message on the first login of a user: