Volker Lendecke
fac5c654e2
s3: Add a fallback for missing open&x support in OS/X Lion
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jul 29 17:55:20 CEST 2011 on sn-devel-104
2011-07-29 17:55:20 +02:00
Michael Adam
f764de64e3
s3:libsmb: use lp_load_client() and lp_load_client_no_reinit() in libsmb_context
2011-07-28 11:17:29 +02:00
Michael Adam
fbf254c19a
s3:libsmb: fix a call to lp_load to reinit the globals in any case
...
The potential previous lp_load of $HOME/.smb/smb.conf might have failed
halfway through and might have left globals initialized in an unwanted state.
So we should make sure to clean up before loading the dyn_CONFIGFILE()
2011-07-28 11:17:27 +02:00
Jeremy Allison
4fdad1960c
Fix bug #8324 - smbclient cannot list directories from a big-endian machine.
...
Two uses of the setup array are not being correctly byte-swapped to little
endian.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jul 27 03:14:48 CEST 2011 on sn-devel-104
2011-07-27 03:14:48 +02:00
Volker Lendecke
1335059ff5
s3: Fix async smb handling
...
In cli_echo with more than one response we ended up with more than one read_smb
request. One from the call to cli_smb_req_set_pending called from
cli_smb_received. The other one from cli_smb_received itself. I don't really
see another way to deal with this than to hold the read_smb request in the
cli_state.
Metze, please check!
Volker
2011-07-27 00:47:45 +02:00
Volker Lendecke
57a0f344a1
s3: Fix Coverity ID 2596, REVERSE_INULL
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jul 24 16:37:19 CEST 2011 on sn-devel-104
2011-07-24 16:37:19 +02:00
Stefan Metzmacher
824a300d2b
s3:libsmb: cli_set_secdesc() only needs a const struct security_descriptor
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jul 23 11:08:19 CEST 2011 on sn-devel-104
2011-07-23 11:08:19 +02:00
Stefan Metzmacher
6219bb9899
s3:libsmb: remove unused cli_query_secdesc_old()
...
metze
2011-07-23 09:55:54 +02:00
Stefan Metzmacher
baee2fbcfd
s3:libsmb_xattr: make use of the new cli_query_secdesc()
...
metze
2011-07-23 09:55:54 +02:00
Björn Baumbach
cb4fc92177
s3-libsmb: introduce new cli_query_secdesc() which returns NTSTATUS
...
Replacement for cli_query_secdesc_old()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:57 +02:00
Björn Baumbach
768646c9a2
s3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()
...
Will introduce new cli_query_secdesc() function
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:56 +02:00
Björn Baumbach
40e9d0c440
s3-libsmb: finally remove cli_read_old()
...
Replaced by new cli_read() which returns NTSTATUS instead of ssize_t.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:56 +02:00
Björn Baumbach
8bdbdd46f4
s3-libsmb/libsmb_file.c: replace cli_read_old() with cli_read()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:55 +02:00
Stefan Metzmacher
6d4f9fc251
s3:libsmb: move cli_state->desthost to cli_state->conn.remote_name
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 22 18:17:41 CEST 2011 on sn-devel-104
2011-07-22 18:17:41 +02:00
Stefan Metzmacher
9fe30f3c91
s3:libsmb_server: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
b5e9ada632
s3:libsmb/libsmb_dir: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
8277260ae7
s3:libsmb/clirap2: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
390b54554c
s3:libsmb/clifsinfo: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
ad40515d17
s3:libsmb/clidfs: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
77fdebc5e5
s3:libsmb/cliconnect: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
b87bd59ecb
s3:libsmb: add cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
b3e0b73280
s3:libsmb: remove const from cli_cm_display()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
48de329363
s3:libsmb: move cli_state->{src_ss,dest_ss} to cli_state->conn.{local_ss,remote_ss}
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
5c7749ac24
s3:libsmb: only pass const sockaddr_storage to cli_full_connection()
...
No direct or indirect caller needs this to be set.
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
814449ab01
s3:libsmb_server: pass NULL instead of a zero sockaddr_storage
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
1eb8c2ae22
s3:libsmb: only pass a const sockaddr_storage to cli_start_connection()
...
Let the caller use cli_state_remote_sockaddr() if needed.
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
0cd70ec169
s3:libsmb: let cli_connect_nb() only expect a const sockaddr_storage *dest_ss
...
Only one caller expects this value to be set,
which now calls cli_state_remote_sockaddr() to get the value.
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
7f0b4eed3b
s3:libsmb: use cli_state_remote_sockaddr() in smb2cli_tcon_send()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
fa42d2e262
s3:libsmb: add cli_state_[local|remote]_sockaddr()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
13dbd5021b
s3:libsmb: move cli_state->fd to cli_state->conn.fd
...
metze
2011-07-22 17:06:07 +02:00
Stefan Metzmacher
6d1757f189
s3:libsmb: make use of cli_state_disconnect()
...
metze
2011-07-22 17:06:07 +02:00
Stefan Metzmacher
103413da8b
s3:libsmb: make use of cli_state_is_connected()
...
metze
2011-07-22 17:06:07 +02:00
Stefan Metzmacher
a11cc880ef
s3:libsmb: move cli_state->outgoing to cli_state->conn.outgoing
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 22 09:53:59 CEST 2011 on sn-devel-104
2011-07-22 09:53:59 +02:00
Stefan Metzmacher
9f2b3b0be6
s3:libsmb: move cli_state->pending to cli_state->conn.pending
...
metze
2011-07-22 08:44:08 +02:00
Stefan Metzmacher
b94a7caa3a
s3:libsmb: fix compiler warnings in cli_state_create()
...
metze
2011-07-22 08:44:08 +02:00
Stefan Metzmacher
ebe258dd40
s3:libsmb: replace cli_initialise[_ex]() by cli_state_create()
...
This makes sure cli_state->src_ss and cli_state->dest_ss are always
initialized.
metze
2011-07-21 22:08:53 +02:00
Stefan Metzmacher
392ddf970c
s3:libsmb: don't pass cli->called.name to NTLMv2_generate_names_blob()
...
cli->called.name is never initialized, so this change doesn't change
the behavior. And this behavior seems to be correct, see
commit 29c0c37691
s4/libcli: do not use netbios name in NTLMv2 blobs w/o spnego.
metze
2011-07-21 22:08:52 +02:00
Stefan Metzmacher
25447a528a
s3:libsmb: move cli->vuid to cli->smb1.uid and hide it behind cli_state_[g|s]et_uid()
...
metze
2011-07-21 22:08:52 +02:00
Stefan Metzmacher
c70103f3f8
s3:libsmb: add cli_state_encryption_on()
...
metze
2011-07-21 22:08:51 +02:00
Björn Baumbach
8c360d7f76
s3-libsmb: introduce new NTSTATUS cli_read()
...
Replacement for cli_read_old()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-20 22:09:25 +02:00
Björn Baumbach
9b168e128a
s3-libsmb: replace cli_read() with cli_read_old()
...
Will introduce new cli_read() function.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-20 22:09:25 +02:00
Stefan Metzmacher
8f41e54d53
s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind cli_state_[g|s]et_tid()
...
metze
2011-07-20 15:56:27 +02:00
Stefan Metzmacher
1e3822115c
s3:libsmb: move cli->pid to cli->smb1.pid and hide it behind cli_[g|s]etpid()
...
metze
2011-07-20 15:55:08 +02:00
Stefan Metzmacher
9fb7e228f5
s3:libsmb: add cli->smb1.vc_num and hide it behind cli_state_get_vc_num()
...
This makes it clearer, why we send the pid value in the session setup.
metze
2011-07-20 15:54:31 +02:00
Stefan Metzmacher
6c31b610e4
s3:libsmb: move cli->mid to cli->smb1.mid
...
metze
2011-07-20 15:48:59 +02:00
Stefan Metzmacher
21a6bdc680
s3:libsmb: smb_bytes_talloc_string() doesn't need a cli_state
...
metze
2011-07-20 15:48:58 +02:00
Björn Baumbach
2052c2d6fa
s3-libsmb: remove unused cli_lock()
...
Replaced with cli_lock32()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 19 00:43:03 CEST 2011 on sn-devel-104
2011-07-19 00:43:03 +02:00
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