s4:net utility - make outprinted description comments more consistent
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 9 May 2010 09:24:10 +0000 (11:24 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 9 May 2010 17:14:47 +0000 (19:14 +0200)
I've added a [server connection needed] when commands won't work on the local
SamDB.

14 files changed:
source4/scripting/python/samba/netcmd/domainlevel.py
source4/scripting/python/samba/netcmd/enableaccount.py
source4/scripting/python/samba/netcmd/export.py
source4/scripting/python/samba/netcmd/fsmo.py
source4/scripting/python/samba/netcmd/join.py
source4/scripting/python/samba/netcmd/machinepw.py
source4/scripting/python/samba/netcmd/newuser.py
source4/scripting/python/samba/netcmd/pwsettings.py
source4/scripting/python/samba/netcmd/setexpiry.py
source4/scripting/python/samba/netcmd/setpassword.py
source4/scripting/python/samba/netcmd/time.py
source4/scripting/python/samba/netcmd/user.py
source4/scripting/python/samba/netcmd/vampire.py
source4/utils/net/net.c

index ecd835ddd26482443cb076c8328978aa1f7f5a77..f7e67a2eda552e59f5bb2494b5040ee82e201e93 100644 (file)
@@ -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>)"
 
index 0e57b5714c451c8bcf032e18767bcd355148b60a..3849f60814e96ac2c30de464c1253a2f7a85d941 100644 (file)
@@ -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]"
 
index 9f1ff3d13387d2692652c2e9080980a3c4c3d33c..08fa4bf8dfc4949fdf49f8b8b26e131dffdb502c 100644 (file)
@@ -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()
index 688602012bc0aff605b6868d4ed32c1fa6215646..6b421fa214cf059c111b01ef462b63a847f9576c 100644 (file)
@@ -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>)"
 
index 981161d8ba97d79285af5edc6f2378963c0a4392..8438f755db07b02495cf33679556c5e7f5d79b52 100644 (file)
@@ -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]"
 
index 8788e06a60ab946aeadcd6396ddc85306535a65f..f156f9752ad04f1bf737fff75d81ee0364966fe2 100644 (file)
@@ -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>"
 
index 0d400bf74587d0c77710c7acae9ac12003399b47..9ffc0e6525468a8f4a1eaad2f99de4e8251b9cf6 100644 (file)
@@ -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>]"
 
index 8748bc5e0dbed269b9eb4b624f455a0b9c043238..3030248e4bd30ff19ec1d9a920e0df69f5fdb886 100644 (file)
@@ -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.
index b95192aa9cb2eb6ae25d75c4b283bfe8882493f2..c424c08ca8b84f074e1ed756c7a8abb63f2f6cbc 100644 (file)
@@ -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]"
 
index a1fe75c02990e5d7ae07c8459cae394f11895467..098b3cb9b89dc9d110127ba1bcc791400f760410 100644 (file)
@@ -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]"
 
index 163887a57edac5badafe5b8de3eb07484178692f..710f4b6d15e6262e5b7e08308765a9194764f405 100644 (file)
@@ -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 = {
index 54ddfe232281efea090e5ce1fb12cf0c53ee02dd..bf63b49b90577dd1be8e681804e21122c82eae81 100644 (file)
@@ -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()
index fcf969490a7de333fc9aa6a93a67100ffa2a9686..ffcfbce3d077327d6364fd503db09f97dce6623e 100644 (file)
@@ -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 = {
index 035413120437ba20c53f82eb5412044f02f7c819..5727b5308faf8ae6a6e7fb20b3fe9e0f08a6d1e8 100644 (file)
@@ -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},