RSS feed

Re: Using filter passwd

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

Re: Using filter passwd

Hello Arthur,

Yes that is exactly what I want to do.

But my hugo.test who don't have any host attribute gain access to the system.

nslcd: [b141f2] pam_authz_search "(&(objectClass=IT)(uid=hugo.test)(|(host=server1)(host=all)))" found no matches

I don't understand why.

Can this be an issue with pam ?



On 27 May 2011 13:17, Arthur de Jong <arthur [at]> wrote:
On Fri, 2011-05-27 at 12:28 +0200, Hugo Deprez wrote:
> It seems that if the filter return "no match found" loggin is accepted

This should not happen. If you provide a pam_authz_search option the
search should always be performed and access should be denied if no
match is found.

> If I give an attribute host=none to all the users without host
> atrribute, it match and access is denied.
> Is there a way to change this default behaviour ? I would like to
> avoid providing this attribute to all the users.

If you only want to grant access to your system to users that have the
host attribute set to the current hostname or "all" you could simply do:

pam_authz_search (&(objectClass=IT)(uid=$username)(|(host=$hostname)(host=all)))

-- arthur - arthur [at] - --

To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe [at] or see

To unsubscribe send an email to or see