mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:net utility - make outprinted description comments more consistent
I've added a [server connection needed] when commands won't work on the local SamDB.
This commit is contained in:
parent
b703481ef7
commit
ce4c0261f6
@ -47,7 +47,7 @@ from samba.dsdb import (
|
||||
)
|
||||
|
||||
class cmd_domainlevel(Command):
|
||||
"""Raises domain and forest function levels."""
|
||||
"""Raises domain and forest function levels"""
|
||||
|
||||
synopsis = "(show | raise <options>)"
|
||||
|
||||
|
@ -27,7 +27,7 @@ from samba.netcmd import Command, CommandError, Option
|
||||
from samba.samdb import SamDB
|
||||
|
||||
class cmd_enableaccount(Command):
|
||||
"""Enable an account."""
|
||||
"""Enables a user"""
|
||||
|
||||
synopsis = "enableaccount [username] [options]"
|
||||
|
||||
|
@ -28,7 +28,7 @@ from samba.netcmd import (
|
||||
)
|
||||
|
||||
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 = {
|
||||
@ -50,7 +50,7 @@ class cmd_export_keytab(Command):
|
||||
|
||||
|
||||
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()
|
||||
|
@ -32,7 +32,7 @@ from samba.netcmd import (
|
||||
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>)"
|
||||
|
||||
|
@ -26,7 +26,7 @@ from samba.dcerpc.netr import SEC_CHAN_WKSTA, SEC_CHAN_BDC
|
||||
|
||||
|
||||
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]"
|
||||
|
||||
|
@ -25,7 +25,7 @@ from samba.netcmd import Command, CommandError
|
||||
|
||||
|
||||
class cmd_machinepw(Command):
|
||||
"""Get a machine password out of our SAM."""
|
||||
"""Gets a machine password out of our SAM"""
|
||||
|
||||
synopsis = "%prog machinepw <accountname>"
|
||||
|
||||
|
@ -28,7 +28,7 @@ from samba.auth import system_session
|
||||
from samba.samdb import SamDB
|
||||
|
||||
class cmd_newuser(Command):
|
||||
"""Create a new user."""
|
||||
"""Creates a new user"""
|
||||
|
||||
synopsis = "newuser [options] <username> [<password>]"
|
||||
|
||||
|
@ -31,7 +31,7 @@ from samba.dcerpc.samr import DOMAIN_PASSWORD_COMPLEX
|
||||
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.
|
||||
|
@ -28,7 +28,7 @@ from samba.auth import system_session
|
||||
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]"
|
||||
|
||||
|
@ -28,7 +28,7 @@ from samba.auth import system_session
|
||||
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]"
|
||||
|
||||
|
@ -27,7 +27,7 @@ from samba.netcmd import (
|
||||
)
|
||||
|
||||
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 = {
|
||||
|
@ -68,7 +68,7 @@ class cmd_user_delete(Command):
|
||||
|
||||
|
||||
class cmd_user(SuperCommand):
|
||||
"""User management."""
|
||||
"""User management [server connection needed]"""
|
||||
|
||||
subcommands = {}
|
||||
subcommands["add"] = cmd_user_add()
|
||||
|
@ -29,7 +29,7 @@ from samba.netcmd import (
|
||||
)
|
||||
|
||||
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 = {
|
||||
|
@ -196,8 +196,8 @@ int net_run_usage(struct net_context *ctx,
|
||||
|
||||
/* 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},
|
||||
|
Loading…
Reference in New Issue
Block a user