1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

28158 Commits

Author SHA1 Message Date
Jelmer Vernooij
61447dfbbf Allow using external libtalloc. 2009-03-14 20:56:26 +01:00
Stefan Metzmacher
9579a6f193 s3:libsmb: add an option to cli_push to let the caller provide the buffers
metze
2009-03-10 14:07:56 +01:00
Stefan Metzmacher
c2993f74af s3:libsmb: only treat a return 0 as end of file
metze
2009-03-10 12:46:16 +01:00
Stefan Metzmacher
7fc8086e11 s3:libsmb: fix a lot of cli_push() bugs
There were the following problems:
1.) if window_size was a multiple of the chunk_size,
    we silently dropped the last truncated chunk.
2.) if window_size was 0 pushed only the first chunk
    to the server and silently dropped the rest.
3.) we had only transferred state->num_reqs writes,
    even if there would be more data to send.

metze
2009-03-10 11:03:15 +01:00
Andrew Tridgell
6f1f9f6d8d fixed a bug in message handling for code the change notify code
The change notify code registered a separate message handler for each
tree connect. This registration uses the global messaging context.

The messaging code would consider a 2nd registration for the same
messaging type as being an 'update' of the handler, rather than a new
handler. It also would only call the first handler in the linked list
for a given message type when dispatching messages.

This patch changes the messaging code to allow for multiple
registrations of the same message type, and allow for multiple calls
to different messaging handler for one incoming message.

This fixes the problem with the test_notify_tcon() test that I
recently committed to the S4 smbtorture
2009-03-10 16:45:45 +11:00
Jelmer Vernooij
3b181564c5 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-03-09 21:42:13 +01:00
Björn Jacke
0d2de5380d use LIB_PATH_VAR in selftest.sh if we have it
if we have LIB_PATH_VAR we should use it, otherwise we'll unobtrusively
complain about not having it and use the most likely LD_LIBRARY_PATH.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-03-09 18:31:11 +01:00
Volker Lendecke
6b1170c9d6 Fix a typo 2009-03-09 16:13:31 +01:00
Stefan Metzmacher
1410490fe7 s3:lib: interfaces.c isn't used in the configure tests anymore
libreplace always provides the getifaddr() function.

This fixes the build on sles8.

metze
2009-03-09 12:49:13 +01:00
Björn Jacke
c3691b839c fix "dubious escape" warning of Studio compiler 2009-03-09 10:47:30 +01:00
Volker Lendecke
dea9621680 Don't copy the winbindd_request in wb_trans 2009-03-08 12:52:58 +01:00
Volker Lendecke
e503148225 Convert wb_open_pipe to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
33db1e07a7 Convert wb_connect to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
549c30e9fe Convert wb_int_trans to tevent_req 2009-03-08 12:52:58 +01:00
Volker Lendecke
eb177592b5 Add parameter "queue" to wb_int_trans_send 2009-03-08 12:52:58 +01:00
Volker Lendecke
c7df046339 Move "struct req_read_state" where it belongs 2009-03-08 11:21:00 +01:00
Volker Lendecke
1611e63ae5 Convert wb_resp_write to tevent_req 2009-03-08 11:21:00 +01:00
Volker Lendecke
80fcd76421 Convert wb_resp_read to tevent_req 2009-03-08 11:21:00 +01:00
Volker Lendecke
0a3a7d53eb Convert wb_req_read to tevent_req 2009-03-08 11:21:00 +01:00
Volker Lendecke
9a64d7cfbe Convert wb_req_write to tevent_req 2009-03-08 11:20:59 +01:00
Volker Lendecke
f5ee31602c Add tevent_req wbc helpers 2009-03-08 11:20:59 +01:00
Volker Lendecke
fe486d7b9f Add "queue" to writev_send
Unless higher levels queue themselves somehow, writev will *always* be queued.
So the queueing should be done at the right level.
2009-03-08 11:20:59 +01:00
Jelmer Vernooij
f992416e23 Revert accidental reintroduction of void ** bug. 2009-03-08 06:57:52 +01:00
Volker Lendecke
46bcb10b5a Shape up pdb_search a bit by making it a talloc ctx with a destructor 2009-03-07 17:51:21 +01:00
Volker Lendecke
e58ade4136 Fix a smbclient segfault against security=share servers 2009-03-07 15:27:13 +01:00
Volker Lendecke
c29826a697 Fix some nonempty blank lines 2009-03-07 15:27:02 +01:00
Günther Deschner
c9496ba18a s3-spoolss: remove more leftovers from old enumports call.
Guenther
2009-03-07 01:12:18 +01:00
Günther Deschner
d75d350287 s3-rpcclient: add enummonitors command to enumerate print monitors.
Guenther
2009-03-07 00:55:39 +01:00
Günther Deschner
33a441b0c2 s3-spoolss: add rpccli_spoolss_enummonitors convenience wrapper.
Guenther
2009-03-07 00:55:39 +01:00
Günther Deschner
d8a05bd55d s3-spoolss: remove old spoolss_EnumMonitors.
Guenther
2009-03-07 00:55:38 +01:00
Günther Deschner
2561b2d2e2 s3-spoolss: use pidl for _spoolss_EnumMonitors.
Guenther
2009-03-07 00:55:38 +01:00
Günther Deschner
e9179a6850 s3-rpcclient: use rpccli_spoolss_enumports wrapper.
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
c7e19c2627 s3-spoolss: add rpccli_spoolss_enumports convenience wrapper.
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
631f277d1c s3-spoolss: remove old spoolss_EnumPorts.
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
03f1bec6ce s3-spoolss: use pidl for _spoolss_EnumPorts.
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
62d73b8854 s3-rpcclient: add enumprocdatatypes command to enumerate print processor data
types.

Guenther
2009-03-07 00:55:15 +01:00
Günther Deschner
2d24d3a380 s3-spoolss: add rpccli_spoolss_enumprintprocessordatatypes convenience wrapper.
Guenther
2009-03-07 00:55:00 +01:00
Günther Deschner
f9019c1837 s3-spoolss: remove old spoolss_EnumPrintProcDataTypes.
Guenther
2009-03-07 00:49:52 +01:00
Günther Deschner
3cf22a8856 s3-spoolss: use pidl for _spoolss_EnumPrintProcDataTypes.
Guenther
2009-03-07 00:49:51 +01:00
Günther Deschner
a58e59fc6e s3-rpcclient: add enumprocs command to enumerate print processors.
Guenther
2009-03-07 00:49:47 +01:00
Günther Deschner
b73411d650 s3-spoolss: add rpccli_spoolss_enumprintprocessors convenience wrapper.
Guenther
2009-03-07 00:43:13 +01:00
Günther Deschner
066a47b994 s3-spoolss: remove old spoolss_EnumPrintProcessors.
Guenther
2009-03-07 00:43:12 +01:00
Günther Deschner
f48ccec957 s3-spoolss: use pidl for _spoolss_EnumPrintProcessors.
Guenther
2009-03-07 00:42:58 +01:00
Stefan Metzmacher
bf85a14182 s3:make_test: run CHAIN1 test
metze
2009-03-06 16:38:30 +01:00
Stefan Metzmacher
3f3e15ab91 s3:libsmb: merge cli_setup_signing_state() into cli_initialise_ex()
metze
2009-03-06 16:37:22 +01:00
Stefan Metzmacher
6e572d40a9 s3:libsmb: remove cli_setup_signing_state() and add struct cli_state *cli_initialise_ex()
This prepares the next changes.

metze
2009-03-06 16:37:21 +01:00
Stefan Metzmacher
589eb81e3f s3:winbindd_cm: remove useless cli_setup_signing_state(*cli, Undefined) call
cli_setup_signing_state() with Undefined is a noop.

metze
2009-03-06 16:37:20 +01:00
Stefan Metzmacher
196a5d0388 s3:signing: the seqnum should only be decremented by 1 for ntcancel requests
[MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum
is incremented by only for ntcancel requests for any other
request it's by incremented by 2, even if it doesn't expect
a response.

metze
2009-03-06 16:37:20 +01:00
Stefan Metzmacher
4b6cbe80b2 s3:errormap: add ECANCELED, ERRDOS/ERRbadfid, NT_STATUS_CANCELLED mapping
If someone knows a better dos error, please tell me...

metze
2009-03-06 16:37:19 +01:00
Stefan Metzmacher
918e6288fa s3:libsmb: smb signing works the same for extented and non-extended security
This is only cosmetic, but it makes it easier to understand.

metze
2009-03-06 16:18:50 +01:00