lists.arthurdejong.org
RSS feed

Re: Add a filtered user to a group without changing his main group

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

Re: Add a filtered user to a group without changing his main group



On Fri, 2011-08-05 at 15:16 +0200, Pierre BLONDEAU wrote:
> I can't make this operation with PAM for two reason :
>  1 - I can't filter on group to add a new group ( not with squeeze )
>  2 - Even if I could by putting the PAM module update, it doesn't work
> with the allowGroups ssh directive.
> 
> I change the main group with a map directive but it's not really what i
> want to do.

I think the only option is to really add the user to the group (as a
member). There is no NSS module that I'm aware of that allows you to do
something like this. One option would be to define the group locally
(in /etc/group) and add the user there. This should still work for LDAP
users.

-- 
-- 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