[CentOS] ldap authentication

Thu Jul 9 09:20:52 UTC 2009
Seán O Sullivan <seanos at seanos.net>

2009/7/9 hqm8512 <hqm8512 at 126.com>:
> hello ,
> we're using LDAP for user authentication
>
> I'm looking for a mechanism to automatically create a users home directory
> when he logs in for the first time
> Thanks,

If using authconfig, can pass the --enablemkhomedir

This works by putting the following in /etc/pam.d/system-auth
session optional pam_mkhomedir.so


Seán