[PATCH] samba-tool: Create NIS enabled users and unixHomeDirectory attribute

Marc Muehlfeld mmuehlfeld at samba.org
Thu Oct 30 14:42:30 MDT 2014


Hello,

a few weeks ago I submitted a patch that allows samba-tool to create NIS
enabled groups (it's already in master) . Now I was asked on the Samba
Mailing list to provide this feature for user accounts, too.

Example usage:
# samba-tool user add demo30 password --nis-domain=samdom
--unix-home=/home/demo30 --uid-number=13030 --login-shell=/bin/bash
--gid-number=10099

If --nis-domain was given, then the other four parameters are mandatory
(like in ADUC). If it's not set, then they are optional and
all/some/none of them can be set, like before. I'm not sure, if this
makes sense, but it would not break existing scripts from users if e. g.
just some of this four attributes are given.

https://bugzilla.samba.org/show_bug.cgi?id=10909

Attached is the patch. Please review and push, if OK.
Thanks.


Regards,
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-samba-tool-Create-NIS-enabled-users-and-unixHomeDire.patch
Type: text/x-patch
Size: 6569 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141030/59f68b85/attachment.bin>


More information about the samba-technical mailing list