[PATCH] samba-tool: Create NIS enabled users and unixHomeDirectory attribute
mmuehlfeld at samba.org
Thu Oct 30 14:42:30 MDT 2014
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.
# samba-tool user add demo30 password --nis-domain=samdom
--unix-home=/home/demo30 --uid-number=13030 --login-shell=/bin/bash
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.
Attached is the patch. Please review and push, if OK.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6569 bytes
Desc: not available
More information about the samba-technical