.gitlab-ci-main.yml: Add safe.directory '*'
[Samba.git] / python / samba / netcmd / user / __init__.py
blobfab657c2278fbcbeca7954edd99adcb24da2a4d5
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 .auth import cmd_user_auth
25 from .delete import cmd_user_delete
26 from .disable import cmd_user_disable
27 from .edit import cmd_user_edit
28 from .enable import cmd_user_enable
29 from .getgroups import cmd_user_getgroups
30 from .list import cmd_user_list
31 from .move import cmd_user_move
32 from .password import cmd_user_password
33 from .readpasswords import (cmd_user_getpassword,
34 cmd_user_show,
35 cmd_user_syncpasswords,
36 cmd_user_get_kerberos_ticket)
37 from .rename import cmd_user_rename
38 from .sensitive import cmd_user_sensitive
39 from .setexpiry import cmd_user_setexpiry
40 from .setpassword import cmd_user_setpassword
41 from .setprimarygroup import cmd_user_setprimarygroup
42 from .unlock import cmd_user_unlock
45 class cmd_user(SuperCommand):
46 """User management."""
48 subcommands = {}
49 subcommands["auth"] = cmd_user_auth()
50 subcommands["add"] = cmd_user_add()
51 subcommands["create"] = cmd_user_add()
52 subcommands["delete"] = cmd_user_delete()
53 subcommands["disable"] = cmd_user_disable()
54 subcommands["enable"] = cmd_user_enable()
55 subcommands["list"] = cmd_user_list()
56 subcommands["setexpiry"] = cmd_user_setexpiry()
57 subcommands["password"] = cmd_user_password()
58 subcommands["getgroups"] = cmd_user_getgroups()
59 subcommands["setprimarygroup"] = cmd_user_setprimarygroup()
60 subcommands["setpassword"] = cmd_user_setpassword()
61 subcommands["getpassword"] = cmd_user_getpassword()
62 subcommands["get-kerberos-ticket"] = cmd_user_get_kerberos_ticket()
63 subcommands["syncpasswords"] = cmd_user_syncpasswords()
64 subcommands["edit"] = cmd_user_edit()
65 subcommands["show"] = cmd_user_show()
66 subcommands["move"] = cmd_user_move()
67 subcommands["rename"] = cmd_user_rename()
68 subcommands["unlock"] = cmd_user_unlock()
69 subcommands["addunixattrs"] = cmd_user_add_unix_attrs()
70 subcommands["sensitive"] = cmd_user_sensitive()