From: Björn Jacke Date: Mon, 11 May 2026 08:54:07 +0000 (+0200) Subject: samba-tool: fix documentation for timestamp format specifiers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66fec3d4ff0981456e8548ef8497a5137bbfa755;p=thirdparty%2Fsamba.git samba-tool: fix documentation for timestamp format specifiers BUG: https://bugzilla.samba.org/show_bug.cgi?id=16076 Signed-off-by: Bjoern Jacke Reviewed-by: Björn Baumbach Autobuild-User(master): Björn Jacke Autobuild-Date(master): Tue May 12 11:19:12 UTC 2026 on atb-devel-224 --- diff --git a/python/samba/netcmd/user/readpasswords/show.py b/python/samba/netcmd/user/readpasswords/show.py index 1cdec890faf..e2870d8dc35 100644 --- a/python/samba/netcmd/user/readpasswords/show.py +++ b/python/samba/netcmd/user/readpasswords/show.py @@ -58,7 +58,7 @@ by adding ";format=formatSpecifier" to the requested attribute name, whereby The following format specifiers are available: - GeneralizedTime (e.g. 20210224113259.0Z) - UnixTime (e.g. 1614166392) - - TimeSpec (e.g. 161416639.267546892) + - TimeSpec (e.g. 1614166392.267546892) Attributes with an original NTTIME value of 0 and 9223372036854775807 are treated as non-existing value. @@ -101,8 +101,10 @@ specified format: Option("--attributes", help=("Comma separated list of attributes, " "which will be printed. " - "Possible supported virtual attributes: " - "virtualGeneralizedTime, virtualUnixTime, virtualTimeSpec."), + "Possible format specifiers for timestamp attributes are: " + "GeneralizedTime, UnixTime, TimeSpec. The format specifier " + "needs to be appended like ';format=UnixTime' " + "to the desired attribute."), type=str, dest="user_attrs"), ]