Re: Question about map option
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: Question about map option
- From: Arthur de Jong <arthur [at] arthurdejong.org>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: Question about map option
- Date: Thu, 07 Jul 2011 19:51:51 +0200
On Tue, 2011-07-05 at 11:38 +0200, Bas van der Vlies wrote:
> But what i really want is only for some users/groups to override the
> homedirectory setting. Is this possible?
You could use something like:
map passwd homeDirectory "${homeDirectory:-/home_fs8/$uid}"
to use the homeDirectory attribute by default and only use the uid-based
one if it is absent. You could also do:
map passwd homeDirectory "${someatt:+/home_fs8/$uid}"
to use the mapping when someatt is present (and leave it blank
otherwise). You should be able to nest ${..:-..} and ${..:+..} to form
complex expressions.
Hope this helps. If you need a more powerful expression syntax, patches
that implement more features from the POSIX shell syntax (or similar)
are welcome.
--
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users