metze/samba/wip.git
6 years agosetup s->parent = parent
Stefan Metzmacher [Sat, 1 Oct 2016 09:23:17 +0000 (11:23 +0200)]
setup s->parent = parent

6 years agofix smb_direct_listener_accept_recv ...
Stefan Metzmacher [Sat, 1 Oct 2016 09:22:38 +0000 (11:22 +0200)]
fix smb_direct_listener_accept_recv ...

6 years agoWIP pass fd to smbd
Ralph Boehme [Sat, 1 Oct 2016 08:06:46 +0000 (01:06 -0700)]
WIP pass fd to smbd

6 years agoDEBUG: add some nice debug message
Ralph Boehme [Sat, 1 Oct 2016 04:06:02 +0000 (21:06 -0700)]
DEBUG: add some nice debug message

6 years agoSUCCESS: smb-d negotiate request and response
Ralph Boehme [Sat, 1 Oct 2016 04:05:07 +0000 (21:05 -0700)]
SUCCESS: smb-d negotiate request and response

Commit: bfa44ad4bc1078713ce8c7685bf880f7fdcb6e2a

Trace: smb-d-step2.pcap

6 years agoWIP smb_direct_connection_negotatiate_accept_send/recv
Ralph Boehme [Sat, 1 Oct 2016 03:13:14 +0000 (20:13 -0700)]
WIP smb_direct_connection_negotatiate_accept_send/recv

6 years agoWIP
Ralph Boehme [Sat, 1 Oct 2016 02:24:17 +0000 (19:24 -0700)]
WIP

6 years agoneeded? ignore EAGAIN in from rdma_get_cm_event
Ralph Boehme [Fri, 30 Sep 2016 22:42:00 +0000 (15:42 -0700)]
needed? ignore EAGAIN in from rdma_get_cm_event

Working up to accepting RDMA connection. Next step is to read SMB-D nego
req and response.

Trace: smb-d-step1.pcap

Commit: e12b372d2d615256f86c0eee063c036c0645ad80

6 years agodisable smbd -i again
Ralph Boehme [Fri, 30 Sep 2016 22:41:41 +0000 (15:41 -0700)]
disable smbd -i again

6 years agoRevert "WIP move around fde"
Ralph Boehme [Fri, 30 Sep 2016 21:23:37 +0000 (14:23 -0700)]
Revert "WIP move around fde"

This reverts commit 99d84cbc9836e58fa54082a59b8f4e4cbb44f1b4.

6 years agoWIP move around fde
Ralph Boehme [Fri, 30 Sep 2016 21:23:02 +0000 (14:23 -0700)]
WIP move around fde

6 years agomake it work
Ralph Boehme [Fri, 30 Sep 2016 21:18:29 +0000 (14:18 -0700)]
make it work

6 years agoinline smb_direct_listener_accept_rdma_handler
Stefan Metzmacher [Fri, 30 Sep 2016 13:54:45 +0000 (15:54 +0200)]
inline smb_direct_listener_accept_rdma_handler

6 years agoimplicit channeimplicit channell
Stefan Metzmacher [Fri, 30 Sep 2016 13:54:24 +0000 (15:54 +0200)]
implicit channeimplicit channell

6 years agoHACK smbd -i
Stefan Metzmacher [Fri, 30 Sep 2016 13:54:03 +0000 (15:54 +0200)]
HACK smbd -i

6 years agomore
Stefan Metzmacher [Fri, 30 Sep 2016 13:53:41 +0000 (15:53 +0200)]
more

6 years agomore
Stefan Metzmacher [Fri, 30 Sep 2016 13:52:03 +0000 (15:52 +0200)]
more

6 years agosmb_direct_listener...
Stefan Metzmacher [Fri, 30 Sep 2016 08:16:06 +0000 (10:16 +0200)]
smb_direct_listener...

6 years agolibcli/smb/smb_direct.c move a bit
Stefan Metzmacher [Fri, 30 Sep 2016 08:05:12 +0000 (10:05 +0200)]
libcli/smb/smb_direct.c move a bit

6 years agosmb_direct_connection_rdma_connect_send rdma_create_id
Stefan Metzmacher [Fri, 30 Sep 2016 07:21:55 +0000 (09:21 +0200)]
smb_direct_connection_rdma_connect_send rdma_create_id

6 years agomore...
Stefan Metzmacher [Fri, 30 Sep 2016 06:29:31 +0000 (08:29 +0200)]
more...

6 years agoWIP daemon
Ralph Boehme [Fri, 30 Sep 2016 06:19:06 +0000 (23:19 -0700)]
WIP daemon

6 years agoWIP
Ralph Boehme [Fri, 30 Sep 2016 06:08:43 +0000 (23:08 -0700)]
WIP

6 years agomore...
Stefan Metzmacher [Fri, 30 Sep 2016 05:46:38 +0000 (07:46 +0200)]
more...

6 years agolibcli/smb/smb_direct.c
Stefan Metzmacher [Fri, 30 Sep 2016 04:24:26 +0000 (06:24 +0200)]
libcli/smb/smb_direct.c

6 years agob/async_req/async_sock.c libcli/smb/smbXcli_base.c debug
Stefan Metzmacher [Fri, 30 Sep 2016 04:10:34 +0000 (06:10 +0200)]
b/async_req/async_sock.c libcli/smb/smbXcli_base.c debug

6 years agolibcli/smb/smbXcli_base.c size..
Stefan Metzmacher [Fri, 30 Sep 2016 04:09:49 +0000 (06:09 +0200)]
libcli/smb/smbXcli_base.c size..

6 years agoHACK SMB_DIRECT_IO_MAX_DATA 1364
Stefan Metzmacher [Fri, 30 Sep 2016 00:57:35 +0000 (02:57 +0200)]
HACK SMB_DIRECT_IO_MAX_DATA 1364

6 years agolibcli/smb/smb_direct.c needed? post individual items
Stefan Metzmacher [Fri, 30 Sep 2016 00:56:56 +0000 (02:56 +0200)]
libcli/smb/smb_direct.c needed? post individual items

6 years agolibcli/smb/smbXcli_base.c smd_direct hacks
Stefan Metzmacher [Fri, 30 Sep 2016 00:56:16 +0000 (02:56 +0200)]
libcli/smb/smbXcli_base.c smd_direct hacks

6 years agomore libcli/smb/smb_direct.c
Stefan Metzmacher [Fri, 30 Sep 2016 00:56:02 +0000 (02:56 +0200)]
more libcli/smb/smb_direct.c

6 years agoWIP add debug
Ralph Boehme [Fri, 30 Sep 2016 04:25:59 +0000 (21:25 -0700)]
WIP add debug

6 years agoFIXUP smb_direct.c
Ralph Boehme [Fri, 30 Sep 2016 04:11:55 +0000 (21:11 -0700)]
FIXUP smb_direct.c

6 years agoFIXUP daemon
Ralph Boehme [Fri, 30 Sep 2016 04:11:48 +0000 (21:11 -0700)]
FIXUP daemon

6 years agomore tests required may workwith
Stefan Metzmacher [Thu, 29 Sep 2016 11:13:03 +0000 (13:13 +0200)]
more tests required may workwith

6 years agorevert libcli/smb/smbXcli_base.c
Stefan Metzmacher [Thu, 29 Sep 2016 10:53:28 +0000 (12:53 +0200)]
revert libcli/smb/smbXcli_base.c

6 years agoput doesn't work yet...
Stefan Metzmacher [Thu, 29 Sep 2016 08:45:34 +0000 (10:45 +0200)]
put doesn't work yet...

6 years agoHACK no debug libcli/smb/smb_direct.c
Stefan Metzmacher [Thu, 29 Sep 2016 08:44:10 +0000 (10:44 +0200)]
HACK no debug libcli/smb/smb_direct.c

6 years agolibcli/smb/smb_transport_tcp.c no debug
Stefan Metzmacher [Thu, 29 Sep 2016 08:35:34 +0000 (10:35 +0200)]
libcli/smb/smb_transport_tcp.c no debug

6 years agolibcli/smb/smb_direct.c retry ibv_poll_cq()
Stefan Metzmacher [Thu, 29 Sep 2016 08:19:24 +0000 (10:19 +0200)]
libcli/smb/smb_direct.c retry ibv_poll_cq()

6 years agoRevert "try to get next ... fails"
Stefan Metzmacher [Thu, 29 Sep 2016 08:03:04 +0000 (10:03 +0200)]
Revert "try to get next ... fails"

This reverts commit a5886bff5e7431e3735df07947c8cd4b6b2e72f4.

6 years agotry to get next ... fails
Stefan Metzmacher [Thu, 29 Sep 2016 08:02:46 +0000 (10:02 +0200)]
try to get next ... fails

6 years agodebug more...
Stefan Metzmacher [Thu, 29 Sep 2016 08:00:33 +0000 (10:00 +0200)]
debug more...

6 years agomore
Stefan Metzmacher [Thu, 29 Sep 2016 00:29:11 +0000 (02:29 +0200)]
more

6 years agoit almost works... we need to grant more credits...
Stefan Metzmacher [Wed, 28 Sep 2016 19:56:16 +0000 (21:56 +0200)]
it almost works... we need to grant more credits...

6 years agomore ...
Stefan Metzmacher [Wed, 28 Sep 2016 12:25:18 +0000 (14:25 +0200)]
more ...

6 years agolibcli/smb/smb_direct.c
Stefan Metzmacher [Wed, 28 Sep 2016 11:45:50 +0000 (13:45 +0200)]
libcli/smb/smb_direct.c

6 years agolibcli/smb/smb_transport_direct.c debug hacks
Stefan Metzmacher [Wed, 28 Sep 2016 11:44:57 +0000 (13:44 +0200)]
libcli/smb/smb_transport_direct.c debug hacks

6 years agolibcli/smb/smb_direct.c
Stefan Metzmacher [Wed, 28 Sep 2016 06:15:46 +0000 (08:15 +0200)]
libcli/smb/smb_direct.c

6 years agolibcli/smb/smb_transport_direct.c: state->hdr for send
Stefan Metzmacher [Wed, 28 Sep 2016 04:48:04 +0000 (06:48 +0200)]
libcli/smb/smb_transport_direct.c: state->hdr for send

6 years agoWIP
Ralph Boehme [Thu, 29 Sep 2016 19:36:53 +0000 (12:36 -0700)]
WIP

6 years agoFIUXP daemon
Ralph Boehme [Thu, 29 Sep 2016 05:43:29 +0000 (22:43 -0700)]
FIUXP daemon

6 years agos3/smbd: connect to smb_direct_daemon
Ralph Boehme [Wed, 28 Sep 2016 01:09:03 +0000 (18:09 -0700)]
s3/smbd: connect to smb_direct_daemon

6 years agolibcli/smb: smb-dd client API
Ralph Boehme [Tue, 27 Sep 2016 17:54:46 +0000 (10:54 -0700)]
libcli/smb: smb-dd client API

6 years agos3/smbd: start smb_direct_daemon
Ralph Boehme [Sun, 18 Sep 2016 15:28:37 +0000 (17:28 +0200)]
s3/smbd: start smb_direct_daemon

Pair-programmed-with: Stefan Metzmacher <metze@samba.org>

6 years agolibcli/smb: add smb_direct daemon infrastructure
Ralph Boehme [Sun, 18 Sep 2016 13:53:23 +0000 (15:53 +0200)]
libcli/smb: add smb_direct daemon infrastructure

Pair-programmed-with: Stefan Metzmacher <metze@samba.org>

6 years agolibcli: add a bunch of SMB-D related helper functions
Ralph Boehme [Tue, 27 Sep 2016 17:52:51 +0000 (10:52 -0700)]
libcli: add a bunch of SMB-D related helper functions

6 years agolibrpc: add initial idl for smb_direct_daemon
Ralph Boehme [Mon, 26 Sep 2016 17:13:29 +0000 (10:13 -0700)]
librpc: add initial idl for smb_direct_daemon

6 years agoHACK: fix cast to smb_direct_transport
Ralph Boehme [Sun, 18 Sep 2016 13:27:32 +0000 (15:27 +0200)]
HACK: fix cast to smb_direct_transport

6 years agoHACK: fix build
Ralph Boehme [Sun, 18 Sep 2016 10:27:07 +0000 (12:27 +0200)]
HACK: fix build

6 years agoSTEP:smbXcli_base: Revert "STEP:smbXcli_base: pass it DEBUG"
Stefan Metzmacher [Sat, 24 Aug 2013 09:26:35 +0000 (11:26 +0200)]
STEP:smbXcli_base: Revert "STEP:smbXcli_base: pass it DEBUG"

This reverts commit 8d782952da7796be840c1e04e1d5b51f2e935b23.

6 years agoSTEP:smbXcli_base: pass it DEBUG
Stefan Metzmacher [Thu, 27 Sep 2012 11:26:04 +0000 (13:26 +0200)]
STEP:smbXcli_base: pass it DEBUG

6 years agoSTEP:smbXcli_base: HACK smbXcli_base => smb_transport
Stefan Metzmacher [Thu, 27 Sep 2012 08:28:41 +0000 (10:28 +0200)]
STEP:smbXcli_base: HACK smbXcli_base => smb_transport

6 years agoRevert "STEP:smbsock_connect: pass it DEBUG"
Stefan Metzmacher [Sun, 17 Sep 2017 02:45:21 +0000 (04:45 +0200)]
Revert "STEP:smbsock_connect: pass it DEBUG"

This reverts commit cece8fefd39c4619df8b8b5a8ba8e45a31b6889a.

6 years agoSTEP:smbsock_connect: pass it DEBUG
Stefan Metzmacher [Thu, 27 Sep 2012 11:26:04 +0000 (13:26 +0200)]
STEP:smbsock_connect: pass it DEBUG

6 years agoSTEP:smbsock_connect: hack call smb_direct
Stefan Metzmacher [Sun, 16 Sep 2012 21:43:06 +0000 (23:43 +0200)]
STEP:smbsock_connect: hack call smb_direct

6 years agoSTEP:smb_transport_direct: TODO... smb_transport_direct...
Stefan Metzmacher [Fri, 10 Aug 2012 13:36:16 +0000 (15:36 +0200)]
STEP:smb_transport_direct: TODO... smb_transport_direct...

6 years agoSTEP:smb_transport: TODO: libcli/smb: add smb_transport*
Stefan Metzmacher [Fri, 21 Sep 2012 20:17:56 +0000 (22:17 +0200)]
STEP:smb_transport: TODO: libcli/smb: add smb_transport*

This is a generic abstraction for a transport that can be used
by our SMB1/2/3 code.

TODO: don't return the NBT header in smb_transport_read_pdu_recv
(smb_transport_tcp_read_pdu_recv), but that needs more work in
the callers...

6 years agodns: Check for talloc_memdup failure
Volker Lendecke [Thu, 31 May 2018 19:16:21 +0000 (21:16 +0200)]
dns: Check for talloc_memdup failure

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jun  1 14:05:56 CEST 2018 on sn-devel-144

6 years agodns: TALLOC_FREE already checks for !=NULL
Volker Lendecke [Thu, 31 May 2018 19:11:16 +0000 (21:11 +0200)]
dns: TALLOC_FREE already checks for !=NULL

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 years agodns: Simplify logic a bit
Volker Lendecke [Thu, 31 May 2018 18:57:36 +0000 (20:57 +0200)]
dns: Simplify logic a bit

We don't need a separate boolean variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 years agodns: Simplify logic a bit
Volker Lendecke [Thu, 31 May 2018 18:56:31 +0000 (20:56 +0200)]
dns: Simplify logic a bit

We've done an early return if (!found_tsig) a few lines before.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 years agodnsupdate: Fix a typo
Volker Lendecke [Wed, 30 May 2018 15:24:35 +0000 (17:24 +0200)]
dnsupdate: Fix a typo

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 years agoldb: Fix memory leak on module context
Lukas Slebodnik [Sat, 21 Oct 2017 13:09:01 +0000 (15:09 +0200)]
ldb: Fix memory leak on module context

Introduced in e8cdacc509016d9273d63faf334d9f827585c3eb

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

Signed-off-by: Lukas Slebodnik <lslebodn@fedoraproject.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jun  1 11:10:24 CEST 2018 on sn-devel-144

6 years agolib/audit_logging: Remove #ifdef HAVE_JANSSON from audit_logging_test binary
Andrew Bartlett [Thu, 31 May 2018 18:42:24 +0000 (06:42 +1200)]
lib/audit_logging: Remove #ifdef HAVE_JANSSON from audit_logging_test binary

Instead, we either build or do not build the entire binary.

This is much more likely to raise an error in make test if the build system
changes.  The concern is that HAVE_JANSSON can go away and the tests just vanish.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
6 years agolib/audit_logging: Make function prototypes look like the rest of Samba
Andrew Bartlett [Thu, 31 May 2018 20:56:53 +0000 (08:56 +1200)]
lib/audit_logging: Make function prototypes look like the rest of Samba

The previous style is needed sometimes to avoid an 80-col limit, but
is not how most of Samba looks.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
6 years agolib audit_logging: re-factor and add functions.
Gary Lockyer [Wed, 16 May 2018 20:03:00 +0000 (08:03 +1200)]
lib audit_logging: re-factor and add functions.

Re-factor the common calls to json_dumps DEBUGC and audit_message_send
into a separate function.
Add functions to retrieve json object and json array elements

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agos4-torture: add test for lease break after file unlink
Sachin Prabhu [Fri, 20 Apr 2018 12:51:10 +0000 (13:51 +0100)]
s4-torture: add test for lease break after file unlink

When deleting a file, all leases granting handle caching lease to the
file should be recalled.

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

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jun  1 02:57:46 CEST 2018 on sn-devel-144

6 years agorpc_server backupkey: pass remote connection data
Gary Lockyer [Wed, 30 May 2018 02:45:03 +0000 (14:45 +1200)]
rpc_server backupkey: pass remote connection data

Ensure that the requesting session data is passed to the audit logging
module for BackupKey requests.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu May 31 12:35:15 CEST 2018 on sn-devel-144

6 years agorpc_server lsa: pass remote connection data
Gary Lockyer [Wed, 30 May 2018 02:44:19 +0000 (14:44 +1200)]
rpc_server lsa: pass remote connection data

Ensure that the session details of the requesting user are available to
the audit logging module for the CreateSecret and OpenSecret operations.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agorpc_server: common routine to open ldb in system session
Gary Lockyer [Wed, 30 May 2018 02:43:25 +0000 (14:43 +1200)]
rpc_server: common routine to open ldb in system session

Add a function to open an ldb connection under the system session and
save the remote users session details in a ldb_opaque.  This will allow
the audit logging to log the original session for operations performed
in the system session.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agodsdb acl: Copy dsdb_control_password_acl_validation into reply
Gary Lockyer [Thu, 24 May 2018 21:53:29 +0000 (09:53 +1200)]
dsdb acl: Copy dsdb_control_password_acl_validation into reply

Copy the dsdb_control_password_acl_validation into the reply so that it
is available to the audit_logging module.  The audit logging module
uses it to differentiate between password change and reset operations.

We include it in the result for failed request to allow the logging of
failed attempts.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agocldap: clear remote address after cldap_dse_fill
Gary Lockyer [Wed, 4 Apr 2018 00:38:25 +0000 (12:38 +1200)]
cldap: clear remote address after cldap_dse_fill

Need to clear the remote address as the ldb handle is shared, and
changes made by internal processes would be logged as coming from the
last cldap requester

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agoauth tests: irpc remove "auth_event" name on completion
Gary Lockyer [Fri, 25 May 2018 03:21:33 +0000 (15:21 +1200)]
auth tests: irpc remove "auth_event" name on completion

Remove the "auth_event" name on completion of tests to prevent issues
with tests using messaging.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agosambatool: heuristics to decided whether colour is wanted
Douglas Bagnall [Thu, 19 Apr 2018 02:15:25 +0000 (14:15 +1200)]
sambatool: heuristics to decided whether colour is wanted

The easy cases are --color=yes and --color=no.

With --color=auto, we use color if it seems we're writing to a TTY.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu May 31 04:34:52 CEST 2018 on sn-devel-144

6 years agopython/colour: add colourizing and switch functions
Douglas Bagnall [Thu, 19 Apr 2018 02:12:57 +0000 (14:12 +1200)]
python/colour: add colourizing and switch functions

When samba.colour is first imported, the function

colour.c_BLUE("samba")

will give you the string "\033[1;34msamba\033[0m", which will show up
as blue on an ANSI terminal. If you then go:

colour.switch_colour_off()
colour.c_BLUE("samba")

the c_BLUE call will return the uncoloured string "samba".

This is so things like samba-tool can do this sort of thing:

    if not os.isatty(self.outf):
        switch_colour_off()

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agosamba-tool drs: remove 'server' arg from commands without --server
Douglas Bagnall [Sun, 11 Mar 2018 23:45:25 +0000 (12:45 +1300)]
samba-tool drs: remove 'server' arg from commands without --server

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agosamba-tool drs showrepl: remove unused search
Douglas Bagnall [Sun, 11 Mar 2018 22:50:41 +0000 (11:50 +1300)]
samba-tool drs showrepl: remove unused search

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agosamba-tool: be consistent in accepting -q for --quiet
Douglas Bagnall [Thu, 19 Apr 2018 05:17:28 +0000 (17:17 +1200)]
samba-tool: be consistent in accepting -q for --quiet

Not all commands accept --quiet, and not all of those that do use it.
Some already accept -q, and it is not used anywhere for anything else.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agosamba-tool: add -v to drs --verbose
Douglas Bagnall [Thu, 24 May 2018 05:03:22 +0000 (17:03 +1200)]
samba-tool: add -v to drs --verbose

Sometimes we accept -v for --verbose, sometimes we don't. Let's be a
bit more consistent.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agosamba-tool: add -v to domain --verbose
Douglas Bagnall [Thu, 19 Apr 2018 04:56:28 +0000 (16:56 +1200)]
samba-tool: add -v to domain --verbose

Sometimes we accept -v for --verbose, sometimes we don't. Let's be a
bit more consistent.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agosamba-tool dns cleanup_record: add missing verbose/quiet options
Douglas Bagnall [Thu, 19 Apr 2018 04:43:50 +0000 (16:43 +1200)]
samba-tool dns cleanup_record: add missing verbose/quiet options

The code for using them is already there

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agopython kcc/graph_utils: don't debug in colour
Douglas Bagnall [Thu, 19 Apr 2018 04:39:06 +0000 (16:39 +1200)]
python kcc/graph_utils: don't debug in colour

this was somewhat useful during the initial development, but is wrong for a library

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agokcc graph verifiers: improve messages
Douglas Bagnall [Wed, 16 May 2018 03:53:35 +0000 (15:53 +1200)]
kcc graph verifiers: improve messages

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agokcc graph verifier: use __doc__ description for error explanation
Douglas Bagnall [Tue, 15 May 2018 02:40:36 +0000 (14:40 +1200)]
kcc graph verifier: use __doc__ description for error explanation

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agokcc graphs: site edges in colour, labeled with DNs
Douglas Bagnall [Sun, 7 Jan 2018 09:17:43 +0000 (22:17 +1300)]
kcc graphs: site edges in colour, labeled with DNs

This makes it easy to see where the site edges objects are, and
what sites they refer too.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agondr_misc: read syntax_id using strict util_str_hex functions
Douglas Bagnall [Thu, 22 Mar 2018 04:12:49 +0000 (17:12 +1300)]
ndr_misc: read syntax_id using strict util_str_hex functions

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agoutil_str_hex: use array syntax in guid functions to document usage
Douglas Bagnall [Thu, 22 Mar 2018 04:57:05 +0000 (17:57 +1300)]
util_str_hex: use array syntax in guid functions to document usage

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agoutil/charset/iconv: use read_hex_bytes rather than sscanf
Douglas Bagnall [Thu, 22 Mar 2018 04:54:55 +0000 (17:54 +1300)]
util/charset/iconv: use read_hex_bytes rather than sscanf

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
6 years agodsdb/util: use parse_guid_string, not sscanf()
Douglas Bagnall [Thu, 22 Mar 2018 03:49:29 +0000 (16:49 +1300)]
dsdb/util: use parse_guid_string, not sscanf()

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>