Vincent Régnard
2007-May-18 10:16 UTC
[Samba] rids disappeared from net groupmap list output
Hi all, I used to see clearly rids in groupmaps whith my old 3.0.20. I am planning to switch to 3.0.25 but when I create the wellknowns and other groupmaps the same way as I did before, rid seams not to show up anymore: ** on 3.0.20 I can read my groupmap rids (512 here): root@pitux~# net groupmap list Domain Admins (S-1-5-21-362411026-3941723405-3168679234-512) -> smbadmin ** on 3.0.25: root@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@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) Is this a normal expected behaviour ? Or should I still have the rid appear as before ? Did I misuse the configuration tools or missed something ? Thanks for your comments. Vincent
Vincent Régnard
2007-May-18 10:55 UTC
[Samba] rids disappeared from net groupmap list output
Vincent R?gnard a ?crit :> ** on 3.0.25: > > root@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@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@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@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 ;)
Gerald (Jerry) Carter
2007-May-18 15:39 UTC
[Samba] rids disappeared from net groupmap list output
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vincent R?gnard wrote:> root@pitux-exercice:/tmp# net groupmap add > sid="S-1-5-21-774874489-2272698005-2144578956" rid=512 ntgroup="Domain > Admins" unixgroup="smbadmins" type=bWhen adding a nwe mapping, only define either the SID or the RID. Not both. This requirement has not changed. cheers, jerry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGTciuIR7qMdg1EfYRApPRAKDZl9k+VivTAnDwzyOogofMJ7YPuwCgonhc jZeT1qWeQS7UJjrevMWyT1U=3x2/ -----END PGP SIGNATURE-----