fd2eb0dfd0
s4 provision: move update_machine_account_password to helpers
...
This is to allow reuse of this function and also unit tests
Signed-off-by: Andrew Bartlett <abartlet@samba.org >
2010-07-15 22:08:20 +10:00
ff93d58b60
s3: Fix crashes in the printing code
...
create_conn_struct did not create the conn->sconn!=NULL assumption we now
depend on. Thanks to Andreas Schneider for testing!
2010-07-15 10:38:37 +02:00
23ad6919a1
s3-dcerpc: Break memory hierarchy for shared structure
...
Handles are shared among multiple pipes_struct. We cannot allocate
them on any specific pipes_struct or it will vanish for all others
as soon as that pipes_struct is freed, leaving back dangling
pointers.
Signed-off-by: Andreas Schneider <asn@samba.org >
2010-07-14 15:03:02 +02:00
d35e9008a7
s4: Added acl search tests for anonymous connection.
...
The tests make sure that we comply with dsHeuristics setting and
restrict anonymous access to rootDSE. They will be enabled when the
implementation is pushed. tests are verified against win2k8.
2010-07-14 14:44:46 +03:00
e30aa45666
s3-dcerpc: fix crash bug in error path of process_complete_pdu().
...
Guenther
2010-07-14 12:36:47 +02:00
ee56f74cae
Fixed system_session_anon to actually make an anonymous session
...
It seems that because the flag is false, this always used the supplied credentials
rhather than establish anonymous connection.
2010-07-14 10:30:40 +03:00
0d95cee58f
s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS
...
This fixes a bug where register_existing_vuid() could be called with a
NULL server_info if the alloction failed.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org >
2010-07-14 16:22:49 +10:00
1debe30689
s3:smbd Give the kerberos session key a parent
...
Nothing will free this, so this prevents a memory leak.
Andrew Bartlett
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
Signed-off-by: Andrew Tridgell <tridge@samba.org >
2010-07-14 16:22:49 +10:00
39d1a525d1
s3:smbd Fix segfault if register_existing_vuid() fails
...
The register_existing_vuid() call will handle both the ntlmssp_end and
vuid invalidation internally, so we don't want to do it again.
Andrew Bartlett
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
Signed-off-by: Andrew Tridgell <tridge@samba.org >
2010-07-14 16:22:49 +10:00
bfdd85d4a5
s3-selftest: enable RPC-BIND against s3.
...
Guenther
2010-07-14 01:34:48 +02:00
595c5a2498
s4-smbtorture: add very simple RPC-BIND testsuite.
...
Guenther
2010-07-14 01:34:48 +02:00
14cf257969
s4-smbtorture: rename rpc/bind.c to rpc/multi_bind.c.
...
Guenther
2010-07-14 01:34:28 +02:00
7dad3251e3
s3-libnet: add missing header file, sorry.
...
Guenther
2010-07-13 23:39:20 +02:00
80b47fcb0a
s3-libnet: better separate headers.
...
Guenther
2010-07-13 22:40:46 +02:00
f85167a161
s3-winbind: Don't cache queries to builtin and own sam domain.
2010-07-13 19:17:41 +02:00
57ebc8af80
s3-winbind: Set status before we leave in some msrpc functions.
2010-07-13 19:17:41 +02:00
5bdb8b472c
Revert "Remove the global char *LastDir."
...
Volker pointed out I'd missed the "last directory" cache
part of this code. Return us to caching the directory we're
in (reduces sys call load).
Mea maxima culpa.
Jeremy.
This reverts commit 2f30aea332
.
2010-07-13 09:30:35 -07:00
53e1586e2a
s3-waf: fix the build.
...
Guenther
2010-07-13 17:08:16 +02:00
0e31a3af94
s3-ldb: fix build warning.
...
Guenther
2010-07-13 16:57:27 +02:00
0b2d965e4b
s4: Reorganized dsHeuristics reset so the code can be reused
...
Moved the setting of dsHeuristics to a method as soon we will have to set other
values as well in different tests
2010-07-13 17:15:54 +03:00
0c93b7dff7
s3-dcerpc: Remove unused functions and headers
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:12 +02:00
bc6a3e0030
s3-dcerpc: Use dcerpc_push_ncacn_packet() in api_pipe_alter_context()
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:12 +02:00
3ba93a986f
s3-dcerpc: Use dcerpc_push_dcerpc_auth() for spnego auth continuations.
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:12 +02:00
70500734f9
s3-dceprc: Use dcerpc_push_ncacn_packet() in api_pipe_bind_req()
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:12 +02:00
f6648c500b
s3-dcerpc: Use a DATA_BLOB in bind processing and avoid one mem copy
...
Also move dcerpc_push_dcerpc_auth() invocation in api_pipe_bind_req()
to simplify the workflow.
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
8213bba892
s3-dcerpc: Rearrange api_pipe_bind_req() to do checks before allocating memory
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
87605e2030
s3-dcerpc: fix dcerpc_push_ncacn_packet, pass arg by address
...
There is no need to copy the whole structure twice by passing it in by value.
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
fe9036cf5b
s3-dcerpc: pass the packet to setup_bind_nack()
...
Allows to not rely on p->call_id but use the value directly from the request
packet header.
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
272704e8c2
s3-dceprc: Add debug messages
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
4ba89230ae
s3-dcerpc: Remove unused members
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
29a3142be8
s3-dcerpc: Remove unused functions
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
8e235df2de
s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requests
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:11 +02:00
e340aa40d1
dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c file
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
77fb3649ce
s3-dceprc: Store opnum in its own variable
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
a138b3d31e
s3-dceprc use a DATA_BLOB to hold the curren pdu in pipes_struct
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
d078b54b22
s3-dcerpc: use dceprc_push_ncacn_packet_header in create_next_pdu_noauth()
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
53e9c26271
s3-dcerpc: Use dcerpc_push_ncacn_packet_header() in create_next_pdu_schannel()
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
98913d8f44
s3-dcerpc: use dcerpc_push_ncacn_packet_header() in create_next_pdu_ntlmssp()
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
77699c777e
sr-dcerpc: add dcerpc_push_ncacn_packet_header()
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
aca330a2c5
s3-dcerpc delay rpc header unmarshalling
...
Use dcerpc_get_frag_length() to get the whole pdu first
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
43064a74a3
s3-dcerpc: Remove unused headers
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:10 +02:00
cf664b73a4
s3-dcerpc: Use dcerpc_set_frag_length()
...
Automatically calculate the fragment length where possible.
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:09 +02:00
ea66d8e4a5
s3-dcerpc: link against ../librpc/rpc/dcerpc_util.c
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org >
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:09 +02:00
716f9d6847
s4-dcerpc: move some util functions up to main librpc directory.
...
Guenther
Signed-off-by: Simo Sorce <idra@samba.org >
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:09 +02:00
2297913829
s3-dcerpc: Remove unused prototype
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 14:44:09 +02:00
25d487bebf
s3-dcerpc: Fix ntlmssp sign/seal.
...
Header calculation was misplaced.
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 01:35:16 +02:00
6555307aa1
s3-dceprc: Fix auth_length in auth3 response
...
Signed-off-by: Günther Deschner <gd@samba.org >
2010-07-13 01:35:05 +02:00
1b51ddd370
s3-dcerpc: Fix miscalculation of buffer start address
...
This was breaking schannel
2010-07-12 15:10:45 -04:00
77a3858f2f
tsocket: Fix some unreachable code
2010-07-11 18:14:33 +02:00
c186f92437
s3: [ug]id_to_unix_... can not fail
...
Remove some silly failure checks
2010-07-11 17:33:34 +02:00