Stefan Metzmacher
1aae898908
s3:clikrb5: fix the build with newer heimdal versions
...
krb5_get_default_in_tkt_etypes() requires a 3rd argument
if KRB5_PDU_NONE is available.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jul 14 21:21:13 CEST 2011 on sn-devel-104
2011-07-14 21:21:13 +02:00
Günter Kukkukk
9b3357c54e
Fix bug 8305 - nmbd segfaults - when using "smbtree ..."
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jul 13 16:35:16 CEST 2011 on sn-devel-104
2011-07-13 16:35:16 +02:00
Stefan Metzmacher
a1c1f8c83b
s3:libsmb: remove unused cli_smb_inbuf()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 13 01:19:51 CEST 2011 on sn-devel-104
2011-07-13 01:19:51 +02:00
Stefan Metzmacher
8a234cbe15
s3:libsmb: remove unused cli_oplock_handler()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 10:53:52 CEST 2011 on sn-devel-104
2011-07-12 10:53:52 +02:00
Stefan Metzmacher
c07c4123d9
s3:libsmb: s/SMBkeepalive/NBSSkeepalive
...
metze
2011-07-12 09:44:04 +02:00
Stefan Metzmacher
7b73b6f964
s3:libsmb: remove unused cli->privileges
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 09:30:49 CEST 2011 on sn-devel-104
2011-07-12 09:30:49 +02:00
Stefan Metzmacher
a2e248f270
s3:libsmbclient: use cli_state_is_connected() in SMBC_check_server()
...
metze
2011-07-11 18:18:27 +02:00
Stefan Metzmacher
e7c9319cac
s3:libsmbclient: don't log the lowlevel fd in smbc_free_context()
...
metze
2011-07-11 18:18:27 +02:00
Stefan Metzmacher
7bba81f69d
s3:libsmb: add cli_state_disconnect()
...
metze
2011-07-11 18:18:26 +02:00
Stefan Metzmacher
fa60a299f5
s3:libsmb: make use of cli_state_is_connected()
...
metze
2011-07-11 18:18:23 +02:00
Stefan Metzmacher
2b70c0f4f3
s3:libsmb: remove unused cli_set_port()
...
metze
2011-07-11 16:39:15 +02:00
Stefan Metzmacher
893d137f3f
s3:libsmb: also remember the local socket address after connect
...
metze
2011-07-11 16:39:15 +02:00
Stefan Metzmacher
a2300094db
s3:smb2cli_base: add my copyright
...
metze
2011-07-11 16:35:11 +02:00
Björn Baumbach
f2c5a0afd2
s3-libsmb: let cli_lock64 return NTSTATUS instead of bool
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jul 11 12:48:38 CEST 2011 on sn-devel-104
2011-07-11 12:48:38 +02:00
Björn Baumbach
57194d8c5d
s3-libsmb: introduce cli_lock32()
...
Same like cli_lock() but return NTSTATUS instead of bool
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-11 11:36:50 +02:00
Stefan Metzmacher
957876e76c
s3:smb2cli_tcon: use tevent_req_oom()
...
metze
2011-07-10 17:11:14 +02:00
Volker Lendecke
fd240b546e
s3: Fix Coverity ID 2587,2588: CHECKED_RETURN
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jul 10 10:36:11 CEST 2011 on sn-devel-104
2011-07-10 10:36:11 +02:00
Stefan Metzmacher
244c856cbf
s3:smb2cli_base: ask for the next response if there're still pending requests
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jul 9 13:55:04 CEST 2011 on sn-devel-104
2011-07-09 13:55:04 +02:00
Stefan Metzmacher
8b4a3681e5
s3:smb2cli_base: make use of tevent_req_defer_callback()
...
In order to notify requests of transport layer errors,
we need to defer the triggering of the callbacks,
otherwise we may crash, if one of the callbacks
destroys the cli_state.
metze
2011-07-09 12:40:28 +02:00
Stefan Metzmacher
facc110c79
s3:smb2cli_base: fix memory hierachy in smb2cli_req_recv()
...
We need to use talloc_reference() if there're more than one
response, but we use it in a way that the caller can't
call talloc_free() or talloc_unlink() on it.
metze
2011-07-09 12:40:28 +02:00
Stefan Metzmacher
504d092aa7
s3:smb2cli_base: call smb2cli_req_unset_pending() before tevent_req_done()
...
metze
2011-07-09 12:40:27 +02:00
Stefan Metzmacher
242ca5dba3
s3:smb2cli_base: unset the destructor in smb2cli_req_unset_pending()
...
metze
2011-07-09 12:40:27 +02:00
Stefan Metzmacher
c55bfc0733
s3:smb2cli_base: keep the order of pending requests
...
metze
2011-07-09 12:40:27 +02:00
Stefan Metzmacher
a9f03f1982
s3:smb2cli_base: rename 'result' => 'req' in smb2cli_req_create()
...
metze
2011-07-09 12:40:26 +02:00
Stefan Metzmacher
d6cd1ee032
s3:libsmb: remove unused cli->inbuf and cli->bufsize
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 8 15:21:46 CEST 2011 on sn-devel-104
2011-07-08 15:21:46 +02:00
Stefan Metzmacher
fc7359befb
s3:libsmb: clistr_pull_talloc() doesn't need base_ptr and flags2 with STR_ASCII
...
interpret_short_filename() always parses OEM_Strings (in DOS charset).
metze
2011-07-08 14:09:10 +02:00
Stefan Metzmacher
7d757d6ac3
s3:libsmb: remove unused smb_dos_errstr()
...
metze
2011-07-08 14:09:10 +02:00
Stefan Metzmacher
83301d8b5a
s3:libsmb/smberr: make global const arrays static
...
metze
2011-07-08 14:09:10 +02:00
Stefan Metzmacher
235aedae50
s3:libsmb: don't use the cli->inbuf to store the last error
...
We keep the raw error in cli->raw_status now, until we fixed all
caller to get the NTSTATUS from the function calls.
metze
2011-07-08 14:09:09 +02:00
Stefan Metzmacher
2c160224c2
s3:libsmb: don't call cli_set_error() in cli_echo()
...
cli_smb_recv() already does it.
metze
2011-07-08 14:09:09 +02:00
Stefan Metzmacher
f0e6e5c37d
s3:libsmb: remove unused enum smb_read_errors infrastructure
...
metze
2011-07-08 14:09:08 +02:00
Stefan Metzmacher
06247a7a09
s3:libsmb: remove use of cli_errstr() in SMBC_server_internal()
...
metze
2011-07-08 14:09:07 +02:00
Stefan Metzmacher
fdd6c4e673
s3:libsmb: add smb2cli_query_directory*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:21 +02:00
Stefan Metzmacher
548f7d3f36
s3:libsmb: add smb2cli_write*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:21 +02:00
Stefan Metzmacher
22859b0e89
s3:libsmb: add smb2cli_read*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:21 +02:00
Stefan Metzmacher
d82be9588a
s3:libsmb: add smb2cli_flush*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:20 +02:00
Stefan Metzmacher
40ecdeb3fb
s3:libsmb: add smb2cli_close*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:20 +02:00
Stefan Metzmacher
2abc34cb4a
s3:libsmb: add smb2cli_create*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:20 +02:00
Stefan Metzmacher
f21720773f
s3:libsmb: add smb2cli_tcon*() and smb2cli_tdis*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:19 +02:00
Stefan Metzmacher
4efc85c6f1
s3:libsmb: add smb2cli_sesssetup*() and smb2cli_logoff*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:18 +02:00
Stefan Metzmacher
ab913d1768
s3:libsmb: add smb2cli_negprot*()
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:17 +02:00
Stefan Metzmacher
a0cf7bae60
s3:libsmb: add basic smb2 client infrastructure
...
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
2011-07-08 01:22:17 +02:00
Björn Baumbach
11426758d7
s3-libsmb: Remove use of cli_errstr()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
3cdf962d1e
s3:libsmb: finally remove unused cli_state->outbuf
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
0f006751ec
s3:libsmb: remove unused clistr_push_fn()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
30574a73d8
s3:libsmb: remove unused clistr_pull_fn()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
072a27fd9f
s3:libsmb: use trans2_bytes_push_str() in cli_tcon_andx_create() for the plaintext password
...
This makes sure we push the string always in DOS charset.
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
5b1ac1bcc3
s3:libsmb: use trans2_bytes_push_str() in cli_set_ea_path()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
cea9245909
s3:libsmb: use trans2_bytes_push_str() in cli_dfs_get_referral()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
2453164317
s3:libsmb: use a talloc_stackframe in cli_dfs_get_referral()
...
metze
2011-07-07 19:16:27 +02:00