winbindd GETPWNAM
Gerald (Jerry) Carter
jerry at samba.org
Mon Sep 8 20:41:24 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gerald (Jerry) Carter wrote:
> Herb Lewis wrote:
>> I was trying to setup samba to use idmap_ad with the rfc2307
>> schema. I had a user that had a primary group of Domain Users
>> but I did not give Domain Users a unix GID so instead I just
>> assigned a GID number for the user. I noticed that winbindd
>> did not retrieve this information for the GETPWNAM call but
>> instead tried to do a sid2gid call for the primary group SID.
>
>> I noticed that the idmap_ad module defined a get_nss_info
>> function that would have returned the proper information.
>> Why doesn't winbindd use that function if defined? I really
>> don't understand the purpose of the nss_get_info function.
>> What is it's intended use? Is there some documentation on
>> it somewhere?
>
> Set "winbind nss info = rfc2307" to pull the primary gid information.
> See the man page for details.
Sorry Herb. I skipped the last part of your mail by accident.
The nss_get_info() fills in the homedir, shell, and primary gid.
in the absense of an explicit primary gid, we pull in the gid for
the Windows primary group.
cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIxY30IR7qMdg1EfYRAk1LAJ45g5xUNOTITWYMK3wzRtsQ1LAB9gCglwjf
zQrec0MzP4GMZYaJQExFPLY=
=cb78
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list