--On Monday, September 22, 2014 01:28:25 PM -0700 Frans Lanting - IT Admin itadmin@lanting.com wrote:
Hi Folks,
We are using an external OpenLDAP to authenticate users on a FreeBSD server and would like to re-map the NFSHomeDirectory to a different location.
Currently that value looks like:
/afs/home.example.com/users/t/jsmith
We'd like to map it to something along the lines of:
/users/jsmith
If anyone could please point me in the right direction of how to do this, I'd be much appreciated.
Cheers, Dan
We do this sort of mucking around with the mapping capabilities of nss-pam-ldapd, http://arthurdejong.org/nss-pam-ldapd/. For example the following map should do what you want.
map passwd homeDirectory "${NFSHomeDirectory:-/home/$uid}"
Bill