netcmd: user: readpasswords: move common.py to readpasswords
[Samba.git] / python / samba / netcmd / user / __init__.py
blobe0a0904ae61ffec908fdde0217d1f94eb47ea9fe
1 # user management
3 # Copyright Jelmer Vernooij 2010 <jelmer@samba.org>
4 # Copyright Theresa Halloran 2011 <theresahalloran@gmail.com>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 from samba.netcmd import SuperCommand
22 from .add import cmd_user_add
23 from .add_unix_attrs import cmd_user_add_unix_attrs
24 from .delete import cmd_user_delete
25 from .disable import cmd_user_disable
26 from .edit import cmd_user_edit
27 from .enable import cmd_user_enable
28 from .getgroups import cmd_user_getgroups
29 from .list import cmd_user_list
30 from .move import cmd_user_move
31 from .password import cmd_user_password
32 from .readpasswords import (cmd_user_getpassword, cmd_user_show,
33 cmd_user_syncpasswords)
34 from .rename import cmd_user_rename
35 from .sensitive import cmd_user_sensitive
36 from .setexpiry import cmd_user_setexpiry
37 from .setpassword import cmd_user_setpassword
38 from .setprimarygroup import cmd_user_setprimarygroup
39 from .unlock import cmd_user_unlock
42 class cmd_user(SuperCommand):
43 """User management."""
45 subcommands = {}
46 subcommands["add"] = cmd_user_add()
47 subcommands["create"] = cmd_user_add()
48 subcommands["delete"] = cmd_user_delete()
49 subcommands["disable"] = cmd_user_disable()
50 subcommands["enable"] = cmd_user_enable()
51 subcommands["list"] = cmd_user_list()
52 subcommands["setexpiry"] = cmd_user_setexpiry()
53 subcommands["password"] = cmd_user_password()
54 subcommands["getgroups"] = cmd_user_getgroups()
55 subcommands["setprimarygroup"] = cmd_user_setprimarygroup()
56 subcommands["setpassword"] = cmd_user_setpassword()
57 subcommands["getpassword"] = cmd_user_getpassword()
58 subcommands["syncpasswords"] = cmd_user_syncpasswords()
59 subcommands["edit"] = cmd_user_edit()
60 subcommands["show"] = cmd_user_show()
61 subcommands["move"] = cmd_user_move()
62 subcommands["rename"] = cmd_user_rename()
63 subcommands["unlock"] = cmd_user_unlock()
64 subcommands["addunixattrs"] = cmd_user_add_unix_attrs()
65 subcommands["sensitive"] = cmd_user_sensitive()