[CentOS] ldap authentication

Kwan Lowe kwan.lowe at gmail.com
Thu Jul 9 09:30:29 UTC 2009


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,
>

The autodir package will do precisely that.  It's easy to setup too:

 yum -y install autodir
 mkdir /u

 Edit /etc/sysconfig/auto
      AUTOHOME_HOME=/home/ldapusers
      AUTOHOME_OPTIONS="realpath=/u,level=2,skel=/etc/skel,mode=0700"home

    service autohome start
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20090709/fac91781/attachment.html>


More information about the CentOS mailing list