summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2019-03-21 14:15:22 +0100
committerAndrew Bartlett <abartlet@samba.org>2019-07-04 02:07:20 +0000
commitaa9dbee265604c1f9179e7d10b9ed677cb38bd64 (patch)
tree64f44fe799cfcfe0f1f634c7b4276247e777593a /python
parent9d40b08ae3417309fe672e654bf6c35db54dd3dc (diff)
downloadsamba-aa9dbee265604c1f9179e7d10b9ed677cb38bd64.tar.gz
samba-tool: fix format of command description (help messages)
Need to quote the backslash '\'. Signed-off-by: Björn Baumbach <bb@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/computer.py6
-rw-r--r--python/samba/netcmd/group.py10
-rw-r--r--python/samba/netcmd/ou.py4
-rw-r--r--python/samba/netcmd/schema.py2
-rw-r--r--python/samba/netcmd/user.py14
5 files changed, 18 insertions, 18 deletions
diff --git a/python/samba/netcmd/computer.py b/python/samba/netcmd/computer.py
index ff4c3979e78..81b401db9b3 100644
--- a/python/samba/netcmd/computer.py
+++ b/python/samba/netcmd/computer.py
@@ -181,7 +181,7 @@ accounts are also referred to as security principals and are assigned a
security identifier (SID).
Example1:
-samba-tool computer create Computer1 -H ldap://samba.samdom.example.com \
+samba-tool computer create Computer1 -H ldap://samba.samdom.example.com \\
-Uadministrator%passw1rd
Example1 shows how to create a new computer in the domain against a remote LDAP
@@ -323,7 +323,7 @@ userid. The -H or --URL= option can be used to execute the command against
a remote server.
Example1:
-samba-tool computer delete Computer1 -H ldap://samba.samdom.example.com \
+samba-tool computer delete Computer1 -H ldap://samba.samdom.example.com \\
-Uadministrator%passw1rd
Example1 shows how to delete a computer in the domain against a remote LDAP
@@ -450,7 +450,7 @@ The -H or --URL= option can be used to execute the command against a remote
server.
Example1:
-samba-tool computer show Computer1 -H ldap://samba.samdom.example.com \
+samba-tool computer show Computer1 -H ldap://samba.samdom.example.com \\
-U administrator
Example1 shows how display a computers attributes in the domain against a
diff --git a/python/samba/netcmd/group.py b/python/samba/netcmd/group.py
index 3d55222e8d0..6976f82d132 100644
--- a/python/samba/netcmd/group.py
+++ b/python/samba/netcmd/group.py
@@ -444,7 +444,7 @@ class cmd_group_move(Command):
server.
Example1:
- samba-tool group move Group1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \
+ samba-tool group move Group1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \\
-H ldap://samba.samdom.example.com -U administrator
Example1 shows how to move a group Group1 into the 'OrgUnit' organizational
@@ -522,11 +522,11 @@ The -H or --URL= option can be used to execute the command against a remote
server.
Example1:
-samba-tool group show Group1 -H ldap://samba.samdom.example.com \
--U administrator --password=passw1rd
+samba-tool group show Group1 -H ldap://samba.samdom.example.com \\
+ -U administrator --password=passw1rd
-Example1 shows how to display a group's attributes in the domain against a remote
-LDAP server.
+Example1 shows how to display a group's attributes in the domain against a
+remote LDAP server.
The -H parameter is used to specify the remote target server.
diff --git a/python/samba/netcmd/ou.py b/python/samba/netcmd/ou.py
index 38be3cea22e..a715a5bee13 100644
--- a/python/samba/netcmd/ou.py
+++ b/python/samba/netcmd/ou.py
@@ -38,7 +38,7 @@ class cmd_rename(Command):
or without the domainDN component.
Examples:
- samba-tool ou rename 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \
+ samba-tool ou rename 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \\
'OU=NewNameOfOrgUnit,DC=samdom,DC=example,DC=com'
samba-tool ou rename 'OU=OrgUnit' 'OU=NewNameOfOrgUnit'
@@ -102,7 +102,7 @@ class cmd_move(Command):
or without the domainDN component.
Examples:
- samba-tool ou move 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \
+ samba-tool ou move 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \\
'OU=NewParentOfOrgUnit,DC=samdom,DC=example,DC=com'
samba-tool ou rename 'OU=OrgUnit' 'OU=NewParentOfOrgUnit'
diff --git a/python/samba/netcmd/schema.py b/python/samba/netcmd/schema.py
index 889dd3fb539..d322da015ae 100644
--- a/python/samba/netcmd/schema.py
+++ b/python/samba/netcmd/schema.py
@@ -38,7 +38,7 @@ class cmd_schema_attribute_modify(Command):
so be sure to view the current content before making changes.
Example1:
- samba-tool schema attribute modify uid \
+ samba-tool schema attribute modify uid \\
--searchflags="fATTINDEX,fPRESERVEONDELETE"
This alters the uid attribute to be indexed and to be preserved when
diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py
index 8ead8e583f3..a64d2176dfa 100644
--- a/python/samba/netcmd/user.py
+++ b/python/samba/netcmd/user.py
@@ -291,8 +291,8 @@ samba-tool user create User4 passw4rd --rfc2307-from-nss --gecos 'some text'
Example4 shows how to create a new user with Unix UID, GID and login-shell set from the local NSS and GECOS set to 'some text'.
Example5:
-samba-tool user create User5 passw5rd --nis-domain=samdom --unix-home=/home/User5 \
- --uid-number=10005 --login-shell=/bin/false --gid-number=10000
+samba-tool user create User5 passw5rd --nis-domain=samdom --unix-home=/home/User5 \\
+ --uid-number=10005 --login-shell=/bin/false --gid-number=10000
Example5 shows how to create an RFC2307/NIS domain enabled user account. If
--nis-domain is set, then the other four parameters are mandatory.
@@ -2389,8 +2389,8 @@ The -H or --URL= option can be used to execute the command against a remote
server.
Example1:
-samba-tool user edit User1 -H ldap://samba.samdom.example.com \
--U administrator --password=passw1rd
+samba-tool user edit User1 -H ldap://samba.samdom.example.com \\
+ -U administrator --password=passw1rd
Example1 shows how to edit a users attributes in the domain against a remote
LDAP server.
@@ -2522,8 +2522,8 @@ The -H or --URL= option can be used to execute the command against a remote
server.
Example1:
-samba-tool user show User1 -H ldap://samba.samdom.example.com \
--U administrator --password=passw1rd
+samba-tool user show User1 -H ldap://samba.samdom.example.com \\
+ -U administrator --password=passw1rd
Example1 shows how to display a users attributes in the domain against a remote
LDAP server.
@@ -2603,7 +2603,7 @@ class cmd_user_move(Command):
server.
Example1:
- samba-tool user move User1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \
+ samba-tool user move User1 'OU=OrgUnit,DC=samdom.DC=example,DC=com' \\
-H ldap://samba.samdom.example.com -U administrator
Example1 shows how to move a user User1 into the 'OrgUnit' organizational