Stefan Metzmacher
768581eee5
s3:libsmb: move cli->max_xmit to cli->conn.smb1.max_xmit
...
And keep cli->conn.smb1.client.max_xmit and
cli->conn.smb1.server.max_xmit.
metze
2011-09-15 12:12:24 +02:00
Stefan Metzmacher
b02d27ae05
s3:libsmb: move cli->smb1.mid to cli->conn.smb1.mid
...
metze
2011-09-15 12:12:23 +02:00
Stefan Metzmacher
595f0020d4
s3:libsmb: move cli->capabilities to cli->conn.smb1.capabilities
...
And keep cli->conn.smb1.client.capabilities and
cli->conn.smb1.server_capabilities.
metze
2011-09-15 12:12:23 +02:00
Stefan Metzmacher
74a581afe5
s3:libsmb: move cli->protocol to cli->conn.protocol
...
metze
2011-09-15 12:12:22 +02:00
Stefan Metzmacher
7f40b606c4
s3:libsmb: use local variables in cli_state_create()
...
We don't need to keep use_spnego, use_level_II_oplocks, force_dos_errors
and force_ascii within struct cli_state.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 15 10:12:17 CEST 2011 on sn-devel-104
2011-09-15 10:12:17 +02:00
Stefan Metzmacher
ff52be06e5
s3:libsmb: remove unused cli->is_samba
...
s3:libsmb: remove unused cli->is_samba
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14 13:12:52 -07:00
Stefan Metzmacher
73cc454af0
s3:client.h: remove unused defines
...
s3:client.h: remove unused defines
metze
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14 13:10:45 -07:00
Stefan Metzmacher
a26fe036fe
s3:smb2cli: split cli->smb2.gss_blob from cli->secblob
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 13 23:34:13 CEST 2011 on sn-devel-104
2011-09-13 23:34:13 +02:00
Stefan Metzmacher
80d2c2b00d
s3:libsmb: don't mix smb2 share capabilities with smb1 capabilities
...
metze
2011-09-13 18:12:22 +02:00
Stefan Metzmacher
b7a1fd95a6
s3:libsmb: the smb2 server capabilities from the session setup are 32-bit
...
metze
2011-09-13 18:12:22 +02:00
Stefan Metzmacher
a7e418dd45
s3:libsmb: add CLI_FULL_CONNECTION_FORCE_ASCII
...
metze
2011-09-08 17:51:30 +02:00
Stefan Metzmacher
db79aa7260
s3:libsmb: add CLI_FULL_CONNECTION_FORCE_DOS_ERRORS
...
metze
2011-09-08 17:51:29 +02:00
Stefan Metzmacher
c485df9530
s3:libsmb: abstract the incoming dispatch function via a function pointer
...
This will allow handling of SMB2 in future.
metze
2011-08-12 18:06:04 +02:00
Stefan Metzmacher
c6a3dedd99
s3:libsmb: store the remote_realm on the cli_state
...
metze
2011-08-10 11:14:55 +02:00
Stefan Metzmacher
c399ad4cdd
s3:include: change cli->protocol to enum protocol_types
...
metze
2011-08-02 04:54:28 +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
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
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
13dbd5021b
s3:libsmb: move cli_state->fd to cli_state->conn.fd
...
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
04b740d18b
s3:include: remove unused cli_state->called and cli_state->calling
...
metze
2011-07-21 22:08:53 +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
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
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
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
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
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
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
f0e6e5c37d
s3:libsmb: remove unused enum smb_read_errors infrastructure
...
metze
2011-07-08 14:09:08 +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
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
Stefan Metzmacher
3cdf962d1e
s3:libsmb: finally remove unused cli_state->outbuf
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
d921200e75
s3:libsmb: use clistr_pull_talloc() for short_name in interpret_long_filename()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
fdfb5e95fe
s3:libsmb: remove unused cli_state_seqnum infrastructure
...
metze
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jun 10 20:37:54 CEST 2011 on sn-devel-104
2011-06-10 20:37:54 +02:00
Volker Lendecke
01386ff313
s3: Extract the guest_login field in sesssetup
2011-05-29 12:49:34 +02:00
Jeremy Allison
1815f0298f
Remove fstrings from client struct. Properly talloc strings (ensuring we never end up with a NULL pointer).
2011-04-27 12:06:25 -07:00
Günther Deschner
c3d8991164
s3-build: finally remove references to ndr and dcerpc headers that were included globally.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Apr 13 23:07:05 CEST 2011 on sn-devel-104
2011-04-13 23:07:05 +02:00
Günther Deschner
9824e2e5ee
s3-rpc_client: add and use rpc_client/rpc_client.h.
...
Guenther
2011-04-13 22:23:59 +02:00
Günther Deschner
64b664155b
s3-rpc_client: move rpc_cli_transport structs and protos to rpc_transport.h
...
Guenther
2011-04-12 12:20:43 +02:00
Günther Deschner
6c8d802391
s3-libsmb: move smb encryption structs into own header.
...
Guenther
2011-03-16 10:11:16 +01:00
Stefan Metzmacher
2907310803
s3:rpc_server: make it possible to use rpcint_binding_handle() directly
...
metze
2010-09-04 09:01:10 +02:00
Stefan Metzmacher
e79c8098d6
s3:include: remove unused dispatch* fn pointers from rpc_pipe_client
...
metze
2010-08-16 14:30:19 +02:00
Stefan Metzmacher
2c0e296dd7
s3:rpc_client: add dcerpc_binding_handle backend
...
metze
2010-08-12 14:31:21 +02:00
Volker Lendecke
fcdda8f443
s3: Remove "cli" from "struct finfo"
2010-07-30 17:01:33 +02:00
Simo Sorce
250e341e0a
misc: Remove unused structure elements
2010-07-28 12:20:13 -04:00
Andreas Schneider
46397f788b
s3-rpc_server: Use struct pipes_struct.
2010-07-28 10:39:23 +02:00
Volker Lendecke
dace013898
s3: Remove a typedef (struct file_info)
2010-07-27 21:05:35 +02:00
Simo Sorce
4581902553
s3-dcerpc: Unifiy cli_pipe_auth_data and pipe_auth_data
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20 15:52:37 +10:00
Günther Deschner
fbb7814f91
s3: only use netlogon/nbt header when needed.
...
Guenther
2010-05-31 11:32:37 +02:00
Jeremy Allison
f3b8e31f83
Split out the client unix capabilities to those the server offered, and those the client asked for.
...
This fixes a bug when using encrypted transport and DFS links. Found
by my basic DFS torture test, which I'll check in next. Testing *rocks* :-).
Jeremy.
2010-04-13 18:41:14 -07:00
Stefan Metzmacher
99664ad154
s3:rpc_client: add set_timeout hook to rpc_cli_transport
...
metze
2010-03-29 18:11:17 +02:00
Stefan Metzmacher
4f41b53487
s3:rpc_client: add rpccli_is_connected()
...
metze
2010-03-29 18:11:16 +02:00
Volker Lendecke
ca48d6ab77
s3: Add CLI_FULL_CONNECTION_USE_CCACHE
2010-01-24 20:32:17 +01:00
Volker Lendecke
a03a83ad26
s3: Add ccache use to cli_session_setup_ntlmssp
2010-01-24 20:32:17 +01:00
Andrew Bartlett
5b37cd23bf
s3:ntlmssp: remove the typedef NTLMSSP_STATE
...
Andrew Bartlett
2009-12-22 21:07:53 +01:00
Volker Lendecke
e181b88978
Revert "s3: Do not reference ndr_table_<pipe> in the cli_ routines directly"
...
This reverts commit daa964013b
.
2009-11-08 19:43:47 +01:00
Volker Lendecke
daa964013b
s3: Do not reference ndr_table_<pipe> in the cli_ routines directly
2009-11-08 13:12:13 +01:00
Günther Deschner
799f8d7e13
schannel: fully share schannel sign/seal between s3 and 4.
...
Guenther
2009-09-16 01:55:06 +02:00
Günther Deschner
d3af0346c8
s3-dcerpc: use dcerpc_AuthLevel and remove duplicate set of flags.
...
Guenther
2009-09-15 17:49:34 +02:00
Günther Deschner
393a1f594d
s3-rpc_client: add enum dcerpc_transport_t to rpc_cli_transport struct.
...
Guenther
2009-09-11 00:26:24 +02:00
Stefan Metzmacher
dcdefc17b9
s3:rpc_client: add dispatch_send/recv() to struct rpc_pipe_client
...
metze
2009-07-31 12:49:45 +02:00
Jeremy Allison
8cf78ff553
Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.
...
Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions.
This is smaller than it looks, it just fixes a lot of old code.
Next up, ensure all cli_XX functions return NTSTATUS.
Jeremy.
2009-04-30 15:26:43 -07:00
Andrew Bartlett
baf7274fed
Make Samba3 use the new common libcli/auth code
...
This is particuarly in the netlogon client (but not server at this
stage)
2009-04-14 16:23:44 +10:00
Volker Lendecke
3084d49cc0
Add a bad hack to enable level 2 oplocks in torture_open_connection_share
2009-04-06 21:32:08 +02:00
Volker Lendecke
64067f9204
Remove async_req based async libsmb infrastructure
2009-04-06 21:32:07 +02:00
Volker Lendecke
8bdac3615a
Add new async libsmb infrastructure
...
I know this is just yet another iteration, but I like this one much better than
the one that exists right now :-)
It will do trans and echo requests without a _recv helper and without
unnecessary memcpy().
2009-04-06 21:32:06 +02:00
Volker Lendecke
fa62836839
Convert rpc_cli_transport->trans to tevent_req
2009-03-24 13:23:41 +01:00
Volker Lendecke
8e0d9d002a
Convert rpc_cli_transport->write to tevent_req
2009-03-24 13:23:41 +01:00
Volker Lendecke
22badee4bf
Convert rpc_cli_transport->read to tevent_req
2009-03-24 13:23:40 +01:00
Stefan Metzmacher
6af15943c6
s3:libsmb: use new simplified smb_signing code for the client side
...
We store the seqnum/mid mapping in the cli_request structure
for async requests and in the cli_state structure for sync calls.
We skip the signing check for oplock requests while waiting
for async requests coming in.
metze
2009-03-23 12:21:14 +01:00
Jeremy Allison
f48a345e4a
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
...
password talloc'ed strings within the cli_struct.
Jeremy.
2009-03-13 17:49:24 -07:00
Jeremy Allison
e5136e9849
Remove the static "struct client_connection" mess which is part of
...
the problem that stops libsmbclient being thread safe. Subsidiary
DFS connections are now hung off a list inside the cli_state struct.
Much more to do in order to get libsmbclient to thread safety, but
this is a good start.
Jeremy.
2009-03-12 17:59:24 -07:00
Volker Lendecke
6b1170c9d6
Fix a typo
2009-03-09 16:13:31 +01:00
Volker Lendecke
b7094c0b80
Abstract away the transport in cli_pipe.c
...
Sorry for the monster checkin, I could not really find a way to do this in
steps.
2009-01-22 22:59:54 +01:00
Volker Lendecke
42fa1441bf
Add struct rpc_cli_transport
2009-01-22 22:59:53 +01:00
Jelmer Vernooij
11a25f9050
Allow calling DCE/RPC server implementations directly using
...
rpc_pipe_client.
2009-01-21 14:05:51 +01:00
Günther Deschner
b883bcd4ff
s3: store user session key in cli_rpc_pipe_open_noauth().
...
Guenther
2008-12-05 14:27:03 +01:00
Jelmer Vernooij
4746f79d50
Use {u,}int64_t instead of SMB_BIG_{U,}INT.
2008-10-14 01:59:36 +02:00
Volker Lendecke
0e9f348f1d
Add a more explaining comment
...
(This used to be commit edd70836da
)
2008-09-12 21:56:40 +02:00
Volker Lendecke
b054f14111
Activate code to enable chained requests
...
Add the CHAIN1 torture test
(This used to be commit 82992d74a9
)
2008-08-28 18:15:59 +02:00
Volker Lendecke
77d1b29e25
Move "struct cli_request" from client.h to async_smb.h
...
Also add some comments
(This used to be commit 2ecc311f78
)
2008-08-28 17:53:37 +02:00
Volker Lendecke
2650207d4a
Remove cli->event_ctx, pass it explicitly
...
Storing the event_context as permanent state in struct cli_state creates more
complex code than necessary IMO.
(This used to be commit debb37f703
)
2008-08-28 17:53:37 +02:00
Jeremy Allison
617bf10c66
Fix bug #5675 with a varient of Tim Waugh's patch,
...
as proposed by James Peach.
Jeremy.
(This used to be commit 5c27ad7583
)
2008-08-07 17:55:57 -07:00
Volker Lendecke
65dfc40a4a
Store copies of the syntax ids in rpc_pipe_client
...
(This used to be commit 848a3497e3
)
2008-07-20 17:06:21 +02:00
Volker Lendecke
ec70996fc7
Rename rpc_pipe_client.tcp.sock to rpc_pipe_client.sock.fd
...
(This used to be commit 2ff908a902
)
2008-05-21 23:35:24 +02:00
Volker Lendecke
63e0884df5
Introduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client
...
Should be no functional change, just a change in the data structure
(This used to be commit 3433f430b0
)
2008-04-25 11:12:52 +02:00
Volker Lendecke
324e92ea67
Make use of rpccli_xxx_bind_data
...
(This used to be commit f9bc336aff
)
2008-04-25 11:12:51 +02:00
Volker Lendecke
862d7e32b9
Move user/domain from rpc_pipe_client to cli_pipe_auth_data
...
(This used to be commit 42de50d2cd
)
2008-04-25 11:12:50 +02:00
Volker Lendecke
9e9d40d097
Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client
...
(This used to be commit f665afaaa3
)
2008-04-25 11:12:50 +02:00
Volker Lendecke
b78453326b
Remove the "pwd" struct from rpc_pipe_client
...
The only user of this was decrypt_trustdom_secret, and this only needs the NT
hash anyway.
(This used to be commit 3d8c2a47e6
)
2008-04-21 23:36:05 +02:00
Volker Lendecke
33592bdcb9
Refactoring: Move stuff around for creating a pipe
...
(This used to be commit 45be749ed6
)
2008-04-20 14:08:10 +02:00
Volker Lendecke
f56eedb95c
Remove the pipe_idx variable from rpc_pipe_client
...
(This used to be commit 4840febcd4
)
2008-04-20 11:47:33 +02:00
Volker Lendecke
9048cafbea
Move srv_name_slash from cli_state to rpc_pipe_client
...
(This used to be commit a9061e52e1
)
2008-04-20 00:14:13 +02:00
Volker Lendecke
2a2188591b
Add "desthost" to rpc_pipe_client
...
This reduces the dependency on cli_state
(This used to be commit 783afab9c8
)
2008-04-20 00:13:09 +02:00