samba-tool: Create NIS enabled users and unixHomeDirectory attribute
authorMarc Muehlfeld <mmuehlfeld@samba.org>
Sat, 31 Jan 2015 18:44:26 +0000 (19:44 +0100)
committerMarc Muehlfeld <mmuehlfeld@samba.org>
Tue, 3 Feb 2015 16:18:32 +0000 (17:18 +0100)
commit362cac25a744d2d5c6e01495d341969b863d7f12
tree47bb43c9d5eb0e14bb839b127b83f8ba5ec84b1f
parent7fd2401b7d08a0c74f34fb117c81c5b23ddae571
samba-tool: Create NIS enabled users and unixHomeDirectory attribute

Allow to create NIS enabled user accounts via 'samba-tool user add'.

To create NIS enabled accounts, the parameters
--uid-number=, --login-shell=, --unix-home=, --gid-number=
are mandatory. Because we didn't had a parameter to set unixHomeDirectory
yet, this patch also adds this feature.

'unixUserPassword: ABCD!efgh12345$67890' is added by default, when you
enable NIS on an account in ADUC. The same we do in samba-tool.

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

Signed-off-by: Marc Muehlfeld <mmuehlfeld@samba.org>
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Marc Muehlfeld <mmuehlfeld@samba.org>
Autobuild-Date(master): Tue Feb  3 17:18:32 CET 2015 on sn-devel-104
python/samba/netcmd/user.py
python/samba/samdb.py