Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2008 13:49:27 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        "Darek M." <darek@nyi.net>
Cc:        Jon Theil Nielsen <jontheil@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: LDAP user authentication?
Message-ID:  <20080218004927.GA48691@osiris.chen.org.nz>
In-Reply-To: <47B8B90D.4060609@nyi.net>
References:  <8f82c35c0802131110l7c678965qe6d0c3432f008254@mail.gmail.com> <47B8B90D.4060609@nyi.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 17, 2008 at 05:45:33PM -0500, Darek M. wrote:
> Jon Theil Nielsen wrote:
> >I have googled for a very long time, but I haven't found any useful
> >howto on this issue. Well, there is
> >http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html
> >but that seems to be a bit confusing an not up-to-date. I guess it
> >_should_ be possible - and indeed very useful (especially combinde
> >with Samba PDC and an easily maintainlable mail server). So please, if
> >you have any experiences or knowledge of a useful description..!
> >
> >Regards,
> >Jon Theil Nielsen
> 
> At the risk of a thread-jack...
> 
> how are home directories handled?  Will 'user' have a home dir on the 
> local system?  I suppose once LDAP is set up properly, you can then 
> create the home dir, then chown it 'user', with 'user' not being a local 
> user and not in passwd/master.passwd files.  So when you chown/chgrp, 
> those commands go through pam/nss/ldap to retrieve the proper id and 
> name from the LDAP server?

There's security/pam_mkhomedir, which should do what you want.

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
                                                 - Edmond Blackadder III



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080218004927.GA48691>