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
Am Mon, 22 Sep 2014 13:28:25 -0700 schrieb Frans Lanting - IT Admin itadmin@lanting.com:
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.
man slapo-rwm(5)
-Dieter
Dieter Klünter wrote:
Am Mon, 22 Sep 2014 13:28:25 -0700 schrieb Frans Lanting - IT Admin itadmin@lanting.com:
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.
man slapo-rwm(5)
No. The rwm overlay only rewrites DN-valued attributes.
--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
openldap-technical@openldap.org