[Samba] How do you configure a NIS group?
Marc Muehlfeld
mmuehlfeld at samba.org
Wed Oct 29 13:29:49 MDT 2014
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.
Regards,
Marc
More information about the samba
mailing list