metze/samba/wip.git
5 years agoSTEP01: librpc/rpc/dcerpc_connection.c: add dcerpc_security_get_auth_info
Stefan Metzmacher [Wed, 22 Jan 2014 10:48:33 +0000 (11:48 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c: add dcerpc_security_get_auth_info

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c: add dcerpc_connection_set_max_fragment_sizes()
Stefan Metzmacher [Wed, 22 Jan 2014 10:40:11 +0000 (11:40 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c: add dcerpc_connection_set_max_fragment_sizes()

5 years agoSTEP01: dcerpc_connection_create TODO max fragment sizes
Stefan Metzmacher [Wed, 22 Jan 2014 10:16:32 +0000 (11:16 +0100)]
STEP01: dcerpc_connection_create TODO max fragment sizes

This is just a hint, windows allows more in one fragment!

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c dcerpc_connection_dead() dcerpc_connection_is_...
Stefan Metzmacher [Wed, 22 Jan 2014 10:15:05 +0000 (11:15 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c dcerpc_connection_dead() dcerpc_connection_is_connected()

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c incoming.req with tevent_req_defer_callback()
Stefan Metzmacher [Wed, 22 Jan 2014 10:14:17 +0000 (11:14 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c incoming.req with tevent_req_defer_callback()

5 years agoSTEP01: sq dcerpc_presentation_status
Stefan Metzmacher [Wed, 22 Jan 2014 10:12:43 +0000 (11:12 +0100)]
STEP01: sq dcerpc_presentation_status

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c: fail dcerpc_do_bind without successful presen...
Stefan Metzmacher [Wed, 22 Jan 2014 09:15:21 +0000 (10:15 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c: fail dcerpc_do_bind without successful presentation

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c add dcerpc_presentation_status()
Stefan Metzmacher [Wed, 22 Jan 2014 09:14:53 +0000 (10:14 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c add dcerpc_presentation_status()

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c dcerpc_presentation_test_copy
Stefan Metzmacher [Wed, 22 Jan 2014 08:36:05 +0000 (09:36 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c dcerpc_presentation_test_copy

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c state->remaining_pres TODO AUTH3 PIPE_BUSY
Stefan Metzmacher [Wed, 22 Jan 2014 08:35:33 +0000 (09:35 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c state->remaining_pres TODO AUTH3 PIPE_BUSY

5 years agoSTEP01: dcerpc_check_pdu_auth fix librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Fri, 17 Jan 2014 18:13:57 +0000 (19:13 +0100)]
STEP01: dcerpc_check_pdu_auth fix librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: global fragment checking librpc/rpc/dcerpc_connection.
Stefan Metzmacher [Fri, 17 Jan 2014 18:10:09 +0000 (19:10 +0100)]
STEP01: global fragment checking librpc/rpc/dcerpc_connection.

TODO verify header, reassemle? 4MB?

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c active
Stefan Metzmacher [Mon, 13 Jan 2014 15:42:35 +0000 (16:42 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c active

5 years agoSTEP01: dcerpc_do_request_handle_in_frag recv multiple.
Stefan Metzmacher [Mon, 13 Jan 2014 14:55:18 +0000 (15:55 +0100)]
STEP01: dcerpc_do_request_handle_in_frag recv multiple.

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c trailer ...
Stefan Metzmacher [Mon, 13 Jan 2014 14:43:48 +0000 (15:43 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c trailer ...

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Mon, 13 Jan 2014 09:07:16 +0000 (10:07 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c gensec
Stefan Metzmacher [Sun, 12 Jan 2014 00:16:14 +0000 (01:16 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c gensec

5 years agoSTEP01: dcerpc_do_bind_handle_in_frag alter...
Stefan Metzmacher [Sat, 11 Jan 2014 17:18:01 +0000 (18:18 +0100)]
STEP01: dcerpc_do_bind_handle_in_frag alter...

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c: dcerpc_ncacn_push_auth
Stefan Metzmacher [Sat, 11 Jan 2014 08:50:30 +0000 (09:50 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c: dcerpc_ncacn_push_auth

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c do_request use_trans part2
Stefan Metzmacher [Sat, 11 Jan 2014 08:08:07 +0000 (09:08 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c do_request use_trans part2

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c do_request use_trans part1
Stefan Metzmacher [Sat, 11 Jan 2014 07:41:48 +0000 (08:41 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c do_request use_trans part1

5 years agoSTEP01: use trans librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Sat, 11 Jan 2014 07:36:56 +0000 (08:36 +0100)]
STEP01: use trans librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: loop librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Sat, 11 Jan 2014 07:36:30 +0000 (08:36 +0100)]
STEP01: loop librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c use_trans
Stefan Metzmacher [Fri, 10 Jan 2014 16:30:49 +0000 (17:30 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c use_trans

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c rpcclient works?
Stefan Metzmacher [Fri, 10 Jan 2014 16:27:00 +0000 (17:27 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c rpcclient works?

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Fri, 10 Jan 2014 10:40:54 +0000 (11:40 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Thu, 9 Jan 2014 20:00:43 +0000 (21:00 +0100)]
STEP01: librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: sq librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Thu, 9 Jan 2014 19:54:52 +0000 (20:54 +0100)]
STEP01: sq librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: sq librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Thu, 9 Jan 2014 19:45:15 +0000 (20:45 +0100)]
STEP01: sq librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: gla
Stefan Metzmacher [Thu, 9 Jan 2014 19:01:03 +0000 (20:01 +0100)]
STEP01: gla

5 years agoSTEP01: sq librpc/rpc/dcerpc_connection.c
Stefan Metzmacher [Thu, 9 Jan 2014 18:28:46 +0000 (19:28 +0100)]
STEP01: sq librpc/rpc/dcerpc_connection.c

5 years agoSTEP01: sq librpc/rpc/dcerpc_connection.[ch]
Stefan Metzmacher [Thu, 9 Jan 2014 15:24:34 +0000 (16:24 +0100)]
STEP01: sq librpc/rpc/dcerpc_connection.[ch]

5 years agoSTEP01: dcerpc_do_bind/dcerpc_do_request
Stefan Metzmacher [Sun, 13 Mar 2011 12:41:39 +0000 (13:41 +0100)]
STEP01: dcerpc_do_bind/dcerpc_do_request

5 years agoLATER STEP?? source4/rpc_server/remote/dcesrv_remote.c map from NTSTATUS to fault_state
Stefan Metzmacher [Wed, 22 Jan 2014 12:10:26 +0000 (13:10 +0100)]
LATER STEP?? source4/rpc_server/remote/dcesrv_remote.c map from NTSTATUS to fault_state

5 years agoHACK s4 client NDR_PRINT_DEBUG(ncacn_packet, pkt);
Stefan Metzmacher [Thu, 16 Jan 2014 08:24:25 +0000 (09:24 +0100)]
HACK s4 client NDR_PRINT_DEBUG(ncacn_packet, pkt);

5 years agoRevert "DCERPC server design ideas..."
Stefan Metzmacher [Wed, 15 Jan 2014 07:45:23 +0000 (08:45 +0100)]
Revert "DCERPC server design ideas..."

This reverts commit d63d0442b9252619eaf2915ee419e4c3971a76f5.

5 years agoDCERPC server design ideas...
Stefan Metzmacher [Thu, 19 Sep 2013 20:36:30 +0000 (22:36 +0200)]
DCERPC server design ideas...

5 years agogit add -f bin/default/librpc/gen_ndr/*.{c,h,ndr,pidl} bin/default/source*/librpc...
Stefan Metzmacher [Wed, 19 Mar 2014 10:11:36 +0000 (11:11 +0100)]
git add -f bin/default/librpc/gen_ndr/*.{c,h,ndr,pidl} bin/default/source*/librpc/gen_ndr/*.{c,h,ndr,pidl}

5 years agoHACK: pidl: always dump idl and ndr tree
Stefan Metzmacher [Sat, 18 Sep 2010 17:17:17 +0000 (19:17 +0200)]
HACK: pidl: always dump idl and ndr tree

5 years agoRevert "debug"
Stefan Metzmacher [Mon, 20 Oct 2014 06:54:10 +0000 (08:54 +0200)]
Revert "debug"

This reverts commit 2dfd75cdbeb2ec0f69a8e3c54564e1adecc64567.

5 years agodebug
Stefan Metzmacher [Fri, 17 Oct 2014 11:50:28 +0000 (13:50 +0200)]
debug

5 years agoRevert "source4/torture/smb2/durable_open.c" master4-dcerpc
Stefan Metzmacher [Mon, 14 Apr 2014 20:55:35 +0000 (22:55 +0200)]
Revert "source4/torture/smb2/durable_open.c"

This reverts commit 3f42beed778b2523f9be88834d510095482acecb.

5 years agosource4/torture/smb2/durable_open.c
Stefan Metzmacher [Mon, 14 Apr 2014 20:32:30 +0000 (22:32 +0200)]
source4/torture/smb2/durable_open.c

5 years agoRevert "librpc/rpc: reset the assoc_group_id when setting the binding endpoint"
Stefan Metzmacher [Tue, 18 Mar 2014 12:23:58 +0000 (13:23 +0100)]
Revert "librpc/rpc: reset the assoc_group_id when setting the binding endpoint"

This reverts commit 6b96669dfed2e18a2c07e83559e3965c2777330b.

5 years agolibrpc/rpc: reset the assoc_group_id when setting the binding endpoint
Stefan Metzmacher [Tue, 18 Mar 2014 06:05:36 +0000 (07:05 +0100)]
librpc/rpc: reset the assoc_group_id when setting the binding endpoint

The assoc_group_id is transport/endpoint specific.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agoRevert "TODO timeout? libcli/smb: avoid sync close requests in tstream_smbXcli_np_des...
Stefan Metzmacher [Mon, 18 Apr 2016 00:11:05 +0000 (02:11 +0200)]
Revert "TODO timeout? libcli/smb: avoid sync close requests in tstream_smbXcli_np_destructor"

This reverts commit 1fa97ac96729f8bc5e4bdcaf20e6658d7d521515.

5 years agoRevert "s4:librpc/rpc: remove dcerpc_shutdown_pipe() layer"
Stefan Metzmacher [Tue, 18 Mar 2014 05:50:50 +0000 (06:50 +0100)]
Revert "s4:librpc/rpc: remove dcerpc_shutdown_pipe() layer"

This reverts commit f9dfae142d580c288951c41eccbe481c326c7ca1.

5 years agos4:librpc/rpc: remove dcerpc_shutdown_pipe() layer
Stefan Metzmacher [Sun, 16 Mar 2014 20:54:55 +0000 (21:54 +0100)]
s4:librpc/rpc: remove dcerpc_shutdown_pipe() layer

This is only called from dcerpc_connection_dead()
mostly via dcerpc_connection_destructor().

Calling tstream_disconnect_send(), triggers a smb*cli_close_send(),
but we implicitly call talloc_free() on the returned 'req',
before it's send into the low-level tcp socket, which means
the SMB signing gets out of sync. For now we just rely on
the tstream destructor to close the smb open.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agoTODO timeout? libcli/smb: avoid sync close requests in tstream_smbXcli_np_destructor
Stefan Metzmacher [Sun, 16 Mar 2014 10:50:39 +0000 (11:50 +0100)]
TODO timeout? libcli/smb: avoid sync close requests in tstream_smbXcli_np_destructor

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agoRevert "debug"
Stefan Metzmacher [Sun, 11 Sep 2016 20:30:55 +0000 (22:30 +0200)]
Revert "debug"

This reverts commit cd2183082846af788a3fb55a5f4d9bb8f901160d.

5 years agodebug
Stefan Metzmacher [Fri, 24 Jan 2014 13:14:47 +0000 (14:14 +0100)]
debug

5 years agoRevert "TODO PANIC/NONE sq s4:librpc/rpc: make use of dcerpc_binding_get_string_optio...
Stefan Metzmacher [Wed, 12 Feb 2014 11:58:25 +0000 (12:58 +0100)]
Revert "TODO PANIC/NONE sq s4:librpc/rpc: make use of dcerpc_binding_get_string_option("endpoint")"

This reverts commit ac3cc2a59e8d1cc9a9399fc5921031af2e44eb72.

5 years agoTODO PANIC/NONE sq s4:librpc/rpc: make use of dcerpc_binding_get_string_option("endpo...
Stefan Metzmacher [Wed, 12 Feb 2014 09:54:42 +0000 (10:54 +0100)]
TODO PANIC/NONE sq s4:librpc/rpc: make use of dcerpc_binding_get_string_option("endpoint")

5 years agoRevert "debug"
Stefan Metzmacher [Mon, 20 Oct 2014 06:54:10 +0000 (08:54 +0200)]
Revert "debug"

This reverts commit 2dfd75cdbeb2ec0f69a8e3c54564e1adecc64567.

5 years agodebug
Stefan Metzmacher [Fri, 17 Oct 2014 11:50:28 +0000 (13:50 +0200)]
debug

5 years agos->pipe->binding = talloc_move(s->pipe, &s->binding);
Stefan Metzmacher [Sat, 18 Oct 2014 08:26:53 +0000 (10:26 +0200)]
s->pipe->binding = talloc_move(s->pipe, &s->binding);

5 years agos->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);
Stefan Metzmacher [Fri, 17 Oct 2014 11:20:26 +0000 (13:20 +0200)]
s->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);

5 years agoRevert "s->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);"
Stefan Metzmacher [Fri, 17 Oct 2014 11:22:49 +0000 (13:22 +0200)]
Revert "s->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);"

This reverts commit 5bc42fe2122cbd2adbef69df9c11c97f8c0984f4.

5 years agos->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);
Stefan Metzmacher [Fri, 17 Oct 2014 11:20:26 +0000 (13:20 +0200)]
s->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);

5 years agosq dcerpc_binding_string_ex
Stefan Metzmacher [Sat, 18 Oct 2014 08:53:42 +0000 (10:53 +0200)]
sq dcerpc_binding_string_ex

5 years agosq TODO _dcerpc_binding_set_pointer_option
Stefan Metzmacher [Sat, 18 Oct 2014 08:23:30 +0000 (10:23 +0200)]
sq TODO _dcerpc_binding_set_pointer_option

5 years agoTODO _dcerpc_binding_set_pointer_option
Stefan Metzmacher [Fri, 17 Oct 2014 11:11:32 +0000 (13:11 +0200)]
TODO _dcerpc_binding_set_pointer_option

5 years agoRevert "TODO _dcerpc_binding_set_pointer_option"
Stefan Metzmacher [Fri, 17 Oct 2014 11:23:37 +0000 (13:23 +0200)]
Revert "TODO _dcerpc_binding_set_pointer_option"

This reverts commit 628f6a8b0cfdfac9a2cefde78e080e3852b735b9.

5 years agoTODO _dcerpc_binding_set_pointer_option
Stefan Metzmacher [Fri, 17 Oct 2014 11:11:32 +0000 (13:11 +0200)]
TODO _dcerpc_binding_set_pointer_option

5 years agoOK - HACK smb_panic invalid options
Stefan Metzmacher [Fri, 24 Jan 2014 06:32:48 +0000 (07:32 +0100)]
OK - HACK smb_panic invalid options

OK as f61ebcb19c05cae3308b7b088958c7c985329284

5 years agos4:librpc/rpc: remove unused dcerpc_secondary_smb_send/recv()
Stefan Metzmacher [Wed, 12 Mar 2014 07:29:00 +0000 (08:29 +0100)]
s4:librpc/rpc: remove unused dcerpc_secondary_smb_send/recv()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agos4:librpc/rpc: remove unused dcerpc_pipe_open_smb[2]()
Stefan Metzmacher [Fri, 17 Jan 2014 08:10:03 +0000 (09:10 +0100)]
s4:librpc/rpc: remove unused dcerpc_pipe_open_smb[2]()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agos4:librpc/rpc: remove unused dcerpc_bind_auth_none()
Stefan Metzmacher [Fri, 17 Jan 2014 12:18:42 +0000 (13:18 +0100)]
s4:librpc/rpc: remove unused dcerpc_bind_auth_none()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agos4:librpc/rpc: remove unused dcerpc_bind_auth()
Stefan Metzmacher [Fri, 17 Jan 2014 13:13:05 +0000 (14:13 +0100)]
s4:librpc/rpc: remove unused dcerpc_bind_auth()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agosq dcerpc_binding_set_smbXcli_pointers s4:torture/samba3rpc: split out pipe_bind_smbX...
Stefan Metzmacher [Mon, 6 Oct 2014 08:24:57 +0000 (10:24 +0200)]
sq dcerpc_binding_set_smbXcli_pointers s4:torture/samba3rpc: split out pipe_bind_smbXcli() and go via dcerpc_pipe_connect_b()

5 years agos4:torture/samba3rpc: split out pipe_bind_smbXcli() and go via dcerpc_pipe_connect_b()
Stefan Metzmacher [Thu, 16 Jan 2014 07:21:39 +0000 (08:21 +0100)]
s4:torture/samba3rpc: split out pipe_bind_smbXcli() and go via dcerpc_pipe_connect_b()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agosq dcerpc_binding_set_smbXcli_pointers s4:libcli/clilsa: make use of dcerpc_pipe_conn...
Stefan Metzmacher [Mon, 6 Oct 2014 08:17:28 +0000 (10:17 +0200)]
sq dcerpc_binding_set_smbXcli_pointers s4:libcli/clilsa: make use of dcerpc_pipe_connect_b()

5 years agos4:libcli/clilsa: make use of dcerpc_pipe_connect_b()
Stefan Metzmacher [Thu, 16 Jan 2014 07:59:30 +0000 (08:59 +0100)]
s4:libcli/clilsa: make use of dcerpc_pipe_connect_b()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agoRevert "debug..."
Stefan Metzmacher [Tue, 7 Oct 2014 09:07:05 +0000 (11:07 +0200)]
Revert "debug..."

This reverts commit 97b69b94e3e4e5426ce9c4765ffdf4ff05bd6169.

5 years agodebug...
Stefan Metzmacher [Tue, 7 Oct 2014 09:06:58 +0000 (11:06 +0200)]
debug...

5 years agoHACK fix...
Stefan Metzmacher [Tue, 7 Oct 2014 09:06:42 +0000 (11:06 +0200)]
HACK fix...

5 years agosq dcerpc_binding_set_smbXcli_pointers s4:librpc/rpc: avoid using dcerpc_secondary_sm...
Stefan Metzmacher [Tue, 11 Mar 2014 11:37:40 +0000 (12:37 +0100)]
sq dcerpc_binding_set_smbXcli_pointers s4:librpc/rpc: avoid using dcerpc_secondary_smb_send/recv

5 years agos4:librpc/rpc: avoid using dcerpc_secondary_smb_send/recv
Stefan Metzmacher [Tue, 11 Mar 2014 11:37:40 +0000 (12:37 +0100)]
s4:librpc/rpc: avoid using dcerpc_secondary_smb_send/recv

We can now just use dcerpc_pipe_open_smb_send/recv and get
smbXcli_{conn,session,tcon} from the dcerpc_binding of the primary connection.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agosq dcerpc_binding_get_smbXcli_pointers s4:librpc/rpc: try to get the smbXcli_* pointe...
Stefan Metzmacher [Thu, 2 Oct 2014 08:38:55 +0000 (10:38 +0200)]
sq dcerpc_binding_get_smbXcli_pointers s4:librpc/rpc: try to get the smbXcli_* pointers from the given dcerpc_binding options

5 years agos4:librpc/rpc: try to get the smbXcli_* pointers from the given dcerpc_binding options
Stefan Metzmacher [Wed, 15 Jan 2014 15:05:26 +0000 (16:05 +0100)]
s4:librpc/rpc: try to get the smbXcli_* pointers from the given dcerpc_binding options

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agosq dcerpc_binding_set_smbXcli_pointers s4:librpc/rpc: remember smbXcli_{conn,session...
Stefan Metzmacher [Thu, 25 Sep 2014 22:06:49 +0000 (00:06 +0200)]
sq dcerpc_binding_set_smbXcli_pointers s4:librpc/rpc: remember smbXcli_{conn,session,tcon} on new ncacn_np connection

5 years agos4:librpc/rpc: remember smbXcli_{conn,session,tcon} on new ncacn_np connection
Stefan Metzmacher [Thu, 16 Jan 2014 10:52:10 +0000 (11:52 +0100)]
s4:librpc/rpc: remember smbXcli_{conn,session,tcon} on new ncacn_np connection

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agodcerpc_binding_set_smbXcli_pointers
Stefan Metzmacher [Mon, 22 Sep 2014 14:41:51 +0000 (16:41 +0200)]
dcerpc_binding_set_smbXcli_pointers

5 years agoRevert "TODO pointer options..."
Stefan Metzmacher [Mon, 22 Sep 2014 14:42:34 +0000 (16:42 +0200)]
Revert "TODO pointer options..."

This reverts commit 2113b0721b70e3cc7d2fb5591ed8898d06fbef96.

5 years agoTODO pointer options...
Stefan Metzmacher [Mon, 22 Sep 2014 14:42:25 +0000 (16:42 +0200)]
TODO pointer options...

5 years agolibrpc/rpc: add dcerpc_binding_set_pointer_option()
Stefan Metzmacher [Thu, 16 Jan 2014 10:10:46 +0000 (11:10 +0100)]
librpc/rpc: add dcerpc_binding_set_pointer_option()

This allows the caller to set a talloc pointer
as [<name>:pointer:<pid>:<type>=<address>]
(e.g. [connection:pointer:12345:struct smbXcli_conn=0xf0123456789abcde])
option of a dcerpc_binding.

Callers have to be careful to keep the pointer valid!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agolibrpc/rpc: add dcerpc_binding_get_pointer_option()
Stefan Metzmacher [Wed, 15 Jan 2014 14:17:33 +0000 (15:17 +0100)]
librpc/rpc: add dcerpc_binding_get_pointer_option()

This allows the caller to get a talloc pointer
out of a [<name>:pointer:<pid>:<type>=<address>]
(e.g. [connection:pointer:12345:struct smbXcli_conn=0xf0123456789abcde])
option of a dcerpc_binding.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agoRevert "source3/rpc_server/rpc_ncacn_np.c: tmp_mem"
Stefan Metzmacher [Mon, 20 Oct 2014 06:40:02 +0000 (08:40 +0200)]
Revert "source3/rpc_server/rpc_ncacn_np.c: tmp_mem"

This reverts commit 1a399c4d3270a4651ff5ae35237c5c12d89fe751.

5 years agosource3/rpc_server/rpc_ncacn_np.c: tmp_mem
Stefan Metzmacher [Thu, 25 Sep 2014 19:51:05 +0000 (21:51 +0200)]
source3/rpc_server/rpc_ncacn_np.c: tmp_mem

5 years agotest_no_auth_bind_time*...
Stefan Metzmacher [Fri, 23 Oct 2015 13:39:34 +0000 (15:39 +0200)]
test_no_auth_bind_time*...

5 years agoTODO: debug subtree_delete
Stefan Metzmacher [Tue, 16 Aug 2016 04:34:08 +0000 (06:34 +0200)]
TODO: debug subtree_delete

5 years agos3-smbcontrol: Replace && with || to declare variables in do_sleep() master4-dcerpc-base master4-dcerpc-ok
Anoop C S [Wed, 29 May 2019 06:10:55 +0000 (11:40 +0530)]
s3-smbcontrol: Replace && with || to declare variables in do_sleep()

--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

5 years ago.gitlab-ci.yml: avoid using != to compare variables to support old versions
Joe Guo [Wed, 29 May 2019 03:35:08 +0000 (15:35 +1200)]
.gitlab-ci.yml: avoid using != to compare variables to support old versions

`!=` was only introduced after 11.11, according to doc at:

https://docs.gitlab.com/ee/ci/variables/README.html#environment-variables-expressions

For private gitlab instance, the version may not be new enough.
Use `==` to make it backward compatible.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri May 31 09:48:37 UTC 2019 on sn-devel-184

5 years agoselftest: Don't use global dirs when parsing customdc realm
Tim Beale [Thu, 30 May 2019 02:55:52 +0000 (14:55 +1200)]
selftest: Don't use global dirs when parsing customdc realm

When creating the customdc, testparm would default to using
/usr/local/samba sub-directories for creating sockets and lock files.
Instead, pass in the tmpdir we just created as an option to the command.

Normally this didn't cause a noticeable problem, however, if we run the
command with UID-wrapper but without socket-wrapper (i.e.
USE_NAMESPACES=1), then it fails completely.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri May 31 06:34:36 UTC 2019 on sn-devel-184

5 years agoselftest: Add check customdc has valid realm/domain
Tim Beale [Thu, 30 May 2019 02:46:35 +0000 (14:46 +1200)]
selftest: Add check customdc has valid realm/domain

If we couldn't determine the realm/domain from the backup file, it's a
lot nicer to fail early with a clear error message (rather than failing
later on with a really obscure message).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
5 years agoprovision: Fallback to assumption root-UID==zero
Tim Beale [Tue, 2 Oct 2018 19:56:45 +0000 (08:56 +1300)]
provision: Fallback to assumption root-UID==zero

Which is not a terrible assumption to make. The super-user on linux will
always have UID of zero, however, the super-user will not necessarily be
called "root".

This makes the provision/join commands work better when run in a
container. (And while deploying Samba in a container is perhaps not the
smartest move, this gives us some versatility when testing Samba).

This is needed to get the provision commands working in the domain_backup
tests when run with USE_NAMESPACES=1.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
5 years agoselftest: Add more notes on using selftest with namespaces
Tim Beale [Thu, 30 May 2019 23:23:49 +0000 (11:23 +1200)]
selftest: Add more notes on using selftest with namespaces

In particular, document how to hook up a testenv to a Windows VM
(ideally there should be a helper script to do this, but in the
meantime some instructions are better than nothing).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
5 years agoselftest: Add helper scripts for accessing the testenv namespace
Tim Beale [Thu, 28 Mar 2019 04:40:46 +0000 (17:40 +1300)]
selftest: Add helper scripts for accessing the testenv namespace

This patch adds some helper scripts that make talking to a given
testenv's namespace slightly easier.

One of the really cool things about namespaces is you can run multiple
different programs that can all talk to the testenv DC. However, the
command to do this is a bit unweildly, it's based on PID so it changes
everytime you start up a testenv, and you loose all the environment
variables that selftest normally sets up.

This patch adds a couple of helper scripts:
- nsenter-helper.sh: this takes the variables defined in an exports_file
  and exports them all. It prints some basic help and then starts a new
  shell session (this whole script gets run in the new namespace).
  Essentially this achieves something similar to the legacy
  selftest-vars.sh script (except this one actually works).
- mk_nsenter.sh: this generates a simple wrapper script that'll run
  nsenter and then call nsenter-helper.sh. A separate wrapper script
  gets created for each testenv. E.g. to run it, just go:
    ./st/ad_dc/nsenter.sh

  This is a wrapper for a more complicated command underneath like:
    nsenter -t 437353 --net --user --preserve-credentials \
      /home/timbeale/code/samba/selftest/ns/nsenter-helper.sh \
      /home/timbeale/code/samba/st/ad_dc/exports.sh

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
5 years agoselftest: Add linux namespace support (USE_NAMESPACES=1)
Tim Beale [Thu, 23 May 2019 05:44:37 +0000 (17:44 +1200)]
selftest: Add linux namespace support (USE_NAMESPACES=1)

This hooks up the selftest/ns/* scripts added earlier with the selftest
system, so developers can optionally run a testenv or test using linux
namespaces instead of socket-wrapper.

The idea is this is experimental functionality that we can extend
further in future, in order to make testing Samba more versatile.

+ The top-level WAF script now does an 'unshare' to create a new
top-level 'selftest' namespace in which to create the testenv(s).
+ selftest.pl creates a common 'selftest0' bridge to connect together
the individual DCs.
+ Update Samba.pm so it can use real IPs instead of loopback addresses.
In fork_and_exec(), we add a couple of hooks so that the binary gets
started in a different namespace (using unshare/start_in_ns.sh), and
the parent process connects the new child namespace up to the common
selftest0 bridge (using add_bridge_iface.sh).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
5 years agoselftest: Add TESTENV_DIR "env" variable
Tim Beale [Thu, 14 Mar 2019 04:38:22 +0000 (17:38 +1300)]
selftest: Add TESTENV_DIR "env" variable

We store the testenv directory path for the 'ctx' hashmap, but not for
the testenv-vars hashmap (and that can be really annoying sometimes).
Add it into the second hashmap that selftest actually keeps track of.
Currently it's only stored in the hashmap, not actually exported as an
environment variable (but we could easily do that if a test-case need
this info).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>