[Samba] rids disappeared from net groupmap list output

Vincent Régnard lists001 at regnard.org
Fri May 18 10:55:05 GMT 2007


Vincent Régnard a écrit :

> ** on 3.0.25:
> 
> root at pitux-exercice:/tmp# net groupmap add 
> sid="S-1-5-21-774874489-2272698005-2144578956" rid=512  ntgroup="Domain 
> Admins" unixgroup="smbadmins" type=b
> Successfully added group Domain Admins to the mapping db as a wellknown 
> group
> 
> But:
> root at pitux-exercice:/tmp# net groupmap list Domain Admins 
> (S-1-5-21-774874489-2272698005-2144578956) -> smbadmins
> 
> No rid shows up ? (same with type domain option)

After a few more tests, I realize I have to write explicitly the RID in 
the SID string to get it work properly:

root at pitux-exercice:/tmp# net groupmap add 
sid="S-1-5-21-774874489-2272698005-2144578956-512" ntgroup="Domain 
Admins" unixgroup="smbadmins" type=b

or this way also works:

root at pitux-exercice:/tmp# net groupmap add rid=512 ntgroup="Domain 
Admins" unixgroup="smbadmins" type=b

It was not clear to me at first glance but now works as expected ;)


More information about the samba mailing list