Bug 4952 - gid is not used
gid is not used
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts
3.0.25c
x86 Windows XP
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-03 08:55 UTC by ucchi@griffin.dyndns.org
Modified: 2007-09-03 08:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ucchi@griffin.dyndns.org 2007-09-03 08:55:20 UTC
I'm using FreeBSD-6.2 for samba PDC.
I'm using tdbsam for password backend.
I created some shell script to maintain unix users and groups.

My "add group script" prints a gid when a unix group was successfully created.
But the gid is not used by samba. 
So "net rpc vampire" could not map NT groups and Unix groups.

I think that following code should be fixed.
utils/net_rpc_samsync.c line 616

if ((grp = getgrnam(name)) == NULL){

is

if ((grp = getgrgid(gid)) == NULL){

I applied this to my samba, I think it works correctly.