samba.git
16 years agor21532: Add tests for StripPrefixes utility function.
Jelmer Vernooij [Sun, 25 Feb 2007 09:55:57 +0000 (09:55 +0000)]
r21532: Add tests for StripPrefixes utility function.

16 years agor21531: Use pidl-specific utility functions. Patch from Ronnie Sahlberg
Jelmer Vernooij [Sun, 25 Feb 2007 09:35:32 +0000 (09:35 +0000)]
r21531: Use pidl-specific utility functions. Patch from Ronnie Sahlberg

16 years agor21528: This file gets called by testit(), so it shouldn't call testit().
Brad Henry [Sat, 24 Feb 2007 18:57:29 +0000 (18:57 +0000)]
r21528: This file gets called by testit(), so it shouldn't call testit().

NET tests against Windows weren't getting run, testit() here just created a recipe.

16 years agor21524: don't send unitialized data to the socket
Stefan Metzmacher [Sat, 24 Feb 2007 09:16:04 +0000 (09:16 +0000)]
r21524: don't send unitialized data to the socket

metze

16 years agor21523: fix a valgrind warning, we write the struct content to the file and should...
Stefan Metzmacher [Sat, 24 Feb 2007 09:00:23 +0000 (09:00 +0000)]
r21523: fix a valgrind warning, we write the struct content to the file and should not leave
t2.out uninialized

metze

16 years agor21522: Stop passing the VM config file path to wintest_2k3_dc.sh on the command...
Brad Henry [Fri, 23 Feb 2007 18:02:16 +0000 (18:02 +0000)]
r21522: Stop passing the VM config file path to wintest_2k3_dc.sh on the command line.

Forgot this one in the last commit.

16 years agor21521: Add missing quotes around shell variables which could have spaces.
Brad Henry [Fri, 23 Feb 2007 18:01:18 +0000 (18:01 +0000)]
r21521: Add missing quotes around shell variables which could have spaces.
Stop passing the VM config file path to wintest_2k3_dc.sh on the command line as it is now properly passed through the environment.

Windows tests, including the DC tests found in test_w2k3.sh should work properly with 'make wintest' and a configured VMware environment.
These tests are executed on build-farm host bnhtest.

16 years agor21520: fix the altercontext test... sorry
Stefan Metzmacher [Fri, 23 Feb 2007 13:42:00 +0000 (13:42 +0000)]
r21520: fix the altercontext test... sorry

I'm only fixing the bug I introduced here,
not the rest of the mess in the pipe handling,
as we don't fill in pipe->binding and pipe->conn->binding_str
consistant...

metze

16 years agor21519: when we want to send non initialized data, then
Stefan Metzmacher [Fri, 23 Feb 2007 13:15:56 +0000 (13:15 +0000)]
r21519: when we want to send non initialized data, then
generate a random buffer explicit to make valgrind happy

found by valgrind in the build-farm on fort, there are some more places
like this...

metze

16 years agor21518: fix panic, sorry...
Stefan Metzmacher [Fri, 23 Feb 2007 12:29:21 +0000 (12:29 +0000)]
r21518: fix panic, sorry...

metze

16 years agor21516: - use the same assoc_group_id, for all 3 drsuapi connection
Stefan Metzmacher [Fri, 23 Feb 2007 11:04:05 +0000 (11:04 +0000)]
r21516: - use the same assoc_group_id, for all 3 drsuapi connection
- use the PFC_CONC_MPX flag for the 3rd connection
- to DsGetNCChanges requests on the 3rd connection with the bind handle
  from the 2nd connection to match w2k3

metze

16 years agor21515: add some more PFC_FLAGS from the DCERPC spec, and fix some names
Stefan Metzmacher [Fri, 23 Feb 2007 11:00:20 +0000 (11:00 +0000)]
r21515: add some more PFC_FLAGS from the DCERPC spec, and fix some names

also make it possible to pass and get the assoc_group_id for
a pipe.

also make it possible to pass the DCERPC_PFC_FLAG_CONC_MPX flag
in bind requests. From the spec it triggers support for
concurrent multiplexing on a single connection.

w2k3 uses the assoc_group_id feature when it becomes a domain controller
of an existing domain. Know the ugly part, with this it's possible to
use a policy handle from one connection on a different one...

typically the DsBind() call is on the 1st connection while DsGetNCChanges()
call using the first connections bind handle are on the 2nd connection.

The second connection also has the DCERPC_PFC_FLAG_CONC_MPX flag attached,
but that doesn't seem to be related to the cross connection handle usage

Can anyone think of a nice way to implement the assoc_group_id stuff in our server?

metze

16 years agor21514: move away from a hardcoded "smbtorturedc"
Stefan Metzmacher [Fri, 23 Feb 2007 10:25:28 +0000 (10:25 +0000)]
r21514: move away from a hardcoded "smbtorturedc"

--option="become dc:smbtorture dc=mydcname"
--option="become dc:do not unjoin=yes"

joins as mydcname and creates mydcname_*.ldb files under lp_private_dir()

metze

16 years agor21513: I don't know how long this has been wrong, but fix this up so we can
Andrew Bartlett [Fri, 23 Feb 2007 10:04:20 +0000 (10:04 +0000)]
r21513: I don't know how long this has been wrong, but fix this up so we can
re-provision (as is required for the TEST_LDAP=yes version of make
test).

Andrew Bartlett

16 years agor21512: finish DsBind() in the DRSUAPI server:
Stefan Metzmacher [Fri, 23 Feb 2007 07:56:29 +0000 (07:56 +0000)]
r21512: finish DsBind() in the DRSUAPI server:
- fill in our on bind_info struct correctly
- remember the local and remote DsBindInfo28 struct
- remember the remote bind_buid

w2k3 now tries replicate using DsGetNCChanges() from us,
after the NET-API-BECOME-DC test created the domain controller
and replicated all data.

(But we still give a DCERPC fault in DsGetNCChanges()...)

metze

16 years agor21511: this seems to be the nicer fix for the problem with
Stefan Metzmacher [Fri, 23 Feb 2007 07:46:51 +0000 (07:46 +0000)]
r21511: this seems to be the nicer fix for the problem with
the windows 2000 LDAP client

metze

16 years agor21510: make it possible to push tags with length > 0xFFFFFF
Stefan Metzmacher [Fri, 23 Feb 2007 07:32:13 +0000 (07:32 +0000)]
r21510: make it possible to push tags with length > 0xFFFFFF

metze

16 years agor21504: for simo...
Stefan Metzmacher [Thu, 22 Feb 2007 16:26:18 +0000 (16:26 +0000)]
r21504: for simo...

metze

16 years agor21503: add usefull function to get the site dn for the local server
Stefan Metzmacher [Thu, 22 Feb 2007 15:53:06 +0000 (15:53 +0000)]
r21503: add usefull function to get the site dn for the local server

metze

16 years agor21502: add a very useful option "become dc:donnot leave=yes"
Stefan Metzmacher [Thu, 22 Feb 2007 15:25:55 +0000 (15:25 +0000)]
r21502: add a very useful option "become dc:donnot leave=yes"

with this you can join a domain as dc for testing:-)

You still need to setup some dns entries...

and add the ldap/.... servicePrincipalName's

abartlet: it's wrong to include ldap/ in the list of host=, we should change this...

metze

16 years agor21501: ugly but the windows 2000 mmc deturns decoding error without this
Stefan Metzmacher [Thu, 22 Feb 2007 14:29:04 +0000 (14:29 +0000)]
r21501: ugly but the windows 2000 mmc deturns decoding error without this

metze

16 years agor21499: fill in the correct forest dns name
Stefan Metzmacher [Thu, 22 Feb 2007 13:15:49 +0000 (13:15 +0000)]
r21499: fill in the correct forest dns name

metze

16 years agor21498: Putting the second parameter in quotes so that we accept spaces in the config...
Brad Henry [Thu, 22 Feb 2007 02:11:28 +0000 (02:11 +0000)]
r21498: Putting the second parameter in quotes so that we accept spaces in the config file path.

16 years agor21497: Pass more of the RPC-CRACKNAMES test by using the new search_options control.
Andrew Bartlett [Thu, 22 Feb 2007 02:08:40 +0000 (02:08 +0000)]
r21497: Pass more of the RPC-CRACKNAMES test by using the new search_options control.

Andrew Bartlett

16 years agor21496: A number of ldb control and LDAP changes, surrounding the
Andrew Bartlett [Thu, 22 Feb 2007 01:54:40 +0000 (01:54 +0000)]
r21496: A number of ldb control and LDAP changes, surrounding the
'phantom_root' flag in the search_options control

- Add in support for LDB controls to the js layer
- Test the behaviour
- Implement support for the 'phantom_root' flag in the partitions module
- Make the LDAP server set the 'phantom_root' flag in the search_options control
  - This replaces the global_catalog flag passed down as an opaque pointer
- Rework the string-format control parsing function into
  ldb_parse_control_strings(), returning errors by ldb_errorstring()
  method, rather than with printf to stderr
- Rework some of the ldb_control handling logic

Andrew Bartlett

16 years agor21495: Pass the VM .vmx file path to wintest_2k3_dc.sh on the command line.
Brad Henry [Thu, 22 Feb 2007 00:11:20 +0000 (00:11 +0000)]
r21495: Pass the VM .vmx file path to wintest_2k3_dc.sh on the command line.

16 years agor21494: Fix 'make wintest' to support command-line changes to 'vm-get-ip.pl' and...
Brad Henry [Wed, 21 Feb 2007 22:50:55 +0000 (22:50 +0000)]
r21494: Fix 'make wintest' to support command-line changes to 'vm-get-ip.pl' and the revertsnapshot() shell function.
Restructure existing tests to work with the recent build farm changes.
Added windows DC testing to 'make wintest'.
Some improvements and generalization to the way errors are handled.

16 years agor21493: Patch from Ronnie Sahlberg. From his email:
Jelmer Vernooij [Wed, 21 Feb 2007 20:59:01 +0000 (20:59 +0000)]
r21493: Patch from Ronnie Sahlberg. From his email:

This patch changes the function name and signature that pidl generate
a call for when dissecting a policy handle to a new, more
PIDL-friendly function.

It also stores the procedure name in a new pinfo-> field so that
helpers that want to know the procedure name can finbd out easily.

The new PIDL helper function for policy handles use this new field and will show
   OpenHKU(<...>)
       opened in frame X
   closed in frame Y
for the policy handle.

16 years agor21492: Finish work on nested type support in EJS.
Jelmer Vernooij [Wed, 21 Feb 2007 14:35:25 +0000 (14:35 +0000)]
r21492: Finish work on nested type support in EJS.

16 years agor21491: Verify that the DNS domain name is filled in on GUID searches in the
Andrew Bartlett [Wed, 21 Feb 2007 13:03:24 +0000 (13:03 +0000)]
r21491: Verify that the DNS domain name is filled in on GUID searches in the
RPC-CRACKNAMES test.

Andrew Bartlett

16 years agor21490: Add some tests for the EJS code
Jelmer Vernooij [Wed, 21 Feb 2007 12:35:21 +0000 (12:35 +0000)]
r21490: Add some tests for the EJS code
More work on supporting nested types in EJS.

16 years agor21489: Remove accidently committed test idl.
Jelmer Vernooij [Wed, 21 Feb 2007 11:51:51 +0000 (11:51 +0000)]
r21489: Remove accidently committed test idl.

16 years agor21488: Ignore autogenerated file.
Jelmer Vernooij [Wed, 21 Feb 2007 11:45:40 +0000 (11:45 +0000)]
r21488: Ignore autogenerated file.

16 years agor21487: Fix warning when using anonymous types, initial work on nested type support...
Jelmer Vernooij [Wed, 21 Feb 2007 11:32:48 +0000 (11:32 +0000)]
r21487: Fix warning when using anonymous types, initial work on nested type support in ejs.

16 years agor21486: Remove spurious semicolons.
Jelmer Vernooij [Wed, 21 Feb 2007 10:55:03 +0000 (10:55 +0000)]
r21486: Remove spurious semicolons.

16 years agor21485: Remove obsolete smb_interfaces code (discussed with tpot).
Jelmer Vernooij [Wed, 21 Feb 2007 10:37:25 +0000 (10:37 +0000)]
r21485: Remove obsolete smb_interfaces code (discussed with tpot).

16 years agor21484: Fix Needed* for nested datastructures.
Jelmer Vernooij [Wed, 21 Feb 2007 10:31:14 +0000 (10:31 +0000)]
r21484: Fix Needed* for nested datastructures.

16 years agor21477: Remove unnecessary properties.
Jelmer Vernooij [Tue, 20 Feb 2007 23:19:46 +0000 (23:19 +0000)]
r21477: Remove unnecessary properties.

16 years agor21476: Add another test for EnumValue.
Jelmer Vernooij [Tue, 20 Feb 2007 23:03:15 +0000 (23:03 +0000)]
r21476: Add another test for EnumValue.

16 years agor21475: Updated vm_get_ip.pl to read the name of the environment variable containing...
Brad Henry [Tue, 20 Feb 2007 22:28:43 +0000 (22:28 +0000)]
r21475: Updated vm_get_ip.pl to read the name of the environment variable containing the VM path from the command line.

wintest_2k3_dc.sh is a new script which will run a group of tests against a Windows 2003 DC.
The group of tests to run should be passed in on the command line.
These tests were taken from the source/script/tests/test_win2k3.sh script.

tests_win2k3_dc.sh is a new script intended to be called by 'make wintest_dc' (patch to source/main.mk forthcoming).
This is intended to provide the basis for Windows 2003 DC testing in the build farm.

In order to use these tests, you should have a DC setup as a VM in VMware server.

This process is not automated yet, but can be done by following a few steps:

1. Prepare a Windows 2003 VM in VMware Server by downloading and extracting:
svn://svn.samba.org/home/svn/samba/branches/SOC/bnh/vm_setup.tar.gz
and following the instructions in the README file.

2. Copying the following file onto the filesystem of the VM configured in step 1:
svn://svn.samba.org/home/svn/samba/branches/SOC/bnh/dcpromo_2k3dc_newdomain.answerfile.txt
and use it to promote the VM.
For example: "dcpromo /answer:<path to answerfile>"

3. On the system you are testing from, set the environment variable WINTESTCONF, and SRCDIR.
WINTESTCONF should point to the path of a test_win.conf file modified for your environment.
There's a default copy in source/script/tests/win/test_win.conf.
SRCDIR should point to the base of your Samba 4 source tree.

At that point, you should be able to run wintest_2k3_dc.sh by passing a group of tests at the command line.
For example: source/script/tests/win/wintest_2k3_dc.sh RPC-DRSUAPI

Sorry for the long-winded commit message!

16 years agor21473: Added new parameters to test_win.conf that apply only to the DC tests.
Brad Henry [Tue, 20 Feb 2007 19:53:18 +0000 (19:53 +0000)]
r21473: Added new parameters to test_win.conf that apply only to the DC tests.

Made the restore_snapshot() routine in wintest_functions.sh more robust.
This change would have broken the existing windows tests, if they weren't already broken.

Will fix those once the windows DC tests are committed and working in the build farm.

16 years agor21470: generate Primary:WDigest blob with precalculated digest-md5 hashes:
Stefan Metzmacher [Tue, 20 Feb 2007 16:22:50 +0000 (16:22 +0000)]
r21470: generate Primary:WDigest blob with precalculated digest-md5 hashes:

see http://technet2.microsoft.com/WindowsServer/en/library/717b450c-f4a0-4cc9-86f4-cc0633aae5f91033.mspx?mfr=true
for how the hashes are supposed to be (but w2k3 doesn't to some correctly...)

this is a verify nice tool to test the hash genaration, but
you need to add support for "" realm strings...
http://fresh.t-systems-sfr.com/unix/src/www/httpauth-0.6.tar.gz:a/httpauth-0.6/tools/mkha1.c

metze

16 years agor21466: run the LDAP-UPTODATEVECTOR test in make test
Stefan Metzmacher [Tue, 20 Feb 2007 14:57:25 +0000 (14:57 +0000)]
r21466: run the LDAP-UPTODATEVECTOR test in make test

metze

16 years agor21465: the LDAP-UPTODATEVECTOR test shows that the replUpToDateVector
Stefan Metzmacher [Tue, 20 Feb 2007 14:56:45 +0000 (14:56 +0000)]
r21465: the LDAP-UPTODATEVECTOR test shows that the replUpToDateVector
doesn't contain an entry for the local invocation_id

metze

16 years agor21464: add parsing code for the Primary:WDigest blob
Stefan Metzmacher [Tue, 20 Feb 2007 14:42:53 +0000 (14:42 +0000)]
r21464: add parsing code for the Primary:WDigest blob

the hashes are

MD5("user:realm:password") which a lot of user and realm combinations

see:
http://fresh.t-systems-sfr.com/unix/src/www/httpauth-0.6.tar.gz:a/httpauth-0.6/tools/mkha1.c

metze

16 years agor21463: add a LDAP-UPTODATEVECTOR test, it shows that the "replUpToDateVector"
Stefan Metzmacher [Tue, 20 Feb 2007 14:39:13 +0000 (14:39 +0000)]
r21463: add a LDAP-UPTODATEVECTOR test, it shows that the "replUpToDateVector"
isn't updated by originating changes, and that there's no entry for the local
dsa invocation_id

metze

16 years agor21459: Remove name argument, more refactoring.
Jelmer Vernooij [Tue, 20 Feb 2007 01:27:48 +0000 (01:27 +0000)]
r21459: Remove name argument, more refactoring.

16 years agor21458: Prepare for generating separate primitives/deferred code.
Jelmer Vernooij [Mon, 19 Feb 2007 23:11:01 +0000 (23:11 +0000)]
r21458: Prepare for generating separate primitives/deferred code.

16 years agor21457: Cope with anonymous nested types in the NDR layer. This doesn't handled
Jelmer Vernooij [Mon, 19 Feb 2007 22:10:23 +0000 (22:10 +0000)]
r21457: Cope with anonymous nested types in the NDR layer. This doesn't handled
named nested types yet, as these have to be registered.

16 years agor21456: Allow anonymous and non-anonymous nested structures/unions/enums/bitmaps...
Jelmer Vernooij [Mon, 19 Feb 2007 21:37:54 +0000 (21:37 +0000)]
r21456: Allow anonymous and non-anonymous nested structures/unions/enums/bitmaps to be
used in the Samba 4 NDR parser.

This doesn't actually work yet as Parse::Pidl::NDR doesn't handle nested
data structures yet, but it's a first step.

16 years agor21455: Fix a bug in our handling of conformant arrays. The conformant array was
Jelmer Vernooij [Mon, 19 Feb 2007 19:42:51 +0000 (19:42 +0000)]
r21455: Fix a bug in our handling of conformant arrays. The conformant array was
always pushed, even if just the buffers part of a struct had to be pushed.

Pull was not affected.

16 years agor21451: if kerberos is requested ( -k yes ), we should use authentificated connections
Stefan Metzmacher [Mon, 19 Feb 2007 16:43:56 +0000 (16:43 +0000)]
r21451: if kerberos is requested ( -k yes ), we should use authentificated connections

metze

16 years agor21448: return the same error codes as a windows KDC
Stefan Metzmacher [Mon, 19 Feb 2007 13:45:03 +0000 (13:45 +0000)]
r21448: return the same error codes as a windows KDC

metze

16 years agor21447: make handling of replying e_data more generic
Stefan Metzmacher [Mon, 19 Feb 2007 13:38:11 +0000 (13:38 +0000)]
r21447: make handling of replying e_data more generic

love: please merge this

metze

16 years agor21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0
Volker Lendecke [Mon, 19 Feb 2007 11:45:33 +0000 (11:45 +0000)]
r21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0

16 years agor21443: Refactor some of the NDR code in preparation of nested data structure support.
Jelmer Vernooij [Mon, 19 Feb 2007 01:51:46 +0000 (01:51 +0000)]
r21443: Refactor some of the NDR code in preparation of nested data structure support.

16 years agor21442: Allow more flexible data structure names.
Jelmer Vernooij [Mon, 19 Feb 2007 00:48:05 +0000 (00:48 +0000)]
r21442: Allow more flexible data structure names.

16 years agor21441: create a union for the PrimaryKerberosBlob content
Stefan Metzmacher [Mon, 19 Feb 2007 00:28:11 +0000 (00:28 +0000)]
r21441: create a union for the PrimaryKerberosBlob content
so that ndr_pull will fail if version isn't 3 and we notice
if the format changes...

metze

16 years agor21440: Support different variables in environments.
Jelmer Vernooij [Sun, 18 Feb 2007 23:57:26 +0000 (23:57 +0000)]
r21440: Support different variables in environments.

16 years agor21439: fix compiler warnings
Stefan Metzmacher [Sun, 18 Feb 2007 23:56:19 +0000 (23:56 +0000)]
r21439: fix compiler warnings

metze

16 years agor21438: create the PAC element in the same order as w2k3,
Stefan Metzmacher [Sun, 18 Feb 2007 23:49:29 +0000 (23:49 +0000)]
r21438: create the PAC element in the same order as w2k3,
maybe there's some broken code in windows which relies
on this...

love: can you merge this to heimdal?

metze

16 years agor21437: Cherrypick typelib tests.
Jelmer Vernooij [Sun, 18 Feb 2007 23:48:16 +0000 (23:48 +0000)]
r21437: Cherrypick typelib tests.

16 years agor21436: Choose the TGT session key enctype also by checking what enctypes
Stefan Metzmacher [Sun, 18 Feb 2007 23:27:42 +0000 (23:27 +0000)]
r21436: Choose the TGT session key enctype also by checking what enctypes
the krbtgt hdb entry provides.

We need to make sure other KDC's with the same hdb backend data
can accept the TGT. (w2k and w2k3 don't support aes256-cts-hmac-sha1-96 (18)
session keys.)

Love: I'm not sure if this is the correct way of doing it...

metze

16 years agor21435: ntPwdHash,lmPwdHash,sambaNTPwdHistory,sambaLMPwdHistory and krb5Key
Stefan Metzmacher [Sun, 18 Feb 2007 22:15:50 +0000 (22:15 +0000)]
r21435: ntPwdHash,lmPwdHash,sambaNTPwdHistory,sambaLMPwdHistory and krb5Key
are not used anymore

metze

16 years agor21434: - get rid of "krb5Key"
Stefan Metzmacher [Sun, 18 Feb 2007 22:01:02 +0000 (22:01 +0000)]
r21434: - get rid of "krb5Key"
- use "sambaPassword" only as virtual attribute for passing
  the cleartext password (in unix charset) into the ldb layer
- store des-cbc-crc, des-cbc-md5 keys in the Primary:Kerberos
  blob to match w2k and w2k3
- aes key support is disabled by default, as we don't know
  exacly how longhorn stores them. use password_hash:create_aes_key=yes
  to force creation of them.
- store the cleartext password in the Primary:CLEARTEXT blob
  if configured

TODO:
 - find out how longhorn stores aes keys
 - find out how the Primary:WDigest blob needs to be constructed
   (not supported by w2k)

metze

16 years agor21433: Get rid of the COM support code - it's not used and unmaintained. We can
Jelmer Vernooij [Sun, 18 Feb 2007 18:44:56 +0000 (18:44 +0000)]
r21433: Get rid of the COM support code - it's not used and unmaintained. We can
always bring it back if we need to. This code was getting in the way while
refactoring.

Add some tests for TDR.

Get rid of typedef in lib/registry/tdr_regf.idl and fix the
TDR code to be able to deal with it.

16 years agor21432: Handle properties on tagged types in TDR.
Jelmer Vernooij [Sun, 18 Feb 2007 16:54:54 +0000 (16:54 +0000)]
r21432: Handle properties on tagged types in TDR.

16 years agor21431: More tests, work on support in wireshark for tagged types.
Jelmer Vernooij [Sun, 18 Feb 2007 16:46:59 +0000 (16:46 +0000)]
r21431: More tests, work on support in wireshark for tagged types.

16 years agor21430: Support tagged types without typedef. This means:
Jelmer Vernooij [Sun, 18 Feb 2007 16:21:28 +0000 (16:21 +0000)]
r21430: Support tagged types without typedef. This means:

struct foo {
 ...
};

in IDL will now work. This is the first step towards nested types and
using typedefs for partial types (such as "typedef int *bar;"), a requirement
for complex uses of represent_as().

16 years agor21429: Fix the build.
Jelmer Vernooij [Sun, 18 Feb 2007 13:52:28 +0000 (13:52 +0000)]
r21429: Fix the build.

16 years agor21428: Handle representation types in Needed().
Jelmer Vernooij [Sun, 18 Feb 2007 13:44:01 +0000 (13:44 +0000)]
r21428: Handle representation types in Needed().

16 years agor21427: Add tests for Needed*(), in preparation of refactoring.
Jelmer Vernooij [Sun, 18 Feb 2007 12:54:03 +0000 (12:54 +0000)]
r21427: Add tests for Needed*(), in preparation of refactoring.

16 years agor21426: Add more spoolss tests.
Jelmer Vernooij [Sun, 18 Feb 2007 12:22:58 +0000 (12:22 +0000)]
r21426: Add more spoolss tests.

16 years agor21425: Add ReplyClosePrinter.
Jelmer Vernooij [Sun, 18 Feb 2007 12:12:17 +0000 (12:12 +0000)]
r21425: Add ReplyClosePrinter.

16 years agor21424: Add FindClosePrinterNotify.
Jelmer Vernooij [Sun, 18 Feb 2007 12:05:03 +0000 (12:05 +0000)]
r21424: Add FindClosePrinterNotify.

16 years agor21423: Extend testsuite, check that all bytes have been consumed. DsBind fails that...
Jelmer Vernooij [Sun, 18 Feb 2007 12:00:53 +0000 (12:00 +0000)]
r21423: Extend testsuite, check that all bytes have been consumed. DsBind fails that test, so disabling it for now.

16 years agor21422: Add IDL for EnumPrinterKey and RemoteFindNextPrinterChangeNotifyEx.
Jelmer Vernooij [Sun, 18 Feb 2007 11:56:36 +0000 (11:56 +0000)]
r21422: Add IDL for EnumPrinterKey and RemoteFindNextPrinterChangeNotifyEx.

16 years agor21421: Fix a memleak. This made tdb look considerably worse than necessary.
Volker Lendecke [Sun, 18 Feb 2007 11:11:57 +0000 (11:11 +0000)]
r21421: Fix a memleak. This made tdb look considerably worse than necessary.

Volker

16 years agor21419: Give some more clue about what's going on
Simo Sorce [Sun, 18 Feb 2007 02:21:21 +0000 (02:21 +0000)]
r21419: Give some more clue about what's going on

16 years agor21418: Return the ratio as well
Simo Sorce [Sun, 18 Feb 2007 02:12:50 +0000 (02:12 +0000)]
r21418: Return the ratio as well

16 years agor21416: add missing file
Jelmer Vernooij [Sun, 18 Feb 2007 01:06:15 +0000 (01:06 +0000)]
r21416: add missing file

16 years agor21415: Add tests for spoolss and drsuapi. Still need to add validators.
Jelmer Vernooij [Sun, 18 Feb 2007 00:41:42 +0000 (00:41 +0000)]
r21415: Add tests for spoolss and drsuapi. Still need to add validators.

16 years agor21414: Fill in IDL for ReplyOpenPrinter.
Jelmer Vernooij [Sun, 18 Feb 2007 00:34:43 +0000 (00:34 +0000)]
r21414: Fill in IDL for ReplyOpenPrinter.

16 years agor21413: fix pushing of supplementalCredentials
Stefan Metzmacher [Sun, 18 Feb 2007 00:05:34 +0000 (00:05 +0000)]
r21413: fix pushing of supplementalCredentials

metze

16 years agor21412: The last patch also incremented the seqnum when tdb_store failed. Not as bad
Volker Lendecke [Sat, 17 Feb 2007 23:41:45 +0000 (23:41 +0000)]
r21412: The last patch also incremented the seqnum when tdb_store failed. Not as bad
as not doing it at all, but needs fixing. Also simplify the logic, I had
missed the "goto out" at the end of the function.

Volker

16 years agor21411: Add some simple tests for the wireshark NDR generator.
Jelmer Vernooij [Sat, 17 Feb 2007 23:38:57 +0000 (23:38 +0000)]
r21411: Add some simple tests for the wireshark NDR generator.

16 years agor21410: We have to increment the sequence number also when tdb_update_hash()
Volker Lendecke [Sat, 17 Feb 2007 21:46:13 +0000 (21:46 +0000)]
r21410: We have to increment the sequence number also when tdb_update_hash()
succeeded. Found while testing the brlock seqnum patch.

Tridge, please check!

Volker

16 years agor21408: Remove test that uses empty array.
Jelmer Vernooij [Sat, 17 Feb 2007 13:59:32 +0000 (13:59 +0000)]
r21408: Remove test that uses empty array.

16 years agor21407: auto set the len values
Stefan Metzmacher [Sat, 17 Feb 2007 09:40:43 +0000 (09:40 +0000)]
r21407: auto set the len values

metze

16 years agor21406: add idl for parsing the 'Packages' and 'Primary:CLEARTEXT' elements
Stefan Metzmacher [Sat, 17 Feb 2007 09:10:32 +0000 (09:10 +0000)]
r21406: add idl for parsing the 'Packages' and 'Primary:CLEARTEXT' elements
of supplementalCredentials

metze

16 years agor21405: add support for [flag(STR_NOTERM|NDR_REMAINING)] string_array foo;
Stefan Metzmacher [Sat, 17 Feb 2007 09:09:07 +0000 (09:09 +0000)]
r21405: add support for [flag(STR_NOTERM|NDR_REMAINING)] string_array foo;

this is handles the content of the 'Packages' element in the supplementalCredetials

metze

16 years agor21404: packages just contain utf16 strings not guids:-)
Stefan Metzmacher [Sat, 17 Feb 2007 07:10:28 +0000 (07:10 +0000)]
r21404: packages just contain utf16 strings not guids:-)

metze

16 years agor21403: Add netlogon tests.
Jelmer Vernooij [Sat, 17 Feb 2007 01:58:06 +0000 (01:58 +0000)]
r21403: Add netlogon tests.

16 years agor21395: fix comments
Stefan Metzmacher [Fri, 16 Feb 2007 17:36:58 +0000 (17:36 +0000)]
r21395: fix comments

metze

16 years agor21392: - decode the salt utf16 string into a unix string
Stefan Metzmacher [Fri, 16 Feb 2007 16:02:30 +0000 (16:02 +0000)]
r21392: - decode the salt utf16 string into a unix string
- fix parsing of Primary:Kerberos blob

metze

16 years agor21391: add supporting for
Stefan Metzmacher [Fri, 16 Feb 2007 15:58:56 +0000 (15:58 +0000)]
r21391: add supporting for

uint16 size;
[relative,subcontext(0),subcontext_size(size),flag(STR_NOTERM|NDR_REMAINING)] string *string;

as

uint16 size;
[relative,charset(UTF16)] uint8 *string[size];

isn't supported by pidl yet...

metze

16 years agor21390: move fetching the key version number into the function
Stefan Metzmacher [Fri, 16 Feb 2007 15:56:24 +0000 (15:56 +0000)]
r21390: move fetching the key version number into the function
which contrusts the keys...

later we need to get the key version number from the
"replPropertyMetaData" attribute entry to the (I assume)
the "unicodePwd" attribute.

msDs-KeyVersionNumber is a constructed attribute,
and is "1" when no "supplementalCredentials" is present.

we need to make some tests with a password change function
which don't give a cleartext to the server...

metze

16 years agor21389: give a better error when our parser hasn't consumed all data
Stefan Metzmacher [Fri, 16 Feb 2007 15:42:22 +0000 (15:42 +0000)]
r21389: give a better error when our parser hasn't consumed all data

metze

16 years agor21386: Run all NDR tests in the buildfarm, import some functions from Samba3's IDL.
Jelmer Vernooij [Fri, 16 Feb 2007 15:13:51 +0000 (15:13 +0000)]
r21386: Run all NDR tests in the buildfarm, import some functions from Samba3's IDL.

16 years agor21384: Change warning to pidl warning, fix uppercasing.
Jelmer Vernooij [Fri, 16 Feb 2007 14:13:14 +0000 (14:13 +0000)]
r21384: Change warning to pidl warning, fix uppercasing.