1825694 Members
3279 Online
109686 Solutions
New Discussion

LDAP - create homedir

 
SGUX
Valued Contributor

LDAP - create homedir

Where/what can i configure so that for ldap-users homedirs are automatically created at first login ? I'm trying to configure an LDAP-client on my HP-UX 11.11 server. LDAP-server is a Linux-host running openLDAP.
6 REPLIES 6
Bill Thorsteinson
Honored Contributor

Re: LDAP - create homedir

/etc/profile could check for a valid
homedir and create it if needed.
It would need to create the directory and
copy /etc/skel in. /home or whereever
you create homes would need write acces by
users.

There is a PAM module to do the same,
but I am not sure if it is available for
HP-UX.
Bill Thorsteinson
Honored Contributor

Re: LDAP - create homedir

I would also consider automounting
from a home_server. Depending on your
user creation strategy, the home dir could
be create when the user is.
Bill Thorsteinson
Honored Contributor

Re: LDAP - create homedir

I would also consider automounting
from a home_server. Depending on your
user creation strategy, the home dir could
be created when the user is.
SGUX
Valued Contributor

Re: LDAP - create homedir

sorry, i was not precise enough. I was looking for the PAM-solution to create the homedir automatically when LDAP-users login for the first time. Found the libpam_mkdir.1 on the HP-UX Internet Express CD.
Add the line ;
login session optional /usr/lib/security/libpam_mkdir.1 skel=/etc/skel umask=022 to /etc/pam.conf but unfortunately this is not doin the job (yet) allthough according to HP this should work
SGUX
Valued Contributor

Re: LDAP - create homedir

Last update: because wedo not use telnet anymore ssh instead the following line also needed to be add to /etc/pam.conf ;
sshd session required /usr/lib/security/libpam_mkdir.1 skel=/etc/skel umask=022
of course skel and umask can be set as you like. This works fine !!!
SGUX
Valued Contributor

Re: LDAP - create homedir

add sshd line to /etc/pam.conf