Skip to content

Commit

Permalink
samba-tool: fix some grammar in getpassword docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Rob van der Linde <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: Douglas Bagnall <[email protected]>
  • Loading branch information
robvdl authored and douglasbagnall committed Dec 21, 2023
1 parent 113d2aa commit 72f0c99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/samba/netcmd/user/readpasswords/getpassword.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class cmd_user_getpassword(GetPasswordCommand):
The command must be run from the root user id or another authorized user id.
The '-H' or '--URL' option only supports ldapi:// or [tdb://] and can be
used to adjust the local path. By default tdb:// is used by default.
used to adjust the local path. By default, tdb:// is used.
The '--attributes' parameter takes a comma separated list of attributes,
which will be printed or given to the script specified by '--script'. If a
Expand All @@ -52,7 +52,7 @@ class cmd_user_getpassword(GetPasswordCommand):
virtualClearTextUTF16: The raw cleartext as stored in the
'Primary:CLEARTEXT' (or 'Primary:SambaGPG'
with '--decrypt-samba-gpg') buffer inside of the
with '--decrypt-samba-gpg') buffer inside the
supplementalCredentials attribute. This typically
contains valid UTF-16-LE, but may contain random
bytes, e.g. for computer and gMSA accounts.
Expand All @@ -71,7 +71,7 @@ class cmd_user_getpassword(GetPasswordCommand):
also be specified. By appending ";rounds=x" to the
attribute name i.e. virtualCryptSHA256;rounds=10000
will calculate a SHA256 hash with 10,000 rounds.
Non numeric values for rounds are silently ignored.
Non-numeric values for rounds are silently ignored.
The value is calculated as follows:
1) If a value exists in 'Primary:userPassword' with
the specified number of rounds it is returned.
Expand All @@ -89,7 +89,7 @@ class cmd_user_getpassword(GetPasswordCommand):
also be specified. By appending ";rounds=x" to the
attribute name i.e. virtualCryptSHA512;rounds=10000
will calculate a SHA512 hash with 10,000 rounds.
Non numeric values for rounds are silently ignored.
Non-numeric values for rounds are silently ignored.
The value is calculated as follows:
1) If a value exists in 'Primary:userPassword' with
the specified number of rounds it is returned.
Expand All @@ -111,7 +111,7 @@ class cmd_user_getpassword(GetPasswordCommand):
Kerberos keys from a UTF-8 cleartext password.
virtualSambaGPG: The raw cleartext as stored in the
'Primary:SambaGPG' buffer inside of the
'Primary:SambaGPG' buffer inside the
supplementalCredentials attribute.
See the 'password hash gpg key ids' option in
smb.conf.
Expand Down

0 comments on commit 72f0c99

Please sign in to comment.