lists.arthurdejong.org
RSS feed

Re: Imprecise description for nslcd.conf "map"

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: Imprecise description for nslcd.conf "map"



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.

Hope this helps,

-- 
-- arthur - arthur@arthurdejong.org - https://arthurdejong.org/ --