[Samba] Group mapping is not showing correct value

Brajesh Shrivastava brajeshkumar_shrivas at symantec.com
Mon Jan 11 08:45:23 MST 2010


Hi All

I have created a group 'test' which has the following users:

 brajesh_01:/var/log/samba # getent group |grep test
test:!:13159:brajesh,yatish,usr1
brajesh_01:/var/log/samba #


I mapped this user to ntgroup user, 'Web Master':

brajesh_01:/var/log/samba # net  groupmap add ntgroup="We Master" 
unixgroup=test
No rid or sid specified, choosing a RID
Got RID 27319
Successfully added group We Master to the mapping db as a domain group
brajesh_01:/var/log/samba #

Output of 'net groupmap list' command shows the correct output:

brajesh_01:/var/log/samba # net groupmap list
We Master (S-1-5-21-3348154469-3767538395-1505805052-27319) -> test
brajesh_01:/var/log/samba #

But when I try to see the output of 'net rpc group members' command, it 
is giving an error message. Please see here:

brajesh_01:/var/log/samba # net rpc group members "Web Master"  -U 
administrator -d 1
Enter administrator's password:
Couldn't find group Web Master
[2010/01/11 10:35:33,  1] utils/net_rpc.c:run_rpc_command(181)
  rpc command function failed! (NT_STATUS_NONE_MAPPED)
brajesh_01:/var/log/samba #

I am new for group mapping feature. Please let me know where I am doing 
wrong.

Thanks in advance!!!


More information about the samba mailing list