Re: Imprecise description for nslcd.conf "map"
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: Imprecise description for nslcd.conf "map"
- From: Philip Prindeville <philipp_subx [at] redfish-solutions.com>
- To: Arthur de Jong <arthur [at] arthurdejong.org>
- Cc: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: Imprecise description for nslcd.conf "map"
- Date: Mon, 4 Mar 2024 10:10:15 -0700
> On Mar 3, 2024, at 5:37 AM, Arthur de Jong <arthur@arthurdejong.org> wrote:
>
> On Mon, 2024-02-26 at 12:59 -0700, Philip Prindeville wrote:
>> What I came up with was this, and I'm still not sure it's correct:
>>
>> if attribute == "uidNumber" || newattribute in ("gecos", "gidNumber",
>> "homeDirectory", "loginShell", "uidNumber", "userPassword")
>> put_quotes_around_new_attribute();
>
> This
>
> map homeDirectory something
>
> means that the something attribute will be queried in place of the
> homeDirectory attribute and the value stored in the LDAP server will be
> used. This is equivalent to:
>
> map homeDirectory "$something"
>
> or
>
> map homeDirectory "${something}"
>
> while
>
> map homeDirectory "something"
>
> will result in no attribute being requested from the LDAP server for
> the user's home directory and the literal value something will always
> be used.
What about something like:
map homeDirectory "/home/guest/${uid}"
Where an attribute is expanded inside a literal expression?
Thanks,
-Philip
>
> Hope this helps,
>
> --
> -- arthur - arthur@arthurdejong.org - https://arthurdejong.org/ --
>
- Re: Imprecise description for nslcd.conf "map", (continued)