]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool: document that -H can be used with gMSA accounts
authorRob van der Linde <rob@catalyst.net.nz>
Fri, 15 Dec 2023 02:12:42 +0000 (15:12 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 21 Dec 2023 02:05:38 +0000 (02:05 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/user/readpasswords/getpassword.py

index e9d637e770118de03bd7d3e0151210c053395a4c..df1eab8abf13acb7dae98924b326fc9814ccd26d 100644 (file)
@@ -40,8 +40,10 @@ The username specified on the command is the sAMAccountName.
 The username may also be specified using the --filter option.
 
 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.
+The '-H' or '--URL' option normally only supports ldapi:// or [tdb://] and
+can be used to adjust the local path. By default, tdb:// is used.
+if the target account is a group managed service account, then in this
+case the -H can point to a remote AD DC LDAP server.
 
 The '--attributes' parameter takes a comma separated list of attributes,
 which will be printed or given to the script specified by '--script'. If a
@@ -56,6 +58,11 @@ for which virtual attributes are supported in your environment):
                           supplementalCredentials attribute. This typically
                           contains valid UTF-16-LE, but may contain random
                           bytes, e.g. for computer and gMSA accounts.
+                          When the account is a group managed service account,
+                          and the user is permitted to access
+                          msDS-ManagedPassword then the current and previous
+                          password can be read over LDAP. Add ;previous=1
+                          to read the previous password.
 
    virtualClearTextUTF8:  As virtualClearTextUTF16, but converted to UTF-8
                           (invalid UTF-16-LE is mapped in the same way as