From: Björn Baumbach Date: Thu, 21 Mar 2019 13:15:22 +0000 (+0100) Subject: samba-tool: fix format of command description (help messages) X-Git-Tag: ldb-2.0.5~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa9dbee265604c1f9179e7d10b9ed677cb38bd64;p=thirdparty%2Fsamba.git samba-tool: fix format of command description (help messages) Need to quote the backslash '\'. Signed-off-by: Björn Baumbach Reviewed-by: Andrew Bartlett --- 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