Hi, I am using winbind with nsswitch to resolve user and group information from an AD. I was under the impression that the "template primary group" directive would set the primary group of winbind users coming from the AD, but after rereading smb.conf(5) man page, I can see that this directive apply only to local accounts (that is, those that exist only in winbind and not in the AD). My problem is that I would like to set winbind user's primary group to a specific group from the local /etc/group. Is this possible at all ? Otherwise, any alternative to tweak winbind user's group membership ? Running samba-3.0.10-1.4E on RHEL 4. Thanks ! Etienne Goyer
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Etienne Goyer wrote: | My problem is that I would like to set winbind | user's primary group to a specific group from | the local /etc/group. Is this possible at all ? | Otherwise, any alternative to tweak winbind | user's group membership ? You'll need to modify the winbindd's source code yourself. It's pretty easy. Look in nsswitch/winbindd_user.c:winbindd_getpwnam(). You'll also need to fixc the cooresponding getpwuid() call. cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqY4/IR7qMdg1EfYRAswMAKCTkiHIFgcnQkZe/pVocnav2tIJbgCg2dF9 zd5AgwcKZlIvfMV+avtg4wg=VTpl -----END PGP SIGNATURE-----