[Samba] How do you configure a NIS group?

Harry Jede walk2sun at arcor.de
Thu Oct 30 04:07:33 MDT 2014


On 11:02:36 wrote Marc Muehlfeld:
> Hello,
> 
> just an update to this thread:
> 
> Am 12.10.2014 um 12:23 schrieb steve:
> >> Done on a test DC, that uses nslcd:
> >> 
> >> # samba-tool group add demoGroup
> >> Added group demoGroup
> >> 
> >> 
> >> # ldbedit -H /usr/local/samba/private/sam.ldb 'CN=demoGroup'
> >> 
> >>     Add:
> >>       msSFU30NisDomain: samdom
> >>       gidNumber: 12345
> >> 
> >> 0 adds  2 modifies  0 deletes
> >> 
> >> 
> >> # samba-tool group addmembers demoGroup demo01
> >> Added members to group demoGroup
> >> 
> >> 
> >> # getent group demoGroup
> >> demoGroup:*:12345:demo01
> > 
> > So, how do you use samba-tool to add a NIS group as the OP asked?
> > You haven't. You've used ldbedit!
> 
> I've submitted a patch, that will be part of 4.2. It will allow you
> to add the attributes msSFU30NisDomain and gidNumber directly during
> group creation:
> 
> # samba-tool group add demoGroup --nis-domain=samdom
> --gid-number=12345
> 
> So the 'ldbedit' is not longer required then.
May be you wish to patch "samba-tool user add --nis-domain=samdom"

> 
> Regards,
> Marc


-- 

Regards
	Harry Jede


More information about the samba mailing list