Matthieu Patou
62a32975c8
s4: Add unit test for increment_calculated_keyversion_number
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:21 +10:00
Matthieu Patou
9323901644
s4 upgradeprovision: introduce a new function to update the field use for calculating msds-keyversionnumber
...
This function change the version field of the unicodePwd in the
replPropertyMetaData so that the version is equal or
superior to the reference value passed.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:21 +10:00
Matthieu Patou
f97c90c9cd
s4 python: Add functions to samdb to manipulate version of replPropertyMetaData attribute
...
This change contains also helpers for attribute id to attribute oid
conversion and from attribute id to attribute name.
It brings also unit tests
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Matthieu Patou
6a0856da9c
s4 dsdb: Use the changereplmetadata control
...
This control allow to specify the replPropertyMetaData attribute to
be specified on modify request. It can be used for very specific needs
to tweak the content of the replication data.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Matthieu Patou
d861ebbd81
s4 dsdb: create a new control: changereplmetadata
...
This control is designed to allow replmetadata to be specified
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Matthieu Patou
b67a71f00b
ldb: allow ldb_sequence_number to be called in python
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Matthieu Patou
0496af8341
s4: Unit test update_machine_account_password through kinit
...
This patch is for testing the chgdcpass script which is mostly a call to
update_machine_account_password.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Matthieu Patou
7ea70f86ac
s4: Add a simple script to change dc password
...
This script will mostly be used by unit test (blackbox type) to test the
change of the dc password
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-15 22:08:20 +10:00
Matthieu Patou
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
Volker Lendecke
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
Simo Sorce
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
Nadezhda Ivanova
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
Günther Deschner
e30aa45666
s3-dcerpc: fix crash bug in error path of process_complete_pdu().
...
Guenther
2010-07-14 12:36:47 +02:00
Nadezhda Ivanova
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
Andrew Bartlett
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
Andrew Bartlett
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
Andrew Bartlett
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
Günther Deschner
bfdd85d4a5
s3-selftest: enable RPC-BIND against s3.
...
Guenther
2010-07-14 01:34:48 +02:00
Günther Deschner
595c5a2498
s4-smbtorture: add very simple RPC-BIND testsuite.
...
Guenther
2010-07-14 01:34:48 +02:00
Günther Deschner
14cf257969
s4-smbtorture: rename rpc/bind.c to rpc/multi_bind.c.
...
Guenther
2010-07-14 01:34:28 +02:00
Günther Deschner
7dad3251e3
s3-libnet: add missing header file, sorry.
...
Guenther
2010-07-13 23:39:20 +02:00
Günther Deschner
80b47fcb0a
s3-libnet: better separate headers.
...
Guenther
2010-07-13 22:40:46 +02:00
Andreas Schneider
f85167a161
s3-winbind: Don't cache queries to builtin and own sam domain.
2010-07-13 19:17:41 +02:00
Andreas Schneider
57ebc8af80
s3-winbind: Set status before we leave in some msrpc functions.
2010-07-13 19:17:41 +02:00
Jeremy Allison
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 2f30aea3324f32f9b8555e961256fc1280da2871.
2010-07-13 09:30:35 -07:00
Günther Deschner
53e1586e2a
s3-waf: fix the build.
...
Guenther
2010-07-13 17:08:16 +02:00
Günther Deschner
0e31a3af94
s3-ldb: fix build warning.
...
Guenther
2010-07-13 16:57:27 +02:00
Nadezhda Ivanova
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
272704e8c2
s3-dceprc: Add debug messages
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:11 +02:00
Simo Sorce
4ba89230ae
s3-dcerpc: Remove unused members
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:11 +02:00
Simo Sorce
29a3142be8
s3-dcerpc: Remove unused functions
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:11 +02:00
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
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
Simo Sorce
43064a74a3
s3-dcerpc: Remove unused headers
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-07-13 14:44:10 +02:00
Simo Sorce
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