1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

2138 Commits

Author SHA1 Message Date
Stefan Metzmacher
bd587c5cd1 r20305: as the oid mapping table is dynnamic it makes no sense
to test the mappings when we got the schema via LDAP
as we don't get the mappings

metze
(This used to be commit cfcd6285e1)
2007-10-10 14:29:36 -05:00
Andrew Tridgell
c4274fee71 r20302: added support for 64 bit file offsets in NBENCH
(This used to be commit 9a9f189141)
2007-10-10 14:29:35 -05:00
Andrew Tridgell
114265b4d5 r20301: add an option torture:readonly which allows the NBENCH test to be run
read only. This is only any use with customer loadfiles, and
pre-created data. I'm using this to test performance as a video
server, with pre-created video files.
(This used to be commit 48a322a9c1)
2007-10-10 14:29:35 -05:00
Andrew Bartlett
03b05b9400 r20297: Finally got to the bottom of why we were failing the RPC-CRACKNAMES
test against my win2k3 domain.  I have a child domain, and as such the
BUILTIN domain SID appears multiple times in the tree, and is
therefore not unique.

Andrew Bartlett
(This used to be commit 41e42843be)
2007-10-10 14:29:34 -05:00
Andrew Bartlett
c51289fc9b r20295: Add a couple more tests to the CrackNames test.
(This used to be commit 115ed29fd8)
2007-10-10 14:29:34 -05:00
Stefan Metzmacher
7cb96a785f r20293: implement store chunk hook for libnet_BecomeDC()
metze
(This used to be commit aba497f2fd)
2007-10-10 14:29:33 -05:00
Stefan Metzmacher
fdf95ba005 r20291: implement prepare_db hook of libnet_BecomeDC()
metze
(This used to be commit 07f1075d46)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
64ba98bbd4 r20285: pass more info to check_options hook and move behavior versions etc.
to the domain and forest structures

metze
(This used to be commit 15157bf5b9)
2007-10-10 14:29:32 -05:00
Stefan Metzmacher
4973fbe773 r20283: pass in callbacks to libnet_BecomeDC() from the caller
and implement the check_options call

metze
(This used to be commit fc9669e2a0)
2007-10-10 14:29:31 -05:00
Volker Lendecke
0cb8a7f058 r20272: Fix for BASE-BENCH-READWRITE from Mathias Dietz <MDIETZ@de.ibm.com>
(This used to be commit b053a7df84)
2007-10-10 14:29:28 -05:00
Stefan Metzmacher
88ef467282 r20251: I found out that the oid-prefix to uint32-id-prefix mapping is transferred
in replication replies, but I don't know the exact encoding.

for example the oids are transferred as:

2.5.4			=> uint8_t v[] = { 0x55, 0x04 };
2.5.5			=> uint8_t v[] = { 0x55, 0x05 };
2.5.6			=> uint8_t v[] = { 0x55, 0x06 };
2.5.18			=> uint8_t v[] = { 0x55, 0x12 };
2.5.20			=> uint8_t v[] = { 0x55, 0x14 };
2.5.21			=> uint8_t v[] = { 0x55, 0x15 };
1.2.840.113556.1.2	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x02 };
1.2.840.113556.1.3	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x03 };
1.2.840.113556.1.4	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x04 };
1.2.840.113556.1.5	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05 };
1.2.840.113556.1.5.7000	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05, 0xb6, 0x58 };
1.2.840.113549.1.9	=> uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09 };
2.16.840.1.113730.3	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03 };
2.16.840.1.113730.3.1	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x01 };
2.16.840.1.113730.3.2	=> uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x02 };
0.9.2342.19200300.100.1	=> uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x01 };
0.9.2342.19200300.100.4	=> uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x04 };
1.3.6.1.4.1.250.1	=> uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x81, 0x7a, 0x01 };
1.3.6.1.4.1.1466.101.119=> uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x8b, 0x3a, 0x65, 0x77 };

if someone knows how the encoding works, please tell me:-)
I assume some ASN.1 encoding...

metze
(This used to be commit aa720a1531)
2007-10-10 14:29:27 -05:00
Stefan Metzmacher
549b56b89d r20231: - add more oid => uint32 id mappings
- handle the case where mappings for 1.2.3.4. and 1.2.3.4.5. prefixes
  exist
- extend test suite for the mappings

metze
(This used to be commit 3af0a9b2c4)
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
c5571c7c39 r20221: - move the dsdb_schema, dsdb_attribute, dsdb_class structs into
a generic location
- this struct should be also used by the dsdb/samdb/ldb_modules/schema.c
  module later
- add functions to map from LDAP OID values to uint32_t values
- add torture test for the OID => uint32 mapping code

metze
(This used to be commit 58ba6ec195)
2007-10-10 14:29:23 -05:00
Andrew Bartlett
d471e52d23 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e83)
2007-10-10 14:29:15 -05:00
Stefan Metzmacher
5cc44027dc r20145: fix whitespaces
metze
(This used to be commit d2d9842914)
2007-10-10 14:29:15 -05:00
Stefan Metzmacher
25e468e83f r20144: add NET-API-BECOME-DC test that tests libnet_BecomeDC()/libnet_UnbecomeDC()
metze
(This used to be commit 0359d9a00b)
2007-10-10 14:29:14 -05:00
Stefan Metzmacher
f1aaa16cbc r20115: from Julien Kerihuel <j.kerihuel@openchange.org>, thanks!:
Here is a patch that adds a torture:dc_binding parametric option to
   torture_create_testuser in testjoin.c. This patch is used in OpenChange
   torture tests when the AD is different from the Exchange Server. This generic
   option could also be used for later 'member server' tests in Samba4.

metze
(This used to be commit 9ddabfc60e)
2007-10-10 14:29:09 -05:00
Andrew Bartlett
334f78d206 r20113: Update the DRSUAPI CrackNames test to explore a few more cases, and in
particular to verify more expected results.

Also return more details from the join process.  Now we also return
the machine account's GUID.

Andrew Bartlett
(This used to be commit 5b32f102af)
2007-10-10 14:29:08 -05:00
Stefan Metzmacher
00306527b6 r20093: some documentation updates
metze
(This used to be commit 314308c0bf)
2007-10-10 14:29:04 -05:00
Andrew Tridgell
9944a67508 r20092: added a locking benchmark that should be good for benchmarking
communitcation in a CIFS clustered server. It tries to keep the
connections full by setting up the next lock as each lock is done.

The locking pattern is similar to the local filesystem ping pong test
in junkcode, forcing a communication between nodes on each request
(This used to be commit d57b9fb298)
2007-10-10 14:29:04 -05:00
Stefan Metzmacher
d3c9737e5b r20079: the 2nd guid is the source_dsa invocation_id not the objectGUID,
this wasn't noticed because on the 1st dc in the forest both have the
same value

metze
(This used to be commit 527bd9a0a3)
2007-10-10 14:29:01 -05:00
Andrew Tridgell
c9291facd4 r20078: support the large samba3 reads in RAW-READ test
(This used to be commit a4c2a575fa)
2007-10-10 14:29:01 -05:00
Stefan Metzmacher
766dfed735 r20065: make it possible to get the dns domain name and netbios domain name
of the join account

metze
(This used to be commit 45da80888f)
2007-10-10 14:28:57 -05:00
Andrew Tridgell
6300221b6c r20059: james was asking about CAP_LARGE_READX and reads close to the 64k
boundary. This test shows that both for Samba4 and w2k3, reads larger
than or equal to 64k don't work (return zero bytes).

Not that I claim this is very useful behaviour :-)
(This used to be commit a10fa12ff5)
2007-10-10 14:28:56 -05:00
Stefan Metzmacher
6d34f76f86 r20039: things which need to be done for unbecoming a dc
metze
(This used to be commit 73f7e2d5b3)
2007-10-10 14:28:52 -05:00
Stefan Metzmacher
4daaae70b6 r20038: document first rootdse search
metze
(This used to be commit da6415363b)
2007-10-10 14:28:51 -05:00
Stefan Metzmacher
989b47d1f1 r20002: finish requests on the first LDAP connection
metze
(This used to be commit c5efd061c5)
2007-10-10 14:28:46 -05:00
Stefan Metzmacher
f92a005f47 r20000: 20000
metze
(This used to be commit a3202714a3)
2007-10-10 14:28:46 -05:00
Stefan Metzmacher
2c641bb21a r19999: add section for adding the server object
metze
(This used to be commit f2db31f41d)
2007-10-10 14:28:45 -05:00
Stefan Metzmacher
5a45b97415 r19998: add section for finding details about the new_dc server object
metze
(This used to be commit cd534dc936)
2007-10-10 14:28:45 -05:00
Stefan Metzmacher
fdecfa7be1 r19997: section about finding the new_dc computer account
metze
(This used to be commit 757ed019c2)
2007-10-10 14:28:45 -05:00
Stefan Metzmacher
7196056f49 r19996: add section about finding site details
metze
(This used to be commit 500113ca57)
2007-10-10 14:28:44 -05:00
Stefan Metzmacher
df8fcba2bb r19995: add section about finding details of the RID Manager fSMORoleOwner
metze
(This used to be commit ce671ff6c1)
2007-10-10 14:28:44 -05:00
Stefan Metzmacher
c117648b98 r19994: complete section about finding details about the
Infrastructure fSMORoleOwner

metze
(This used to be commit adbff0d696)
2007-10-10 14:28:44 -05:00
Stefan Metzmacher
d3d0d069c7 r19988: the first LDAP calls for becoming a ads dc
metze
(This used to be commit 2e355f8488)
2007-10-10 14:28:43 -05:00
Stefan Metzmacher
eb7187a994 r19987: some more notes about how to w2k3 becomes a dc
the strange thing is the DsGetNCChanges() calls are on their on DRSUAPI
connection, but use a bind_handle (policy handle from another connection)

metze
(This used to be commit a9c7d6e7f3)
2007-10-10 14:28:43 -05:00
Stefan Metzmacher
95df05014d r19969: split become ads dc TODO lists into W2K and W2K3 sections
metze
(This used to be commit 88818b3c08)
2007-10-10 14:28:42 -05:00
Stefan Metzmacher
18d88d0f8d r19968: add some more notes about what's needed for becoming a ads dc
metze
(This used to be commit 09b492c450)
2007-10-10 14:28:42 -05:00
Stefan Metzmacher
99c3d9c371 r19967: this unknowns are max_object_count and max_ndr_size
metze
(This used to be commit 3e6264d872)
2007-10-10 14:28:41 -05:00
Rafal Szczesniak
10573be26e r19926: display user listing created by the test.
rafal
(This used to be commit a97fb96203)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
740843e7fc r19925: Close the lsa handle in the end, and test calling libnet_UserList
with non-zero resume index to continue longer enumeration.

rafal
(This used to be commit efa04d6d0b)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
1f06299253 r19924: win2k3srv did not like that combination.
rafal
(This used to be commit 11b93da847)
2007-10-10 14:28:37 -05:00
Rafal Szczesniak
afce9d1df8 r19923: Update test to match the function changes.
rafal
(This used to be commit e1a20bba9d)
2007-10-10 14:28:36 -05:00
Jelmer Vernooij
f00d4a5e92 r19878: Announce testsuites when using subunit.
(This used to be commit daaa021645)
2007-10-10 14:28:30 -05:00
Stefan Metzmacher
3ac1f590e9 r19876: test that we can do a session setup and tree connect using the workstation
and dc credentials

I noticed w2k3 has gets NT_STATUS_LOGON_FAILURE after a it has joined a samba4 domain

metze
(This used to be commit 5da2762b62)
2007-10-10 14:28:29 -05:00
Stefan Metzmacher
b48a01b4a5 r19875: set torture:host and torture:share also when we are given a binding string
metze
(This used to be commit 8202f98123)
2007-10-10 14:28:29 -05:00
Jelmer Vernooij
68ebe25724 r19850: Fix IDL warnings.
(This used to be commit 92b8bde561)
2007-10-10 14:28:25 -05:00
Jelmer Vernooij
60b401efb9 r19846: Fix bunch of IDL warnings.
(This used to be commit 48e6df5944)
2007-10-10 14:28:24 -05:00
Jelmer Vernooij
41848fea6f r19844: Fix warnings and errors in epmapper IDL.
(This used to be commit 0221d5b6c4)
2007-10-10 14:28:24 -05:00
Jelmer Vernooij
ef9e094d84 r19843: Fix warning.
(This used to be commit 38067c1adf)
2007-10-10 14:28:23 -05:00
Jelmer Vernooij
f077cb7a09 r19836: Fix warnings in some IDL files.
(This used to be commit bd48f78b1d)
2007-10-10 14:28:23 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3)
2007-10-10 14:28:22 -05:00
Andrew Bartlett
ce2d92c878 r19760: Create a DC account for the drsuapi tests to work on, rather than
choosing an existing DC.

Allow to skip some tests under Samba4.

Andrew Bartlett
(This used to be commit 705fbae325)
2007-10-10 14:28:20 -05:00
Stefan Metzmacher
5d7b85184d r19737: - add some more CLDAP rootdse tests
- don't ignore CLDAP rootdse errors anymore

metze
(This used to be commit 712577d9e2)
2007-10-10 14:28:17 -05:00
Stefan Metzmacher
65a50f46c8 r19699: - use better names for the site strings
- use the client_site when creating the server object

metze
(This used to be commit b02d0e1be3)
2007-10-10 14:28:12 -05:00
Stefan Metzmacher
31f9ec1233 r19698: fix whitespaces...
metze
(This used to be commit fa439f5655)
2007-10-10 14:28:12 -05:00
Jelmer Vernooij
9d7856122e r19680: Allow specifying basedir for test data.
Create temporary directories in base directory.
(This used to be commit f111feb1d2)
2007-10-10 14:25:30 -05:00
Jelmer Vernooij
c81f2930a2 r19676: Fix some more dependencies.
(This used to be commit 8768bec81f)
2007-10-10 14:25:29 -05:00
Andrew Bartlett
be5e793233 r19649: Fix indentation.
Andrew Bartlett
(This used to be commit ffce008775)
2007-10-10 14:25:25 -05:00
Stefan Metzmacher
fe2a5a8abf r19645: don't pass NULL as mem_ctx...
metze
(This used to be commit 643a38bc30)
2007-10-10 14:25:25 -05:00
Stefan Metzmacher
8845a00fa1 r19641: ldap_delete() is only allowed as user, we need to give credentials to the ildap backend
metze
(This used to be commit a996d26336)
2007-10-10 14:25:24 -05:00
Andrew Bartlett
3c1e780ec7 r19604: This is a massive commit, and I appologise in advance for it's size.
This merges Samba4 with lorikeet-heimdal, which itself has been
tracking Heimdal CVS for the past couple of weeks.

This is such a big change because Heimdal reorganised it's internal
structures, with the mechglue merge, and because many of our 'wishes' have been granted:  we now have DCE_STYLE GSSAPI, send_to_kdc hooks and many other features merged into the mainline code.  We have adapted to upstream's choice of API in these cases.

In gensec_gssapi and gensec_krb5, we either expect a valid PAC, or NO
PAC.  This matches windows behavour.  We also have an option to
require the PAC to be present (which allows us to automate the testing
of this code).

This also includes a restructure of how the kerberos dependencies are
handled, due to the fallout of the merge.

Andrew Bartlett
(This used to be commit 4826f17351)
2007-10-10 14:25:03 -05:00
Andrew Bartlett
13dbee3ffe r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
(This used to be commit 2b569c42e0)
2007-10-10 14:25:00 -05:00
Rafal Szczesniak
e45922e304 r19593: add NET-API-USERLIST test
rafal
(This used to be commit fba1d8b041)
2007-10-10 14:24:59 -05:00
Rafal Szczesniak
9355c6ff85 r19592: a simple test for libnet_UserList
rafal
(This used to be commit cfcbddfe71)
2007-10-10 14:24:59 -05:00
Jelmer Vernooij
2eeb0e5f28 r19569: Require that all public header files have a destination path. Fix
places where this was currently not the case.
(This used to be commit 3894497a23)
2007-10-10 14:24:53 -05:00
Andrew Tridgell
08fdf06c49 r19565: the scripts do work :)
(This used to be commit 59c30478a1)
2007-10-10 14:24:52 -05:00
Andrew Tridgell
85e7ad8259 r19564: testing build farm scripts, apologies for the noise
(jelmer didn't see some breakage emails lately, I want to ensure its
working)
(This used to be commit a675118a66)
2007-10-10 14:24:52 -05:00
Andrew Tridgell
67a76a6e45 r19563: - make --num-progs a valid smbtorture option again. It's commonly
used.

- mark -t as an integer option
(This used to be commit 6602b605f6)
2007-10-10 14:24:52 -05:00
Jelmer Vernooij
78aa439426 r19556: Remove unused option.
(This used to be commit 827af86549)
2007-10-10 14:24:50 -05:00
Jelmer Vernooij
8d90810433 r19554: Remove short option for --shell, as it overlaps with the option used for
configuration files.
(This used to be commit c2e58aa3e6)
2007-10-10 14:24:49 -05:00
Andrew Tridgell
9014fe198d r19550: the sense of this test was wrong
(This used to be commit 4dcc26d0a6)
2007-10-10 14:24:49 -05:00
Andrew Tridgell
c24b7a045a r19549: fixed some indentation
(This used to be commit ea1e4685d9)
2007-10-10 14:24:48 -05:00
Andrew Tridgell
7997a945bb r19548: this talloc_free() is definately wrong.
(This used to be commit b412a83905)
2007-10-10 14:24:48 -05:00
Jelmer Vernooij
d8cd73563e r19537: Report correct test names when tests failed.
(This used to be commit 7b93b3c8be)
2007-10-10 14:24:45 -05:00
Simo Sorce
5028a9266d r19536: Make output understandable (newlines)
(This used to be commit 6960dd2075)
2007-10-10 14:24:45 -05:00
Jelmer Vernooij
a1a05eaa4e r19535: Fix warnings.
(This used to be commit 7443f4847d)
2007-10-10 14:24:45 -05:00
Jelmer Vernooij
56c9e61d10 r19513: Add support for recipes (using '@')
(This used to be commit dbe5e8dd8c)
2007-10-10 14:24:43 -05:00
Jelmer Vernooij
af3c5b46d3 r19512: Add --shell option to smbtorture (first work towards support for 'recipes')
(This used to be commit 087a8e80a9)
2007-10-10 14:24:43 -05:00
Jelmer Vernooij
0c09a79339 r19511: Remove unused externs.
(This used to be commit a58a366bea)
2007-10-10 14:24:42 -05:00
Jelmer Vernooij
108de297a7 r19510: Make smbtorture's `nprocs' parameter a parametric option.
(This used to be commit f5d6b3ca29)
2007-10-10 14:24:42 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
535d1920f8 r19506: fixed remaining parts of RAW-READ and RAW-WRITE tests to check for
CAP_LARGE_FILES
(This used to be commit 66bebb2105)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
9cd2b012f3 r19504: - fixed a free error in file_lines_parse
- added a function to test for large file support

- enable CAP_LARGE_FILES only if the test passes

- don't test at large offsets if the server doesn't set
  CAP_LARGE_FILES
(This used to be commit c5423ea22b)
2007-10-10 14:24:40 -05:00
Jelmer Vernooij
bc596cf917 r19495: Stop linking binaries twice (once before installation, once during build).
Make TORTURE-TALLOC and TORTURE-REPLACE builtin again rather than
separate binaries.
(This used to be commit 8913d60c72)
2007-10-10 14:24:39 -05:00
Stefan Metzmacher
f8afc52ed0 r19492: - fix RPC-AUTHCONTEXT and RPC-SAMBA3-GETUSERNAME (sorry volker:-)
smb_composite_sesssetup() doesn't set session->vuid any more...
(I changed that yesterday, because it was inconsistently only done
 for spnego session setups, as it was needed internaly for the 2nd
 session setup call, but know session->vuid is only touched (reset to 0)
 for the wrong password case)

metze
(This used to be commit bf2a7dd218)
2007-10-10 14:24:38 -05:00
Andrew Bartlett
614e52764e r19462: This isn't an encrypted attribute.
Andrew Bartlett
(This used to be commit 12765db714)
2007-10-10 14:21:36 -05:00
Andrew Tridgell
ab037664d8 r19439: revert my change to a torture assert - expected is a bool
(This used to be commit 1d231e45bd)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
ce37cdb593 r19437: don't run the LOCAL-ICONV test on systems that don't have CP850
support
(This used to be commit bb8cdd7626)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
1427d5012a r19436: fixed stderr in piped_child() as well
(This used to be commit db000261f4)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
acadb12c26 r19435: fixed the subunit code on platforms with small pipe buffers, and use
pipe() on all platforms, not socket pairs (stdin/out are not sockets)

also show the output while its happening, so the tests become useful
again for non-automated usage.

I still really dislike running tests like the TALLOC one as child
processes
(This used to be commit b621999c59)
2007-10-10 14:21:31 -05:00
Andrew Tridgell
49371f496d r19433: Metze, please take a look at this one!
Failures on some platforms of the WINSREPLICATION test have been
bugging us for months. I finally traced it down to this one record, at
least on the SerNet-solaris8 machine. Disabling this one record allows
the test to pass. I have no idea why, but I'll leave that to Metze :)
(This used to be commit 94cdfd5458)
2007-10-10 14:21:30 -05:00
Andrew Tridgell
af870da619 r19428: moved tdbutil.c from lib/tdb/common/ to lib/util/util_tdb.c
tdbutil.c is Samba specific, so should not be part of the generic tdb
library
(This used to be commit 979dd24f5e)
2007-10-10 14:21:30 -05:00
Andrew Tridgell
d6db8e6cb8 r19404: fixed the LOCAL-ICONV test
(This used to be commit 0b3e83814b)
2007-10-10 14:21:26 -05:00
Jelmer Vernooij
e2383f7ecb r19396: Assume socketpair() is always available (cared for by libreplace) and
create a socket for stderr.
(This used to be commit 16b6dbd713)
2007-10-10 14:21:25 -05:00
Jelmer Vernooij
a39f239cb2 r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978f)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
19af876bbb r19389: Remove samba3-specific checks: instead, always simply mark these tests as
known failing.
(This used to be commit 3855ec9dca)
2007-10-10 14:21:23 -05:00
Jelmer Vernooij
1d3663c230 r19387: Exit with 0 if failures were expected
(This used to be commit b4fc06aeaf)
2007-10-10 14:21:23 -05:00
Jelmer Vernooij
4517b7af0e r19381: Print out the specific tests that failed after a smbtorture run.
Support listing known failures as a list of wildcards in the file
`KNOWN_FAILURES'.
(This used to be commit 23f66efd56)
2007-10-10 14:21:22 -05:00
Rafal Szczesniak
c7090e6669 r19380: forgot to add home drive testing as well as home directory...
rafal
(This used to be commit 732c22071e)
2007-10-10 14:21:21 -05:00
Rafal Szczesniak
8fd1ca82d8 r19379: add testing home directory field to the samr tests.
rafal
(This used to be commit 4dfd1d5027)
2007-10-10 14:21:21 -05:00
Jelmer Vernooij
ac698cc283 r19378: Add another type of test result 'error'
(This used to be commit 77d13056bf)
2007-10-10 14:21:20 -05:00
Jelmer Vernooij
1e818c463a r19377: Simplify report functions.
(This used to be commit 0061f3c47e)
2007-10-10 14:21:20 -05:00
Jelmer Vernooij
67abfc4981 r19376: Remove unused helper function.
(This used to be commit 88c589940d)
2007-10-10 14:21:19 -05:00
Jelmer Vernooij
8acb0575c7 r19373: Merge changes from subunit branch: Convert libreplace testsuite to a
standalone program that speaks subunit.
(This used to be commit 48d316e759)
2007-10-10 14:21:19 -05:00
Jelmer Vernooij
d60c86364c r19372: Fix segfault for ui's that don't support comments.
(This used to be commit 0eef6dabc6)
2007-10-10 14:21:19 -05:00
Stefan Metzmacher
87e8218d09 r19369: - we need to set the target:samba3 before calling torture_init()
otherwise BASE-DELETE will run all tests

- call ldb_global_init() directly after torture_init()
  this isn't strictly needed but looks better

metze
(This used to be commit 0c26c2aefd)
2007-10-10 14:21:18 -05:00
Andrew Tridgell
f721bcda15 r19366: don't fail async echo tests due to rounding errors
(This used to be commit 9389ca13a3)
2007-10-10 14:21:18 -05:00
Jelmer Vernooij
1447b7aed9 r19359: More portable way of figuring out whether something is a directory
(This used to be commit 96dff03a2b)
2007-10-10 14:21:16 -05:00
Jelmer Vernooij
c554e2168b r19358: Use subunit tests from the right location (from
$src/bin/torture when developing, $LIBDIR/torture when installed)
(This used to be commit 4ae6380e6b)
2007-10-10 14:21:16 -05:00
Jelmer Vernooij
f442ad8083 r19356: Reapply portability fix..
(This used to be commit a48d1b2d16)
2007-10-10 14:21:15 -05:00
Jelmer Vernooij
411ed1194a r19352: Oops, missed a few changes...
(This used to be commit 73f1d93780)
2007-10-10 14:21:15 -05:00
Jelmer Vernooij
b58deeea69 r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Support directories for subcategories in tests.
Several small other fixes.
(This used to be commit bde00d9706)
2007-10-10 14:21:14 -05:00
Jelmer Vernooij
d490e27304 r19346: AF_LOCAL isn't defined on all platforms.
(This used to be commit e9bd6f28d8)
2007-10-10 14:21:14 -05:00
Jelmer Vernooij
52e3f69a36 r19343: Add support for external scripts/binaries that write results using the
'subunit' protocol. This allows us to easily plug EJS scripts or binaries that
can't depend on -ltorture into smbtorture. The protocol is very simple:

- write "comments" to stderr

Example output on stdout:
test: foo
success: foo
test: bar
success: bar
test: blah
failure: blah [
dummy.c:30: Expression 1 != 2 failed!
]
test: blie
skip: blie [
Iconv support not built in
]

I've already converted the talloc testsuite.
(This used to be commit e1742c14a2)
2007-10-10 14:21:13 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Simo Sorce
1695408407 r19331: Respect the mem hierarchy
(This used to be commit de45756ea6)
2007-10-10 14:21:11 -05:00
Simo Sorce
59b66744f7 r19299: Fix possible memleaks
(This used to be commit 6fad80bb09)
2007-10-10 14:21:04 -05:00
Andrew Tridgell
a719444f68 r19298: make sure torture_fail() gives a useful message
Jelmer, is there a better approach for this?
(This used to be commit 67e2cf9217)
2007-10-10 14:21:04 -05:00
Andrew Tridgell
3433468e12 r19294: a little speed tester for ldb/tdb
I wrote this to see if using a ldb for idmap store (the equivalent of
winbindd_idmap.tdb) makes sense. It's a long lived database that
administrators may wish to edit, so ldb makes sense, but at the moment
ldb is too slow. This test will help us speed it up.
(This used to be commit 10f8260455)
2007-10-10 14:21:03 -05:00
Volker Lendecke
518666fde1 r19293: Add RPC-SAMBA3-WINREG, the start of a test of what Samba3 is able to perform
right now.

Volker
(This used to be commit f381232c3a)
2007-10-10 14:21:03 -05:00
Andrew Bartlett
57b8c5cd22 r19266: Add a target_hostname element to the binding struct. This allows us
to perform a lookup once, resolve the name to an IP, while still
communicating the full name to the lower layers, for kerberos etc.

This fixes 'net samdump', which was failing due to the schannel target
name being *smbserver.

Andrew Bartlett
(This used to be commit 0546f487f4)
2007-10-10 14:21:00 -05:00
Rafal Szczesniak
49eb5dc142 r19251: fix silly typos causing the test to fail at account_name
and acct_expiry fields.

rafal
(This used to be commit dba5e642a0)
2007-10-10 14:20:57 -05:00
Volker Lendecke
554972d1d2 r19247: Ok, figured out that wkssvc wksgetinfo also gives the server name. I thought I
had tested that w2k3 copies the input server name to output.

Volker
(This used to be commit b7e54501f7)
2007-10-10 14:20:57 -05:00
Volker Lendecke
4ead8b391d r19205: Some consolidation
(This used to be commit 6991864a03)
2007-10-10 14:20:54 -05:00
Volker Lendecke
b0d8e2d42c r19204: Samba3 does level6 now
(This used to be commit 603ecde9bc)
2007-10-10 14:20:53 -05:00
Volker Lendecke
22abc6b927 r19202: Make RPC-SAMBA3-SPOOLSS work against w2k3 again
(This used to be commit f67a0159d1)
2007-10-10 14:20:53 -05:00
Volker Lendecke
51b4a41d52 r19201: rap_cli_do_call only needs smbcli_tree, not smbcli_state
(This used to be commit 15c3b5d26e)
2007-10-10 14:20:53 -05:00
Volker Lendecke
5c46265048 r19200: Implement smbcli_rap_netservergetinfo. To be used in RPC-SAMBA3SPOOLSS and
others that might need the server name.

Volker
(This used to be commit 03eaf0edf9)
2007-10-10 14:20:52 -05:00
Stefan Metzmacher
d6e1eb9872 r19187: this function should be static...
(this also fix compiler warnings)

metze
(This used to be commit f8afdac471)
2007-10-10 14:20:51 -05:00
Rafal Szczesniak
ae908a5b06 r19174: fix the test to pass against win2k3 server (username length
limit had been hit here, I guess).

rafal
(This used to be commit 795a37e170)
2007-10-10 14:20:49 -05:00
Volker Lendecke
8f073d3004 r19153: Simple consistency check for enumprinters level 2 as well
(This used to be commit bd50a59294)
2007-10-10 14:20:44 -05:00
Volker Lendecke
84a5b72847 r19152: A simple consistency check for enumprinters
(This used to be commit 593b17c8e5)
2007-10-10 14:20:44 -05:00
Stefan Metzmacher
bc619e7328 r19035: add LOCAL-REPLACE test
metze
(This used to be commit e95a1ab2cd)
2007-10-10 14:20:30 -05:00
Volker Lendecke
1344f23546 r19027: Modify RPC-SAMBA3-SPOOLSS so that it can be activated in the build farm
(This used to be commit 7304abe595)
2007-10-10 14:20:30 -05:00
Rafal Szczesniak
94bc020f84 r19025: - remove read-only and policy dependent fields and flags
- do not stop NET-API-USERMODIFY test when a single field fails
- add account flags to the fields tested
- separate "cleanup" step from closing domain at the end

rafal
(This used to be commit 16fde3b8e2)
2007-10-10 14:20:29 -05:00
Stefan Metzmacher
aeee137f80 r18994: - torture_register_suite should be public
- some whitespace cleanups

metze
(This used to be commit 49755f2224)
2007-10-10 14:20:27 -05:00
Andrew Tridgell
318682b003 r18971: avoid strndup is a few places. Fixes a minor memory leak, and should
fix RPC-LSA on AIX.
(This used to be commit 6cce709d08)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
443a22b7f7 r18860: fixed some code that bitrotted while we didn't have the safety check
with NTSTATUS, WERROR etc.
(This used to be commit fddb85bfa8)
2007-10-10 14:20:16 -05:00
Günther Deschner
3f028fb550 r18844: Workaround win2k behaviour (which returns WERR_NO_MORE_ITEMS instead of
WERR_OK) in the dfs torture test.

Guenther
(This used to be commit dc1b8a3aae)
2007-10-10 14:20:15 -05:00
Andrew Tridgell
ed24e83d5b r18838: make sure we cleanup after SMB2-MAXWRITE (it creates a large file)
(This used to be commit 54894fb8b8)
2007-10-10 14:20:14 -05:00
Andrew Tridgell
921f73c7e5 r18835: expand IO limits on SMB2. Samba4 now tops out at 16.7MB IOs.
(This used to be commit 1e34e4d5a1)
2007-10-10 14:19:16 -05:00
Günther Deschner
492b8d38bf r18822: Automatically remove a forced dfs standard root creation.
Guenther
(This used to be commit 5af5c18774)
2007-10-10 14:19:14 -05:00
Günther Deschner
677b680fcd r18821: Correctly name dfs_AddStdRootForced() test.
Guenther
(This used to be commit 0ee0873869)
2007-10-10 14:19:13 -05:00
Andrew Tridgell
8c3b54f01d r18808: added SMB2-MAXWRITE test and SMB2-DIR tests
expanded size of dangerous level for write in SMB2-CONNECT test
(This used to be commit 355c6e78a9)
2007-10-10 14:19:13 -05:00
Andrew Tridgell
4f913d91cb r18807: don't overtax the imaginations of servers that can't do mkdir on \\dirname\\
(This used to be commit 6f2b585f8e)
2007-10-10 14:19:13 -05:00
Stefan Metzmacher
ead672ea09 r18800: fix a write behind the buffer bug...
Thanks Herb for finding this:-)

This was my bug, I typed it in on gd's laptop and he just run 'svn ci'

metze
(This used to be commit 3c08e29f4f)
2007-10-10 14:19:12 -05:00
Günther Deschner
da94f9ffd9 r18782: Do not send random data to the password change (although that reveals
interesting new password set tests), make sure to send valid characters.

Guenther
(This used to be commit f193c5347c)
2007-10-10 14:19:11 -05:00
Günther Deschner
3a3da493f0 r18776: Fill in and test dfs_ManagerInitialize().
Guenther
(This used to be commit 3e0e9506b6)
2007-10-10 14:19:10 -05:00
Günther Deschner
448544935c r18766: Getting rid of one test_GetManagerVersion() call and fix the build.
Guenther
(This used to be commit dc9045b30c)
2007-10-10 14:19:09 -05:00