According to the ubuntu documentation you can do a mapping of domain users to local groups, I'm not sure if it is applicable to any OS, but it seems to use standard modules that should be on any *nix system.
From Ubuntu docs
Assign local groups to users
To assign local groups to a domain (ldap) user do the following edit
/etc/security/group.conf and add something like the following to it
(log in as a local user and run the groups command to verify what to
add):
*;*;*;Al0000-2400;audio,cdrom,dialout,floppy
In order to get the pam_group
module working you could create a file
like /usr/share/pam-configs/my_groups
:
Name: activate /etc/security/group.conf
Default: yes
Priority: 900
Auth-Type: Primary
Auth: required pam_group.so
and activate it by running pam-auth-update
.
This roughly equals
editing /etc/pam.d/common-auth
by hand and adding the following line
before any pam_ldap
and pam_krb5
settings:
auth required pam_group.so
You should now have local groups showing up for users logging in via gdm and ssh and can
verify this by executing id or groups.
Finalize
Just to make sure everything works, run the following:
pam-auth-update
/etc/init.d/nscd restart