RSS feed

Re: Setting a default value with an alternative attribute

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

Re: Setting a default value with an alternative attribute

On Tue, 2012-10-16 at 16:20 -0700, Iain Morgan wrote:
> I have a few client systems which require special handling of the
> homeDirectory attribute. Most user accounts will actually share the
> same home directory, but there will be a few exceptions to this rule.
> I had planned to create a variant of the homeDirectory attribute to
> handle the exceptoins, homeDirectory;foo, and let nslcd supply a
> default value for the majority of the accounts.
> I had hoped that something like this would work:
>       map passwd homeDirectory "${homeDirectory;foo:-/home/something}"
> but this results in blank values for the home directories.

The expressions currently don't support attribute options but the
attached patch should fix that that. Can you test it?

> PS: Kudos on the clean design of nslcd. In particular, the syntax used
> in the config file is much better than I have seen in other clients.


-- arthur - - --

Attachment: nss-pam-ldapd-allow-attribute-options-in-attmap.diff
Description: Text Data

To unsubscribe send an email to or see