12 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...

(This used to be commit 2654f595cae046924be33a3f8f758a20565156ee)

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

(This used to be commit 3c786eb6bdb3289a237d231e75092a8b3ca56197)

12 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

(This used to be commit 5071af332c2c079fd94c577e58ee6e8ccf157ffa)

12 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?

(This used to be commit 2d8c85397d9027485ed6dbdcca87cc1ec84c7b76)

12 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()

(This used to be commit 22bc6d541e9de2dc494cda154d6fabbc3c907da8)

12 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

Andrew Bartlett
(This used to be commit ea4c2ea22fb3975d80130f52edecaf6d1790adde)

12 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()...)

(This used to be commit 33550c063d4e206fce63fdd99dc93a56995db580)

12 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

(This used to be commit d40465470fa09827ea529e1f2c80bca9efc152a8)

12 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

(This used to be commit 8e604107da4a8a1bf6ccab45e85e147daab29519)

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

(This used to be commit f773b1dc6fc39e59a2d71d7d017a63512a95cfa8)

12 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

(This used to be commit 08b8e9acff6779ecc2e568ae0a875013d93838b7)

12 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...

(This used to be commit 12f610d747fe827ed402984fa63680b576ed7b03)

12 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

(This used to be commit f17da75754f8cc79b60e04b54a4bc99191e71ff3)

12 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

(This used to be commit c736543b15571a7c0080ba09e51b9bcf76ecda52)

12 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.
(This used to be commit 7facfe9247e98421e998092482f52db05228ace6)

12 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
(This used to be commit 47c8a059c4d90b7befde390d2d050f0d1934ecc1)

12 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
(This used to be commit 2b3df7f38d7790358dbb4de1b8609bf794a351fb)

12 years agor21495: Pass the VM .vmx file path to 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 on the command line.
(This used to be commit 06bf94781e688c57f625161722e0a25af5a8d2e3)

12 years agor21494: Fix 'make wintest' to support command-line changes to '' and...
Brad Henry [Wed, 21 Feb 2007 22:50:55 +0000 (22:50 +0000)]
r21494: Fix 'make wintest' to support command-line changes to '' 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.
(This used to be commit de9687404e802d7e7629c9d03f496d3c5bd30397)

12 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
       opened in frame X
   closed in frame Y
for the policy handle.
(This used to be commit 0c4fb484f0e515eb4055c58cd73ca798a8c46d69)

12 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.
(This used to be commit e88055b76a3d81fcc40773d880f76a1c3f53fbf0)

12 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

Andrew Bartlett
(This used to be commit 7773f23e89340c459a0028a4c36b869d95ed8eb1)

12 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.
(This used to be commit cb7faeab88952b59add1c814e1881ee9bb88b7ec)

12 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.
(This used to be commit 268915961d0b2766eb9a4e106fdf5cfdf68de07e)

12 years agor21488: Ignore autogenerated file.
Jelmer Vernooij [Wed, 21 Feb 2007 11:45:40 +0000 (11:45 +0000)]
r21488: Ignore autogenerated file.
(This used to be commit 12d45cede3eec1db0b5bf9a24498944ff1412835)

12 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.
(This used to be commit a396c5de12cd958fe0457fa5372e539132ad7ed9)

12 years agor21486: Remove spurious semicolons.
Jelmer Vernooij [Wed, 21 Feb 2007 10:55:03 +0000 (10:55 +0000)]
r21486: Remove spurious semicolons.
(This used to be commit d2307f3f7e364a2d17f48301a921a532ae313986)

12 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).
(This used to be commit 92acdb380a02cae59b563e70ae0c18ab537cdb4c)

12 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.
(This used to be commit ec3c9ebfd0de287411ce399967409f902653d5c6)

12 years agor21477: Remove unnecessary properties.
Jelmer Vernooij [Tue, 20 Feb 2007 23:19:46 +0000 (23:19 +0000)]
r21477: Remove unnecessary properties.
(This used to be commit 17d1da19474de3c501b532aec74b1fb93ed3ae3f)

12 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.
(This used to be commit 8370b19ebbd4a7d2296fc50b267c8720b5a0a50b)

12 years agor21475: Updated to read the name of the environment variable containing...
Brad Henry [Tue, 20 Feb 2007 22:28:43 +0000 (22:28 +0000)]
r21475: Updated to read the name of the environment variable containing the VM path from the command line. 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/ script. is a new script intended to be called by 'make wintest_dc' (patch to source/ 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:
and following the instructions in the README file.

2. Copying the following file onto the filesystem of the VM configured in step 1:
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 by passing a group of tests at the command line.
For example: source/script/tests/win/ RPC-DRSUAPI

Sorry for the long-winded commit message!
(This used to be commit a0d1c690de2e58eddf5517eb974e09c2bba23605)

12 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 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.
(This used to be commit 76c6c5b8de58618ac013f5b26a6aafc98e15f57c)

12 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:

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...

(This used to be commit 26d51741b6aa54c47ee039ac14390f1f0ee51e30)

12 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

(This used to be commit 74ded55787d6dee55e87bd55a4f152fa2e8dbeab)

12 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

(This used to be commit 4bd0ddeb80b0a6695a457434594c0240c8880d9f)

12 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


(This used to be commit f764941af6a13b59ea604b4b5c275da802b3e061)

12 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

(This used to be commit a9b757dddc496b705d04ee73f52b7f4f16e972e9)

12 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.
(This used to be commit fad03f6c51b40bca2b60036835b998056fec0faa)

12 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.
(This used to be commit efaf476337e536740068334ee9af01eb6ce97c4f)

12 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.
(This used to be commit 9b0416b5d06286c81c73477a24cb591fd4b23d18)

12 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.
(This used to be commit 8aac1fc98b812a0668bc0d803d1e2831396b455e)

12 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.
(This used to be commit ffe387920473fb365f740942098085eb40299c84)

12 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

(This used to be commit 426238eb45f0cc41d99961ac554c2528fd8e96f5)

12 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

(This used to be commit e4d69b83dcee2f50e95690d84f95d9e69acf858e)

12 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

(This used to be commit 3e4ff2de9c57170d275adf54ffa00ac81253a714)

12 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
(This used to be commit afe7d7855841066b88859976ac748cbf438a9a9f)

12 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.
(This used to be commit 1afedaad44d5d375ebd277017ec61bf9b5741d8a)

12 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.
(This used to be commit 5b091c5d75f8580f10bc6a61a0e2203abec98784)

12 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...

(This used to be commit 91f7a094cfd04405c224b9579146d814cba507b3)

12 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.
(This used to be commit 1702a663ba4ce6f5803e265a969f2be564fce1e3)

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

(This used to be commit ac347d7aa588574f6a18229083569608327874d8)

12 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?

(This used to be commit b64abf9113a939308dc9e92ff7ddaad7be6ab551)

12 years agor21437: Cherrypick typelib tests.
Jelmer Vernooij [Sun, 18 Feb 2007 23:48:16 +0000 (23:48 +0000)]
r21437: Cherrypick typelib tests.
(This used to be commit 9ba814d033412150d383d3687f02775d4efc618e)

12 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...

(This used to be commit 5840f50d8954e95a7071a90a1c4dcce9ae05d77c)

12 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

(This used to be commit 9e91bd64492c45ee333f5e797d4d492378600356)

12 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

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

(This used to be commit e20b53f6feaaca2cc81ee7d296ca3ff757ee3953)

12 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

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.
(This used to be commit 1ad0f99a439f0d52a735b391bf9900d50171aca5)

12 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.
(This used to be commit 0d739c7e9807682cd5bc433c3e4f2d4bbe4f1b69)

12 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.
(This used to be commit a91e624af22aae5b460ccf94d2540b8780f90070)

12 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().
(This used to be commit a716aa70f0c90898e6fcf57d63a2cf4c40e7d4df)

12 years agor21429: Fix the build.
Jelmer Vernooij [Sun, 18 Feb 2007 13:52:28 +0000 (13:52 +0000)]
r21429: Fix the build.
(This used to be commit 88fbf9af24a346d3d99af32b8574507b0590846a)

12 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().
(This used to be commit 34517c69e67d7eafa00e6fe0072bd04f074cdbde)

12 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.
(This used to be commit a21e7b22ac99c66e2b23d0fa694a8a2ea6e7994e)

12 years agor21426: Add more spoolss tests.
Jelmer Vernooij [Sun, 18 Feb 2007 12:22:58 +0000 (12:22 +0000)]
r21426: Add more spoolss tests.
(This used to be commit 8b31fba826e5e76031979755f9682a8da5c59148)

12 years agor21425: Add ReplyClosePrinter.
Jelmer Vernooij [Sun, 18 Feb 2007 12:12:17 +0000 (12:12 +0000)]
r21425: Add ReplyClosePrinter.
(This used to be commit 745d0eae1a0f681f6a08a7cc259834ddbb5fa023)

12 years agor21424: Add FindClosePrinterNotify.
Jelmer Vernooij [Sun, 18 Feb 2007 12:05:03 +0000 (12:05 +0000)]
r21424: Add FindClosePrinterNotify.
(This used to be commit 0ed195f45fed12905278ba60eabe02a11b59eb90)

12 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.
(This used to be commit d6026c2046a26f42ca0cd6ebf1f45488fbfb22e1)

12 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.
(This used to be commit 883df28d6ebb1993add95174fe2694154995354b)

12 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.

(This used to be commit 573ba38722e338fb4158dfda181308a1a736c5c0)

12 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
(This used to be commit 76b377d5ad5c115e5fbb24a10d543883f04283a6)

12 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
(This used to be commit 56ed4499d69adf57a41632ba12cbfef383a35ab2)

12 years agor21416: add missing file
Jelmer Vernooij [Sun, 18 Feb 2007 01:06:15 +0000 (01:06 +0000)]
r21416: add missing file
(This used to be commit 5d4dd136ed29c6418377eae1227cae53fc510356)

12 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.
(This used to be commit 61cb52b65b9be2fd09a5c5a02536600c0ac500f7)

12 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.
(This used to be commit 9e6d43c45cec24a391d8134a9c177461aabb3e6c)

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

(This used to be commit 18a5bf850bad9643e09e111d8c2c4e2c2efce989)

12 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.

(This used to be commit ed30a0ff602d0a1d4409bee4faf12b6979b5f4b8)

12 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.
(This used to be commit 361977448210dfd889abca19b520cd259b9d0855)

12 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!

(This used to be commit e518c68fc5446304611d096ac2e3cab744734fc3)

12 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.
(This used to be commit 33142f7646265a05892f69b52f04fac9a50af914)

12 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

(This used to be commit 307aabe0257559a9211f4f627cb38150a24dc40f)

12 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

(This used to be commit b708d0729e03a78868f18fd37c9a01d7c75c900e)

12 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

(This used to be commit 07fe22f82ebe66464ef73274a109d1e21a0d7f0f)

12 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:-)

(This used to be commit 925f1f40cf8318d0a72fe3da958db52ccbf14b39)

12 years agor21403: Add netlogon tests.
Jelmer Vernooij [Sat, 17 Feb 2007 01:58:06 +0000 (01:58 +0000)]
r21403: Add netlogon tests.
(This used to be commit a620dc359476de9440f3b84dc8b45f569d103270)

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

(This used to be commit 97fc985bd062b6ad5a58dd6ce883a637043283a1)

12 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

(This used to be commit c6fa95ef2263774901c8871396b4eec5b7409c5e)

12 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;


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

isn't supported by pidl yet...

(This used to be commit 9fcfa658430f04658c692eb26db9280fda6e4e25)

12 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...

(This used to be commit 9e4324221764c1413be34d5b14915a86740acc04)

12 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

(This used to be commit 03b06398a405e491ce4e2bc91513a57e0d59466f)

12 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.
(This used to be commit 15a4b81ba0b5eeb25126a0b1a7bea7d3bf921ab2)

12 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.
(This used to be commit a45a677084ba1bc63a8f74892c12ca6f0d9b5071)

12 years agor21381: dfs tests.
Jelmer Vernooij [Fri, 16 Feb 2007 12:47:08 +0000 (12:47 +0000)]
r21381: dfs tests.
(This used to be commit 3ef8a6834df63a0bfa68996daea6432e98243d40)

12 years agor21380: add idl for parsing the Primary:Kerberos blobs
Stefan Metzmacher [Fri, 16 Feb 2007 12:38:08 +0000 (12:38 +0000)]
r21380: add idl for parsing the Primary:Kerberos blobs
inside the supplementalCredentials attribute

w2k uses keys1 and keys2 where both seem identical
w2k3 only uses keys1 and num_keys2 = 0

the Salt is only stored once for all keys

the following keys are stored:

(This used to be commit 03d7d05e4fa607271f84878bc238e7cf0560bc67)

12 years agor21378: Add simple NDR epmap test.
Jelmer Vernooij [Fri, 16 Feb 2007 01:08:59 +0000 (01:08 +0000)]
r21378: Add simple NDR epmap test.
(This used to be commit b29170c8eaafa3a573b0e26efecd6cacd68250b6)

12 years agor21377: More tests.
Jelmer Vernooij [Fri, 16 Feb 2007 00:35:11 +0000 (00:35 +0000)]
r21377: More tests.
(This used to be commit f3680ba118d4de4c535ceabda69e3b9f00424cd6)

12 years agor21376: More tests.
Jelmer Vernooij [Thu, 15 Feb 2007 23:53:53 +0000 (23:53 +0000)]
r21376: More tests.
(This used to be commit 2e2b15e3d258b66c3a150b97748ff6b4eed69a9a)

12 years agor21375: More lsa tests.
Jelmer Vernooij [Thu, 15 Feb 2007 22:59:10 +0000 (22:59 +0000)]
r21375: More lsa tests.
(This used to be commit 88fa90778a0e1f5efca08e5e6ba1b165399de30c)

12 years agor21374: lsa tests
Jelmer Vernooij [Thu, 15 Feb 2007 22:07:18 +0000 (22:07 +0000)]
r21374: lsa tests
(This used to be commit bfc2a1c50596ac3aee871de63fdd99362a65d7d8)

12 years agor21373: More tests.
Jelmer Vernooij [Thu, 15 Feb 2007 21:06:33 +0000 (21:06 +0000)]
r21373: More tests.
(This used to be commit 83a47e30b59f5289cdcb68ba54aa236795bc42b2)