summaryrefslogtreecommitdiff
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
* docs: Correct 'net ads dns unregister --help' descriptionAmit Kumar2019-07-031-1/+2
| | | | | | | | | | | | | | | | | | This change corrects the content of 'net ads dns unregister --help' command. Updated output would be: Usage: net ads dns unregister [hostname] Remove all IP Address entires for a given hostname from the Active Directory server. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14005 Signed-off-by: Amit Kumar <amitkuma@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jul 3 15:12:50 UTC 2019 on sn-devel-184
* net idmap check: correct spelling of --forceDouglas Bagnall2019-07-021-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* source3: Update all consumers of strtoul_err(), strtoull_err() to new APISwen Schillig2019-06-306-15/+23
| | | | | | Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* s3:utils: Use GnuTLS RC4 in npc_rpc_trustAndreas Schneider2019-06-271-7/+47
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* smbd: Remove unused brlock codeVolker Lendecke2019-06-202-42/+0
| | | | | | | No PENDING locks in brlock.tdb anymore. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3-smbcontrol: Replace && with || to declare variables in do_sleep()Anoop C S2019-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | --enable-developer internally use --enable-selftest alongside. But when configured only with --enable-selftest the following code block becomes invalid: #if defined(DEVELOPER) && defined(ENABLE_SELFTEST) unsigned int seconds; long input; const long MAX_SLEEP = 60 * 60; /* One hour maximum sleep */ #endif making those variables undeclared for further use. Therefore replace && with || to have those variables declared with --enable-selftest configure option. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Fri May 31 20:38:09 UTC 2019 on sn-devel-184
* s3:utils: Only declare variables if we're gonna use themAndreas Schneider2019-05-241-0/+2
| | | | | | | Found by covscan. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@samba.org>
* net: Return share name in correct case from net rpc conf showshareChristof Schmitt2019-05-231-3/+36
| | | | | Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:utils: If share is NULL in smbcacls, don't print itAndreas Schneider2019-05-081-2/+2
| | | | | | | Found by GCC 9. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:utils: If share is NULL in smbcquotas, don't print itAndreas Schneider2019-05-081-2/+2
| | | | | | | Found by GCC 9. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:utils: use struct initializer in async-tracker long_optionsRalph Boehme2019-04-291-2/+14
| | | | | | | | | | s3:utils: use struct initializer in async-tracker long_options The previous initializer list was missing a NULL as last element. Using struct initializers instead for correct initialisation. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3/lib: tevent-glib-glue test utiltity with TrackerRalph Boehme2019-04-241-0/+288
| | | | | | | | | A small utilitly useful for tesing the tevent_glib_glue code. It runs a tracker-sparql search query against your local tracker store that must be setup and running. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* utils: Use leases_db in smbstatusVolker Lendecke2019-04-141-9/+26
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* utils: Move conn_tdb.c to utils/Volker Lendecke2019-04-125-2/+227
| | | | | | | | | | That's a wrapper that only smbstatus and net status use by now. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Apr 12 00:37:05 UTC 2019 on sn-devel-144
* smbd: Remove some unused includesVolker Lendecke2019-04-111-1/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* build: Move smbstatus definition to source3/utils/wscript_buildVolker Lendecke2019-04-111-0/+19
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* utils: Update error check for new string conversion wrapperSwen Schillig2019-04-114-18/+7
| | | | | | | | | | | The new string conversion wrappers detect and flag errors which occured during the string to integer conversion. Those modifications required an update of the callees error checks. Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* s3:utils: Add 'smbstatus -L --resolve-uids' to show usernamesAndreas Schneider2019-03-271-3/+24
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13793 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* smbcacls: add -x argument, prints maximum accessRalph Boehme2019-03-041-0/+40
| | | | Signed-off-by: Ralph Boehme <slow@samba.org>
* utils: Use wrapper for string to integer conversionSwen Schillig2019-03-016-16/+39
| | | | | | | | | | | | In order to detect an value overflow error during the string to integer conversion with strtoul/strtoull, the errno variable must be set to zero before the execution and checked after the conversion is performed. This is achieved by using the wrapper function strtoul_err and strtoull_err. Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Ralph Böhme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:utils: Add missing NULL check in rpc_fetch_domain_aliases()Andreas Schneider2019-02-131-0/+4
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Feb 13 00:52:25 CET 2019 on sn-devel-144
* utils:libgpo: re-add libgpo as library, it should not be part of gpextGünther Deschner2019-01-281-1/+1
| | | | | | | | | | | It was initially removed in 78fd02cf31dfe72d596030f342aebefba1e72263 but is needed by the inf file parsing. Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bjoern Jacke <bjacke@samba.org>
* s3:utils: Use C99 initializer in functable in netAndreas Schneider2019-01-281-9/+15
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer in functable in net_lookupAndreas Schneider2019-01-281-10/+39
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for msg_types in smbcontrolAndreas Schneider2019-01-281-43/+168
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in mvxattrAndreas Schneider2019-01-281-6/+50
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in smbgetAndreas Schneider2019-01-281-19/+133
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in smbtreeAndreas Schneider2019-01-281-3/+24
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in netAndreas Schneider2019-01-281-50/+302
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in log2pcaphexAndreas Schneider2019-01-281-2/+16
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in testparmAndreas Schneider2019-01-281-6/+49
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in smbcquotasAndreas Schneider2019-01-281-14/+72
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in ntlm_authAndreas Schneider2019-01-281-22/+145
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in sharesecAndreas Schneider2019-01-281-15/+94
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in profilesAndreas Schneider2019-01-281-3/+24
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in nmblookupAndreas Schneider2019-01-281-10/+74
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in smbcaclsAndreas Schneider2019-01-281-16/+117
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils: Use C99 initializer for poptOption in smbstatusAndreas Schneider2019-01-281-12/+96
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3:utils:net: Print debug message about NetbiosJustin Stephenson2019-01-092-2/+10
| | | | | | | | | | | | | | | | | With a preceding patch, cli_connect_nb() will return NT_STATUS_NOT_SUPPORTED when 'disable netbios' is set in smb.conf. Print an informative error message to indicate Netbios is disabled if this occurs. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13727 Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Noel Power <nopower@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Wed Jan 9 22:38:21 CET 2019 on sn-devel-144
* s3: net: Do not set NET_FLAGS_ANONYMOUS with -kJustin Stephenson2019-01-081-2/+8
| | | | | | | | | | | | This affects net rpc getsid and net rpc changetrustpw commands. This avoids an anonymous IPC connection being made when -k is used, this only affects net rpc getsid and net rpc changetrustpw commands. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13726 Signed-off-by: Justin Stephenson <jstephen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* smbcacls: Use dom_sid_str_bufVolker Lendecke2018-12-201-1/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* net: Use dom_sid_str_bufVolker Lendecke2018-12-202-5/+11
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* utils: Add kerberos tracingSwen Schillig2018-12-191-4/+3
| | | | | | | | | | Replace kerberos context initialization from raw krb5_init_context() to smb_krb5_init_context_basic() which is adding common tracing as well. Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
* s3 smbcontrol: Add sleep commandGary Lockyer2018-12-191-0/+38
| | | | | | | | | | Add a sleep command that pauses the target process for the specified number of seconds This command is only enabled on developer and self test builds. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4 messaging: support smbcontrol inject fault commandGary Lockyer2018-12-191-4/+4
| | | | | | | | | | Add support of the smbcontrol inject fault command to the samba daemon. This is useful for manual testing of process restart etc. command is only enabled for developer and self test builds Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* net: Use dom_sid_str_bufVolker Lendecke2018-12-111-1/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* pdbedit: Use dom_sid_str_bufVolker Lendecke2018-12-111-2/+3
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* sharesec: Use dom_sid_str_bufVolker Lendecke2018-12-111-2/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* net: Use dom_sid_str_bufVolker Lendecke2018-12-116-17/+44
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* profiles: Use dom_sid_str_bufVolker Lendecke2018-12-111-10/+19
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>