Bug 4952 - gid is not used
Summary: gid is not used
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.25c
Hardware: x86 Windows XP
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2007-09-03 08:55 UTC by ucchi@griffin.dyndns.org
Modified: 2007-09-03 08:55 UTC (History)
0 users

See Also:


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){


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

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