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
552164c7bc
s3:smbcquotas: pass down NULL instead of a zero sockaddr_storage
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
d60a1b4bb0
s3:smbcacls: pass down NULL instead of a zero sockaddr_storage
...
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
6cc61d6341
s3:net_time: expect const sockaddr_storage in cli_servertime()
...
We don't want to modify the value.
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
acf4b84cbf
s3:libnet: use cli_state_remote_sockaddr() in libnet_DomainJoin()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
8bea5d6402
s3:winbindd_cm: use cli_state_[local|remote]_sockaddr()
...
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
cd71c5746b
s3:torture: use cli_state_disconnect() to close the socket on SIGALRM
...
metze
2011-07-22 17:06:07 +02:00
Stefan Metzmacher
5bd80b20a1
s3:smbtree: try to fix completely broken logic in get_workgroups()
...
metze
2011-07-22 17:06:07 +02:00
Michael Adam
efbe1602bd
s3:loadparm: fix the reload of the configuration: also reload activated registry shares
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Jul 22 16:53:49 CEST 2011 on sn-devel-104
2011-07-22 16:53:49 +02:00
Michael Adam
ec113a58a4
s3:loadparm: add reload_registry_shares() - reload only those shares already loaded
2011-07-22 15:42:18 +02:00
Michael Adam
2b4bb9b7a1
s3:smbclient: print nt status code when smb echo fails
2011-07-22 15:42:17 +02:00
Michael Adam
d67a91b955
s3:smbclient: add a "tdis" command to view and change the tree id (tid).
...
This low level command can be used to switch between tree connects in one
session.
2011-07-22 15:42:17 +02:00
Michael Adam
7327bde81a
s3:smbclient: add a "tdis" command to do a tree disconnect (close a connection to a share)
2011-07-22 15:42:17 +02:00
Michael Adam
88d0e44df3
s3:smbclient: add a "tcon" command to do a tree connect (connect to a share)
2011-07-22 15:42:16 +02:00
Michael Adam
281c6d02bd
s3:smbclient: add "logoff" command to close the session
2011-07-22 15:42:16 +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
Andrew Tridgell
2d21fe079f
s4-messaging: fixed the removal of messaging sockets in child tasks
...
when a child task exits we were firing a destructor on any inherited
messaging contexts, which could trigger a removal of the parents
message socket and messaging database entry.
This adds a new auto_remove flag to imessaging_init(), and exposes the
cleanup code for use by the stream service.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Jul 22 08:09:06 CEST 2011 on sn-devel-104
2011-07-22 08:09:06 +02:00
Jeremy Allison
fafd386910
Fix const warning.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jul 22 01:58:39 CEST 2011 on sn-devel-104
2011-07-22 01:58:39 +02:00
Simo Sorce
b19b05cd0a
s3-rpc_server: Do not set msg_ctx twice
...
msg_ctx was already passed to make_base_pipes_struct,
no need to set it again.
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Fri Jul 22 00:47:28 CEST 2011 on sn-devel-104
2011-07-22 00:47:28 +02:00
Stefan Metzmacher
2b1fc7c0d3
s3:winbindd_cm: remove unused checks for address family
...
If we got a connection, we don't need to check what
address family it uses.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jul 21 23:33:48 CEST 2011 on sn-devel-104
2011-07-21 23:33:48 +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
04b740d18b
s3:include: remove unused cli_state->called and cli_state->calling
...
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
Andreas Schneider
fb2ee304a8
s3-rpc_server: Pass msg_ctx to make_base_pipes_struct().
...
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Jul 21 21:08:32 CEST 2011 on sn-devel-104
2011-07-21 21:08:31 +02:00
Simo Sorce
156a0ffe54
s3-rpc_server: Create common function to allocate pipes_struct
...
Avoid code duplication and fix bug where a new pipe was not added to
InternalPipes upon creation in make_server_pipes_struct()
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Jul 21 19:50:02 CEST 2011 on sn-devel-104
2011-07-21 19:50:02 +02:00
Simo Sorce
759a04e58a
s3-rpc_server: Move pipe/handles functions
...
Put InternalPipes related functions in rpc_handles.c and out of rpc_ncacn_np.c
rpc_handles.c is the only file that really uses them after all and ncacn_np.c
is the wrong place for that stuff.
While ther remove unnecessary wrapper functions now that the InternalPipes
static variable is directly accessible.
Also move all pipes_struct related header stuff in its own rpc_pipes.h header.
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-07-21 18:40:23 +02:00
Andreas Schneider
0d8f65b346
s3-rpc_server: Fixed header define.
2011-07-21 18:40:23 +02:00
Andreas Schneider
6a4a6efdc9
s3-rpc_server: Remove unused endpoint information.
2011-07-21 18:40:23 +02:00
Andreas Schneider
4a6a588e44
s3-rpc_server: We need to copy the session_info for external pipes.
...
Andrew please check!
2011-07-21 18:40:23 +02:00
Andreas Schneider
19288f9784
s3-rpc_server: Duplicate the pipe name.
2011-07-21 18:40:23 +02:00
Andreas Schneider
3a43ef52db
s3-rpc_server: Free the np dir.
2011-07-21 18:40:22 +02:00
Andreas Schneider
304e8116a9
s3-rpc_server: Fix messaging context in the pipes struct.
2011-07-21 18:40:22 +02:00
Andreas Schneider
f5da8ed889
s3-rpc_server: Add my copyright.
2011-07-21 18:40:22 +02:00
Michael Adam
71b49f5596
s3:loadparm: fix an implicit cast warning in string intialization in init_globals()
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Jul 21 18:39:15 CEST 2011 on sn-devel-104
2011-07-21 18:39:15 +02:00
Michael Adam
cf50df5c69
s3:loadparm: add support for P_BYTES to lp_do_parameter() - fix a build warning
...
(taken from s4 loadparm)
2011-07-21 17:24:18 +02:00
Michael Adam
5158fd1688
s3:loadparm: add support for P_CMDLIST to lp_do_parameter - fix a build warning
2011-07-21 17:24:18 +02:00
Michael Adam
3c8e94b6c4
s3:loadparm: add support for P_CMDLIST to lp_save_defaults() - fix build warning
2011-07-21 17:24:18 +02:00
Michael Adam
ebdec404a4
s3:loadparm: add support for P_BYTES to lp_save_defaults - fix build warning
2011-07-21 17:24:18 +02:00