1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

138 Commits

Author SHA1 Message Date
Andrew Bartlett
f86d3b4785 r22523: Give a hint why this test fails (helped debugging backend issues).
Andrew Bartlett
2007-10-10 14:51:37 -05:00
Andrew Bartlett
860dfa4ea1 r22478: Update the LDAP backend code to handle initialisation of multiple
partitions onto the target LDAP server.

Make the LDAP provision run before smbd starts, then stop the LDAP
server.  This ensures this occurs synchronously, We then restart it
for the 'real run' (with slapd's stdin being the FIFO).

This required fixing a few things in the provision scripts, with more
containers being created via a add/modify pair.

Andrew Bartlett
2007-10-10 14:51:31 -05:00
Andrew Bartlett
b0cbf16936 r22284: Make this script executable 2007-10-10 14:50:56 -05:00
Andrew Bartlett
7f27bfc356 r22235: Test kinit, and PKINIT functionality by means of a new blackbox test.
Andrew Bartlett
2007-10-10 14:50:41 -05:00
Andrew Bartlett
16a2bb87a8 r22187: Test kerberos logins in the smbclient blackbox tests, including with a
machine account.

Andrew Bartlett
2007-10-10 14:50:01 -05:00
Andrew Bartlett
12f4e6033e r22170: To get the smbclient blackbox test to pass again, we need to get the
private dir to contain a valid machine account.

It isn't really valid it use the DC's account any more, so extend this
script to also join the domain.  This nicely tests out some previously
untested code too!

Andrew Bartlett
2007-10-10 14:49:57 -05:00
Andrew Bartlett
fed42cf5a3 r21737: Print the error strings in the ejs ldb test. 2007-10-10 14:49:21 -05:00
Andrew Bartlett
3430d8c072 r21736: Fix the smbclient test to do something more interesting with the last
few authentication tests.  Now that the tests correctly 'fail', I was
able to fix the credentials subsystem to honour USER and PASSWD.

To get --machine-pass working, I needed ldb to always load it's static
modules, so I put this in ldb_connect().

Andrew Bartlett
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
38f867880b r21707: Finally merge my (long-living) perlselftest branch.
This changes the main selftest code to be in perl rather than in shell script.

The selftest script is now no longer a black box but a regular executable that takes
--help.

This adds the following features:

 * "make test TESTS=foo" will run only the tests that match the regex "foo"
 * ability to deal with expected failures. the suite will not warn about tests
   that fail and are known to fail, but will warn about other failing tests and
   tests that are succeeding tests but incorrectly marked as failing.
 * ability to print a summary with all failures at the end of the run

It also opens up the way to the following features, which I hope to implement later:
 * "environments", for example having a complete domains with DCs and domain members
 in a testenvironment
 * only set up smbd if necessary (not when running LOCAL tests, for example)
 * different mktestsetup scripts per target. except for the mktestsetup script, we can
   use the same infrastructure for samba 3 or windows.
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
aa29907327 r21700: Run mktestsetup as an external program. This guarantees that it can be used for other selftest implementations (in particular the perl one I've been working on). 2007-10-10 14:49:15 -05:00
Andrew Bartlett
2b3df7f38d 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
2007-10-10 14:48:44 -05:00
Stefan Metzmacher
c8d903b606 r21361: let samba3sam.js pass when we'll use unicodePwd for storing the nt hash
jelmer: what should this test really test?

metze
2007-10-10 14:48:19 -05:00
Simo Sorce
35886b4ae6 r21351: Change ldb ejs bindings return codes.
We were returning just true/false and discarding error number and string.

This checking probably breaks swat, will fix it in next round as swat
is what made me look into this as I had no way to get back error messages
to show to the users.

Simo.
2007-10-10 14:48:18 -05:00
Jelmer Vernooij
b975ce3a47 r21017: Actually run tests during test phase rather than when generating the recipe. 2007-10-10 14:44:20 -05:00
Stefan Metzmacher
4ceb12f5d3 r21000: add some options to control what ldif is dumped
default is dump everything

metze
2007-10-10 14:44:19 -05:00
Stefan Metzmacher
30a0e8b26e r20999: - update the list of attributes for classSchema and atttributeSchema objects
- use ${SCHEMADN} instead of CN=Schema,CN=Configuration,${BASEDN}
- do not include autogenerated values: instanceType, cn and name in the ldif output
- take care of the systemOnly attribute and a resulting NO-USER-MODIFICATION

metze
2007-10-10 14:44:19 -05:00
Andrew Bartlett
f85e57a71e r20958: Inspired by the lcov output, check the PASSWD_FILE and
--authentication-file options to smbclient.

Andrew Bartlett
2007-10-10 14:44:02 -05:00
Jelmer Vernooij
96ac1c62ee r20747: Move cifsdd to blackbox section 2007-10-10 14:40:36 -05:00
Jelmer Vernooij
7e6357f213 r20746: Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
2007-10-10 14:40:36 -05:00
Andrew Bartlett
0b7a5b7284 r20457: Print more information before asserting 2007-10-10 14:35:50 -05:00
Rafal Szczesniak
a20b05183d r20176: Info method returns null object if the user is not found.
rafal
2007-10-10 14:29:18 -05:00
Rafal Szczesniak
3cdd43ebce r20143: a bit of experiments before doing serious changes in ejsnet.
rafal
2007-10-10 14:29:14 -05:00
Rafal Szczesniak
2586958881 r19971: typo fix
rafal
2007-10-10 14:28:42 -05:00
Andrew Bartlett
186766e309 r19731: Modify the ldb_map infrustructure to always map from requested
attributes to backend (remote) attributes.

We can't do a reverse mapping safely where the remote attribute may be
a source for multiple local attributes.  (We end up with the wrong
attributes returned).

In doing this, I've modified the samba3sam.js test to be more
realistic, and fixed some failures in the handling of primaryGroupID.

I've added a new (private) helper function ldb_msg_remove_element() to
avoid a double lookup of the element name.

I've also re-formatted many of the function headers, to fit into
standard editor widths.

Andrew Bartlett
2007-10-10 14:28:15 -05:00
Stefan Metzmacher
d643c3cc5c r19729: - split basedn related tests to a new function
- and add some 'netlogon' attriubte related tests

metze
2007-10-10 14:28:15 -05:00
Stefan Metzmacher
463ed4c004 r19727: make it possible to run the ldap.js tests against non global catalog servers
metze
2007-10-10 14:28:15 -05:00
Andrew Bartlett
6c5f4af01f r18786: I moved the usnChanged code around, and it now loaded in a different
module.  I forgot to commit this last night.

Andrew Bartlett
2007-10-10 14:19:12 -05:00
Jelmer Vernooij
d062e10166 r18721: Fix base and samba3sam EJS tests to work without installation. 2007-10-10 14:19:04 -05:00
Jelmer Vernooij
5c0451842b r18720: Get rid of unused file. 2007-10-10 14:19:04 -05:00
Andrew Tridgell
63760acbb7 r18573: disable the echo.js testing of echo_TestCall() for now.
Jelmer, we need to fix pidl to be able to handle the double pointers
in the ejs generated code
2007-10-10 14:18:48 -05:00
Andrew Bartlett
5ff3f10d4f r17925: Another class we need.
Andrew Bartlett
2007-10-10 14:16:54 -05:00
Simo Sorce
4975659fd7 r17839: do not reference possibleInferiors we have not extracted
trim duplicate may attributes
2007-10-10 14:16:47 -05:00
Simo Sorce
74c40719f2 r17662: some more enhancements to our schema extraction tool,
with a nasty hack in minschema.js that I really hate
2007-10-10 14:16:21 -05:00
Andrew Bartlett
1ddd06f24d r17661: A patch from Martin Kuehl:
This commit extends the samba3sam test suite, which contains tests for
the samba3sam and ldb_map modules, with a lot of tests for inbound,
i.e. add, modify, rename and delete requests.

The tests each add a single record, modify it, rename it, and then
delete it, at each step checking that the operations were successful
and that the right data went into the right partitions.
They are run for an unmapped record, a mapped record with data only in
the remote partition, a mapped record with remote data that is later
modified to include local data, and a mapped record with data in both
the local and remote partitions.

It also adds a function to the backend objects that makes construction
of DNs for their respective partitions more comfortable.

Cheers,
Martin
2007-10-10 14:16:21 -05:00
Simo Sorce
09a3272611 r17651: Commit the set of classess used to generate our schema
and update the schema with the latest additions
2007-10-10 14:16:20 -05:00
Simo Sorce
8dd1c1c05b r17648: update minschema.js
this version returns also oMSyntax and oMObjectClass and also
use the right value for the objects CNs

add a nasty hack to ejs' mprLdbMessage() to handle binary blobs situations
2007-10-10 14:16:19 -05:00
Andrew Bartlett
67c9cd508e r17646: Use authentication if specified.
Andrew Bartlett
2007-10-10 14:16:19 -05:00
Andrew Bartlett
120f7891fa r17598: Patch from Martin Kühl <mkhl@samba.org> to update the samba3sam test
suite, which contains tests for the samba3sam and ldb_map modules,
with a lot of tests for search requests.

The tests add a small set of known records to the database, half of
them with only remote data, half of them split across the local and
remote backends, and test searching these records by DN, by attribute
and with a range of parse trees.

This suite should be extensive enough to ensure that behaviour of
search requests doesn't break.
2007-10-10 14:16:15 -05:00
Simo Sorce
25cde0f730 r17597: fix prefix path handling 2007-10-10 14:16:15 -05:00
Andrew Bartlett
c2c72565e4 r17547: Add test by mkhl for some of our variable substituion behaviour.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
1a5ade30dc r17546: Test the loading of per-partition modules.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
c1349cfd8d r17544: Add execute bit to js script.
Andrew Bartlett
2007-10-10 14:15:36 -05:00
Andrew Bartlett
f69a842314 r17543: Patch from Martin Kühl <martin.kuehl@gmail.com> to extend the
samba3sam test cases for ldb_map, and to include this into our default
'make test'.
2007-10-10 14:15:36 -05:00
Andrew Bartlett
af2bece4d3 r17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
<mkhl@samba.org>.

Martin took over the work done last year by Jelmer, in last year's
SoC.  This was a substanital task, as the the ldb modules API changed
significantly during the past year, with the addition of async calls.

This changeset reimplements and enables the ldb_map ldb module and
adapts the example module and test case, both named samba3sam, to the
implementation.

The ldb_map module supports splitting an ldb database into two parts
(called the "local" and "remote" part) and storing the data in one of
them (the remote database) in a different format while the other acts
as a fallback.
This allows ldb to e.g. store to and load data from a remote LDAP
server and present it according to the Samba4 schema while still
allowing the LDAP to present and modify its data separately.

A complex example of this is the samba3sam module (by Jelmer
Vernooij), which maps data between the samba3 and samba4 schemas.

A simpler example is given by the entryUUID module (by Andrew
Bartlett), which handles some of the differences between AD and
OpenLDAP in operational attributes.  It principally maps objectGUID,
to and from entryUUID elements.  This is also an example of a module
that doesn't use the local backend as fallback storage.

This merge also splits the ldb_map.c file into smaller, more
manageable parts.
2007-10-10 14:15:33 -05:00
Andrew Bartlett
eadc24ed29 r17380: An expanded test, cross-referencing the global catalog to the main port.
Andrew Bartlett
2007-10-10 14:15:20 -05:00
Andrew Bartlett
ad463c1a52 r17302: Testing!
This confirms that records are replicated into the correct databases,
and that the case insensitive flags really work.

Andrew Bartlett
2007-10-10 14:15:08 -05:00
Andrew Bartlett
90c07b8801 r17299: Improve the partition module to replicate attribute records into all
partitions.

Test that we do that correctly.

Andrew Bartlett
2007-10-10 14:15:08 -05:00
Andrew Bartlett
5abe3c4f5f r16934: Expand the ldb test to demonstrate partition behaviour, including the
global USN and global transactions.

Andrew Bartlett
2007-10-10 14:10:01 -05:00
Andrew Bartlett
2728b60dfa r16914: Add more tests for the partition module.
Andrew Bartlett
2007-10-10 14:09:59 -05:00
Andrew Bartlett
ac9d3cb5b0 r16167: Add tests for the changes to use hex digits, including some tests
commented out until we fix some more things on our server.

Andrew Bartlett
2007-10-10 14:09:03 -05:00