)
class cmd_domainlevel(Command):
- """Raises domain and forest function levels."""
+ """Raises domain and forest function levels"""
synopsis = "(show | raise <options>)"
from samba.samdb import SamDB
class cmd_enableaccount(Command):
- """Enable an account."""
+ """Enables a user"""
synopsis = "enableaccount [username] [options]"
)
class cmd_export_keytab(Command):
- """Dumps kerberos keys of the domain into a keytab."""
+ """Dumps kerberos keys of the domain into a keytab"""
synopsis = "%prog export keytab <keytab>"
takes_optiongroups = {
class cmd_export(SuperCommand):
- """Dumps the sam of the domain we are joined to."""
+ """Dumps the sam of the domain we are joined to [server connection needed]"""
subcommands = {}
subcommands["keytab"] = cmd_export_keytab()
from samba.samdb import SamDB
class cmd_fsmo(Command):
- """Makes the targer DC transfer or seize a fsmo role"""
+ """Makes the targer DC transfer or seize a fsmo role [server connection needed]"""
synopsis = "(show | transfer <options> | seize <options>)"
class cmd_join(Command):
- """Joins domain as either member or backup domain controller."""
+ """Joins domain as either member or backup domain controller [server connection needed]"""
synopsis = "%prog join <domain> [BDC | MEMBER] [options]"
class cmd_machinepw(Command):
- """Get a machine password out of our SAM."""
+ """Gets a machine password out of our SAM"""
synopsis = "%prog machinepw <accountname>"
from samba.samdb import SamDB
class cmd_newuser(Command):
- """Create a new user."""
+ """Creates a new user"""
synopsis = "newuser [options] <username> [<password>]"
from samba.netcmd import Command, CommandError, Option
class cmd_pwsettings(Command):
- """Sets password settings.
+ """Sets password settings
Password complexity, history length, minimum password length, the minimum
and maximum password age) on a Samba4 server.
from samba.samdb import SamDB
class cmd_setexpiry(Command):
- """Set the expiration of a user account."""
+ """Sets the expiration of a user account"""
synopsis = "setexpiry [username] [options]"
from samba.samdb import SamDB
class cmd_setpassword(Command):
- """Change the password of a user."""
+ """(Re)sets the password on a user account"""
synopsis = "setpassword [username] [options]"
)
class cmd_time(Command):
- """Retrieve the time on a remote server."""
+ """Retrieve the time on a remote server [server connection needed]"""
synopsis = "%prog time <server-name>"
takes_optiongroups = {
class cmd_user(SuperCommand):
- """User management."""
+ """User management [server connection needed]"""
subcommands = {}
subcommands["add"] = cmd_user_add()
)
class cmd_vampire(Command):
- """Join and synchronise a remote AD domain to the local server."""
+ """Join and synchronise a remote AD domain to the local server [server connection needed]"""
synopsis = "%prog vampire [options] <domain>"
takes_optiongroups = {
/* main function table */
static const struct net_functable net_functable[] = {
- {"password", "change password\n", net_password, net_password_usage},
- {"join", "join a domain\n", net_join, net_join_usage},
+ {"password", "Changes/Sets the password on a user account [server connection needed]\n", net_password, net_password_usage},
+ {"join", "Joins a domain [server connection needed]\n", net_join, net_join_usage},
{"samdump", "dump the sam of a domain\n", net_samdump, net_samdump_usage},
{"samsync", "synchronise into the local ldb the sam of an NT4 domain\n", net_samsync_ldb, net_samsync_ldb_usage},
{"drs", "Implements functionality offered by repadmin.exe utility in Windows\n", net_drs, net_drs_usage},