asn/samba.git
2 years agoWHATSNEW: Improved cmdline user experience asn-cli-creds-full
Andreas Schneider [Thu, 17 Dec 2020 14:58:27 +0000 (15:58 +0100)]
WHATSNEW: Improved cmdline user experience

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:cmdline: Improve doxygen documentation
Andreas Schneider [Tue, 11 May 2021 07:13:51 +0000 (09:13 +0200)]
lib:cmdline: Improve doxygen documentation

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Remove unused manpage entities
Andreas Schneider [Wed, 7 Apr 2021 10:31:10 +0000 (12:31 +0200)]
docs-xml: Remove unused manpage entities

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update samba-tool manpage for option parser changes
Andreas Schneider [Wed, 7 Apr 2021 12:25:41 +0000 (14:25 +0200)]
docs-xml: Update samba-tool manpage for option parser changes

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agopython: Streamline option parser of python tools
Andreas Schneider [Wed, 7 Apr 2021 12:16:52 +0000 (14:16 +0200)]
python: Streamline option parser of python tools

The python tools, especially samba-tool should have the same option set
as the rest of the client utils.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Use new cmdline entities for traffic_replay.7 manpage
Andreas Schneider [Thu, 11 Feb 2021 13:46:18 +0000 (14:46 +0100)]
docs-xml: Use new cmdline entities for traffic_replay.7 manpage

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update winexe.1 manpage for new cmdline opition parser
Andreas Schneider [Thu, 11 Feb 2021 13:49:42 +0000 (14:49 +0100)]
docs-xml: Update winexe.1 manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agowinexe: Some code cleanup and fixes
Andreas Schneider [Thu, 8 Apr 2021 08:16:54 +0000 (10:16 +0200)]
winexe: Some code cleanup and fixes

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agowinexe: Use the new cmdline option parser
Andreas Schneider [Fri, 15 Jan 2021 15:34:55 +0000 (16:34 +0100)]
winexe: Use the new cmdline option parser

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14616

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:lib: Remove obsolete popt cmdline parser
Andreas Schneider [Thu, 14 Jan 2021 12:05:05 +0000 (13:05 +0100)]
s4:lib: Remove obsolete popt cmdline parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolibrpc:tools: Migrate ndrdump to new cmdline option parser
Andreas Schneider [Thu, 14 Jan 2021 10:03:12 +0000 (11:03 +0100)]
librpc:tools: Migrate ndrdump to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolibrpc:tools: Remove '-l' which conflicts with '-l|--log-basename'
Andreas Schneider [Fri, 15 Jan 2021 08:21:56 +0000 (09:21 +0100)]
librpc:tools: Remove '-l' which conflicts with '-l|--log-basename'

The common cmdline parser already provides '-l'.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update wbinfo.1 manpage for new cmdline opition parser
Andreas Schneider [Thu, 11 Feb 2021 13:35:40 +0000 (14:35 +0100)]
docs-xml: Update wbinfo.1 manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agonsswitch: Migrate wbinfo to new cmdline option parser
Andreas Schneider [Thu, 14 Jan 2021 09:53:35 +0000 (10:53 +0100)]
nsswitch: Migrate wbinfo to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolibcli:nbt: Migrate nmblookup4 to new cmdline option parser
Andreas Schneider [Thu, 14 Jan 2021 09:50:28 +0000 (10:50 +0100)]
libcli:nbt: Migrate nmblookup4 to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:utils: Migrate oLschema2ldif to new cmdline option parser
Andreas Schneider [Thu, 14 Jan 2021 09:43:33 +0000 (10:43 +0100)]
s4:utils: Migrate oLschema2ldif to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:registry: Migrate regpatch to new cmdline option parser
Andreas Schneider [Thu, 14 Jan 2021 08:23:25 +0000 (09:23 +0100)]
s4:registry: Migrate regpatch to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:registry: Migrate regtree to new cmdline option parser
Andreas Schneider [Thu, 14 Jan 2021 08:15:57 +0000 (09:15 +0100)]
s4:registry: Migrate regtree to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:registry: Migrate regdiff to new cmdline option parser
Andreas Schneider [Thu, 14 Jan 2021 07:59:34 +0000 (08:59 +0100)]
s4:registry: Migrate regdiff to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:registry: Migrate regshell to new cmdline option parser
Andreas Schneider [Fri, 18 Dec 2020 13:25:32 +0000 (14:25 +0100)]
s4:registry: Migrate regshell to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:ldb-samba: Migrate samba extensions to new cmdline option parser
Andreas Schneider [Wed, 2 Dec 2020 17:06:24 +0000 (18:06 +0100)]
lib:ldb-samba: Migrate samba extensions to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:ldb-samba: Use talloc_zero_array() and use ldb as the mem context
Andreas Schneider [Fri, 18 Dec 2020 07:38:22 +0000 (08:38 +0100)]
lib:ldb-samba: Use talloc_zero_array() and use ldb as the mem context

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:ldb-samba: Fix calculate_popt_array_length()
Andreas Schneider [Thu, 17 Dec 2020 18:16:13 +0000 (19:16 +0100)]
lib:ldb-samba: Fix calculate_popt_array_length()

This a avoids a memcmp which could calculate incorrect length.

This has been found by valgrind, we copied more than the array was long
...

==13008== 32 errors in context 3 of 3:
==13008== Conditional jump or move depends on uninitialised value(s)
==13008==    at 0x483FC93: bcmp (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13008==    by 0x79B673D: calculate_popt_array_length (samba_extensions.c:45)
==13008==    by 0x79B69DA: extensions_hook (samba_extensions.c:76)
==13008==    by 0x4855D5A: ldb_modules_hook (ldb_modules.c:254)
==13008==    by 0x488980E: ldb_cmdline_process_internal (cmdline.c:341)
==13008==    by 0x488A0F5: ldb_cmdline_process_search (cmdline.c:533)
==13008==    by 0x109DCE: main (ldbsearch.c:307)
==13008==  Uninitialised value was created by a stack allocation
==13008==    at 0x79B674B: extensions_hook (samba_extensions.c:53)

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:ldb: Use C99 initializers for builtin_popt_options[]
Andreas Schneider [Thu, 17 Dec 2020 10:56:08 +0000 (11:56 +0100)]
lib:ldb: Use C99 initializers for builtin_popt_options[]

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Migrate masktest to new cmdline option parser
Andreas Schneider [Thu, 17 Dec 2020 16:12:10 +0000 (17:12 +0100)]
s4:torture: Migrate masktest to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Migrate locktest to new cmdline option parser
Andreas Schneider [Thu, 17 Dec 2020 16:05:51 +0000 (17:05 +0100)]
s4:torture: Migrate locktest to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Change -U|--user to --user1 and --user2
Andreas Schneider [Thu, 17 Dec 2020 15:55:02 +0000 (16:55 +0100)]
s4:torture: Change -U|--user to --user1 and --user2

The '-U' option is already defined by the default cmdline parser!

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Migrate gentest to new cmdline option parser
Andreas Schneider [Thu, 17 Dec 2020 15:25:08 +0000 (16:25 +0100)]
s4:torture: Migrate gentest to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Change -U|--user to --user1 and --user2
Andreas Schneider [Thu, 17 Dec 2020 15:24:48 +0000 (16:24 +0100)]
s4:torture: Change -U|--user to --user1 and --user2

The '-U' option is already defined by the default cmdline parser!

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agotestprogs: Add smbtorture tests with new options
Andreas Schneider [Thu, 3 Dec 2020 07:02:58 +0000 (08:02 +0100)]
testprogs: Add smbtorture tests with new options

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Migrate smbtorture to new cmdline option parser
Andreas Schneider [Wed, 2 Dec 2020 16:24:22 +0000 (17:24 +0100)]
s4:torture: Migrate smbtorture to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Pass the pkinit ccache via a torture variable
Andreas Schneider [Wed, 16 Dec 2020 14:18:26 +0000 (15:18 +0100)]
s4:torture: Pass the pkinit ccache via a torture variable

Mixing -Uuser%password and --krb5-ccache doesn't really work on the
cmdline as -U overwrited the ccache.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: For NTLM make sure we have CRED_USE_KERBEROS_DESIRED
Andreas Schneider [Wed, 16 Dec 2020 09:56:23 +0000 (10:56 +0100)]
s4:torture: For NTLM make sure we have CRED_USE_KERBEROS_DESIRED

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Write better error on invalid cmdline option
Andreas Schneider [Wed, 9 Dec 2020 09:49:51 +0000 (10:49 +0100)]
s4:torture: Write better error on invalid cmdline option

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:torture: Remove unused include
Andreas Schneider [Wed, 2 Dec 2020 16:16:49 +0000 (17:16 +0100)]
s4:torture: Remove unused include

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:client: Migrate cifsdd to new cmdline option parser
Andreas Schneider [Fri, 18 Dec 2020 12:55:59 +0000 (13:55 +0100)]
s4:client: Migrate cifsdd to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agotestprogs: Use new kerberos options for smbclient(4) tests
Andreas Schneider [Thu, 19 Nov 2020 16:43:58 +0000 (17:43 +0100)]
testprogs: Use new kerberos options for smbclient(4) tests

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:client: Migrate smbclient4 to new cmdline option parser
Andreas Schneider [Thu, 19 Nov 2020 08:40:53 +0000 (09:40 +0100)]
s4:client: Migrate smbclient4 to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos4:client: Use a creds helper variable
Andreas Schneider [Thu, 19 Nov 2020 08:33:53 +0000 (09:33 +0100)]
s4:client: Use a creds helper variable

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:lib: Remove util_cmdline
Andreas Schneider [Wed, 13 Jan 2021 15:14:31 +0000 (16:14 +0100)]
s3:lib: Remove util_cmdline

                  _  /)
                 mo / )
                 |/)\)
                  /\_
                  \__|=
                 (    )
                 __)(__
           _____/      \\_____
          |  _     ___   _   ||
          | | \     |   | \  ||
          | |  |    |   |  | ||
          | |_/     |   |_/  ||
          | | \     |   |    ||
          | |  \    |   |    ||
          | |   \. _|_. | .  ||
          |                  ||
          |   1992 - 2021    ||
          |                  ||
  *       | *   **    * **   |**      **
   \))ejm97/.,(//,,..,,\||(,,.,\\,.((//

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:lib: Remove popt_samba3
Andreas Schneider [Wed, 13 Jan 2021 14:01:56 +0000 (15:01 +0100)]
s3:lib: Remove popt_samba3

                _|_
                 |
             .-'''''-.
          .-'    '-.
       .-'  :::::_:::::  '-.
   ___/ ==:...:::-:::...:== \___
  /_____________________________\
':'-._________________________.-'_
 ':::\ @-,`-[-][-^-][-]-`,-@ / _| |_
  '::| .-------------------. ||_ @ _|
   ::|=|*   ___  _  ___   *|=|'.| |
   ':| |'   ))_) )) ))_)  '| |::.^|
   _:|=|'  ((`\ (( ((     '|=|::::::.
 _| || |'        _        '| |:::::::.
|_   |=|'2003  _( )_  2021'|=|':::::.
  | || |' (   (_ ~ _)   ) '| | ':::'
  |^||=|*  )    (_)    (  *|=| '::'
     | '-------------------' .::::'
     |_____________________.::::::'
   .'___________________.::::::''
   |_______________.::::'':::'''
 .'_____________.::::::''::::''
            .:::''''     .'::::'
         .:::::''':.   .:::::'

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:libsmb: Use cli_credentials to store traversal creds
Andreas Schneider [Wed, 13 Jan 2021 15:11:17 +0000 (16:11 +0100)]
s3:libsmb: Use cli_credentials to store traversal creds

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update net manpage for new cmdline opition parser
Andreas Schneider [Tue, 19 Jan 2021 06:42:08 +0000 (07:42 +0100)]
docs-xml: Update net manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Use connection and credentials parser in net util
Andreas Schneider [Tue, 19 Jan 2021 06:49:26 +0000 (07:49 +0100)]
s3:utils: Use connection and credentials parser in net util

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Add cli_credentials and loadparm_context to net_context
Andreas Schneider [Thu, 1 Apr 2021 10:03:45 +0000 (12:03 +0200)]
s3:utils: Add cli_credentials and loadparm_context to net_context

Will be filled later.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate net to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 13:54:58 +0000 (14:54 +0100)]
s3:utils: Migrate net to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Remove '-l' for '--long' from net
Andreas Schneider [Wed, 13 Jan 2021 13:54:03 +0000 (14:54 +0100)]
s3:utils: Remove '-l' for '--long' from net

This conflicts with '--log-basename' from the commend cmdline parser.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agoexamples: Migrate smb2mount to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 13:49:07 +0000 (14:49 +0100)]
examples: Migrate smb2mount to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agoexamples: Pass cli_credentials to connect_one in smb2mount
Andreas Schneider [Wed, 13 Jan 2021 13:47:01 +0000 (14:47 +0100)]
examples: Pass cli_credentials to connect_one in smb2mount

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update smbtree manpage for new cmdline opition parser
Andreas Schneider [Tue, 19 Jan 2021 06:37:48 +0000 (07:37 +0100)]
docs-xml: Update smbtree manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate smbtree to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 13:43:17 +0000 (14:43 +0100)]
s3:utils: Migrate smbtree to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update smbcquotas manpage for new cmdline opition parser
Andreas Schneider [Tue, 19 Jan 2021 06:31:04 +0000 (07:31 +0100)]
docs-xml: Update smbcquotas manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate smbcquotas to the new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 13:38:17 +0000 (14:38 +0100)]
s3:utils: Migrate smbcquotas to the new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Rename --user to --quota-user in smbcquotas
Andreas Schneider [Wed, 13 Jan 2021 13:37:27 +0000 (14:37 +0100)]
s3:utils: Rename --user to --quota-user in smbcquotas

This conflicts with the common -U|--user option

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Use samba_cmdline_burn() in smbget
Andreas Schneider [Wed, 13 Jan 2021 13:23:31 +0000 (14:23 +0100)]
s3:utils: Use samba_cmdline_burn() in smbget

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update samba-regedit manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 15:52:48 +0000 (16:52 +0100)]
docs-xml: Update samba-regedit manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate samba-regedit to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 13:18:58 +0000 (14:18 +0100)]
s3:utils: Migrate samba-regedit to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update smbcacls manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 15:50:24 +0000 (16:50 +0100)]
docs-xml: Update smbcacls manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate smbcacls to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 13:04:04 +0000 (14:04 +0100)]
s3:utils: Migrate smbcacls to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Use cli_credentials in 'struct cacl_callback_state'
Andreas Schneider [Wed, 13 Jan 2021 13:07:02 +0000 (14:07 +0100)]
s3:utils: Use cli_credentials in 'struct cacl_callback_state'

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Pass cli_credentials to connect_one()
Andreas Schneider [Wed, 13 Jan 2021 13:00:56 +0000 (14:00 +0100)]
s3:utils: Pass cli_credentials to connect_one()

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update pdbedit manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 15:28:28 +0000 (16:28 +0100)]
docs-xml: Update pdbedit manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate pdbedit to the new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 12:42:53 +0000 (13:42 +0100)]
s3:utils: Migrate pdbedit to the new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update sharesec manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 14:42:39 +0000 (15:42 +0100)]
docs-xml: Update sharesec manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate sharesec to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 12:40:26 +0000 (13:40 +0100)]
s3:utils: Migrate sharesec to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Remove '-V' for '--viewsddl' from sharesec
Andreas Schneider [Mon, 18 Jan 2021 08:02:22 +0000 (09:02 +0100)]
s3:utils: Remove '-V' for '--viewsddl' from sharesec

The '-V' is already used for '-V|--version' in the common options.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate spilt_tokens to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 12:32:24 +0000 (13:32 +0100)]
s3:utils: Migrate spilt_tokens to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update smbcontrol manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 14:38:35 +0000 (15:38 +0100)]
docs-xml: Update smbcontrol manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate smbcontrol to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 12:28:11 +0000 (13:28 +0100)]
s3:utils: Migrate smbcontrol to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate dbwrap_torture to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 12:22:32 +0000 (13:22 +0100)]
s3:utils: Migrate dbwrap_torture to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update smbstatus manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 15:19:39 +0000 (16:19 +0100)]
docs-xml: Update smbstatus manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate smbstatus to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 12:18:23 +0000 (13:18 +0100)]
s3:utils: Migrate smbstatus to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update ntlm_auth manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 15:10:03 +0000 (16:10 +0100)]
docs-xml: Update ntlm_auth manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate ntlm_auth to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 09:57:36 +0000 (10:57 +0100)]
s3:utils: Migrate ntlm_auth to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:cmdline: Add a --configfile only parser for ntlm_auth
Andreas Schneider [Wed, 13 Jan 2021 09:56:41 +0000 (10:56 +0100)]
lib:cmdline: Add a --configfile only parser for ntlm_auth

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update mdfind manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 15:02:10 +0000 (16:02 +0100)]
docs-xml: Update mdfind manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate mdfind to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 09:44:57 +0000 (10:44 +0100)]
s3:utils: Migrate mdfind to new cmdline option parser

The signing_state is correctly handled by --client-protection now!

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update testparm manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 14:57:52 +0000 (15:57 +0100)]
docs-xml: Update testparm manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate testparm to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 08:54:52 +0000 (09:54 +0100)]
s3:utils: Migrate testparm to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:cmdline: Add a --option only parser for testparm
Andreas Schneider [Wed, 13 Jan 2021 08:57:19 +0000 (09:57 +0100)]
lib:cmdline: Add a --option only parser for testparm

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update nmblookup manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 14:50:54 +0000 (15:50 +0100)]
docs-xml: Update nmblookup manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate nmblookup to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 08:28:34 +0000 (09:28 +0100)]
s3:utils: Migrate nmblookup to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Remove duplicate '-R' option from nmblookup
Andreas Schneider [Wed, 13 Jan 2021 08:27:07 +0000 (09:27 +0100)]
s3:utils: Remove duplicate '-R' option from nmblookup

-R is already use for 'name-resolve'. The long option --recursive is
still working and available.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update dbwrap_tool manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 13:10:00 +0000 (14:10 +0100)]
docs-xml: Update dbwrap_tool manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate dbwrap_tool to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 08:16:31 +0000 (09:16 +0100)]
s3:utils: Migrate dbwrap_tool to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update profiles manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 09:29:33 +0000 (10:29 +0100)]
docs-xml: Update profiles manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate profiles to new cmdline option parser
Andreas Schneider [Tue, 12 Jan 2021 14:45:21 +0000 (15:45 +0100)]
s3:utils: Migrate profiles to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:utils: Migrate tevent_glib_tracker to new cmdline option parser
Andreas Schneider [Tue, 12 Jan 2021 11:58:24 +0000 (12:58 +0100)]
s3:utils: Migrate tevent_glib_tracker to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:torture: Migrate pdbtest to new cmdline option parser
Andreas Schneider [Tue, 12 Jan 2021 11:53:08 +0000 (12:53 +0100)]
s3:torture: Migrate pdbtest to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update vfstest manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 09:24:09 +0000 (10:24 +0100)]
docs-xml: Update vfstest manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:torture: Migrate vfstest to new cmdline option parser
Andreas Schneider [Tue, 12 Jan 2021 11:08:18 +0000 (12:08 +0100)]
s3:torture: Migrate vfstest to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:rpc_server: Migrate test_mdsparser_es to new cmdline option parser
Andreas Schneider [Wed, 13 Jan 2021 12:53:55 +0000 (13:53 +0100)]
s3:rpc_server: Migrate test_mdsparser_es to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:lib: Migrate smbconftort to new cmdline option parser
Andreas Schneider [Tue, 12 Jan 2021 10:59:58 +0000 (11:59 +0100)]
s3:lib: Migrate smbconftort to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:param: Migrate test_lp_load to new cmdline option parser
Andreas Schneider [Fri, 8 Jan 2021 07:27:19 +0000 (08:27 +0100)]
s3:param: Migrate test_lp_load to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:cmdline: Add SAMBA_CMDLINE_CONFIG_NONE
Andreas Schneider [Wed, 13 Jan 2021 08:56:41 +0000 (09:56 +0100)]
lib:cmdline: Add SAMBA_CMDLINE_CONFIG_NONE

This will prevent loading a config file. This will be needed for
testparm.

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agolib:cmdline: Add a debug only option
Andreas Schneider [Tue, 5 Jan 2021 13:23:27 +0000 (14:23 +0100)]
lib:cmdline: Add a debug only option

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agotestprogs: Add additional rpcclient tests for new cmdline options
Andreas Schneider [Wed, 2 Dec 2020 16:15:05 +0000 (17:15 +0100)]
testprogs: Add additional rpcclient tests for new cmdline options

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agotestprogs: Rename test_rpc_getusername_legacy()
Andreas Schneider [Wed, 2 Dec 2020 16:07:14 +0000 (17:07 +0100)]
testprogs: Rename test_rpc_getusername_legacy()

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agodocs-xml: Update rpcclient manpage for new cmdline opition parser
Andreas Schneider [Mon, 18 Jan 2021 09:04:47 +0000 (10:04 +0100)]
docs-xml: Update rpcclient manpage for new cmdline opition parser

Signed-off-by: Andreas Schneider <asn@samba.org>
2 years agos3:rpcclient: Migrate rpcclient to new cmdline option parser
Andreas Schneider [Tue, 1 Dec 2020 12:48:03 +0000 (13:48 +0100)]
s3:rpcclient: Migrate rpcclient to new cmdline option parser

Signed-off-by: Andreas Schneider <asn@samba.org>