pam auth via winbind, howto map primary group for users?

Posted by dr gonzo on Server Fault See other posts from Server Fault or by dr gonzo
Published on 2012-09-06T12:21:16Z Indexed on 2012/09/06 15:40 UTC
Read the original article Hit count: 286

I have unix users authenticating to an PDC (via winbind) and want to have the primary group of those users a local unix group (e.g. www-data).

users have the group "domain users" with gid 10006 (as the gid winbind mapping)

idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum groups = yes
winbind enum users = yes
winbind use default domain = yes
winbind nested groups = yes

but want that the primary group is 33 for all users (www-data)

how to achieve that?

© Server Fault or respective owner

Related posts about active-directory

Related posts about groups