summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd/spn.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python/samba/netcmd/spn.py')
-rw-r--r--source4/scripting/python/samba/netcmd/spn.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/source4/scripting/python/samba/netcmd/spn.py b/source4/scripting/python/samba/netcmd/spn.py
index 614710c973c..0f01a49fc4a 100644
--- a/source4/scripting/python/samba/netcmd/spn.py
+++ b/source4/scripting/python/samba/netcmd/spn.py
@@ -33,11 +33,10 @@ from samba.netcmd import (
)
-
class cmd_spn_list(Command):
"""List spns of a given user."""
- synopsis = "%prog spn list <user> [options]"
+ synopsis = "%prog <user> [options]"
takes_args = ["user"]
@@ -71,11 +70,10 @@ class cmd_spn_list(Command):
raise CommandError("User %s not found" % user)
-
class cmd_spn_add(Command):
"""Create a new spn."""
- synopsis = "%prog spn add <name> <user> [options]"
+ synopsis = "%prog <name> <user> [options]"
takes_options = [
Option("--force", help="Force the addition of the spn"\
@@ -126,11 +124,10 @@ class cmd_spn_add(Command):
raise CommandError("User %s not found" % user)
-
class cmd_spn_delete(Command):
"""Delete a spn."""
- synopsis = "%prog spn delete <name> [user] [options]"
+ synopsis = "%prog <name> [user] [options]"
takes_args = ["name", "user?"]
@@ -181,7 +178,6 @@ class cmd_spn_delete(Command):
raise CommandError("Service principal %s not affected" % name)
-
class cmd_spn(SuperCommand):
"""Service Principal Name (SPN) management"""