1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

222 Commits

Author SHA1 Message Date
Jelmer Vernooij
3923414849 Remove unused EJS net bindings. 2008-05-26 14:00:28 +02:00
Jelmer Vernooij
3d22b72bb7 Remove unused scripts. 2008-05-26 13:34:36 +02:00
Jelmer Vernooij
3a6b009d50 Remove unused echo ejs script. 2008-05-23 04:20:52 +02:00
Jelmer Vernooij
88d473b202 Convert samr test to python. 2008-05-23 04:20:45 +02:00
Jelmer Vernooij
e14c930200 Remove unused EJS testprogs. 2008-05-23 03:34:57 +02:00
Andrew Kroeger
c0234d1319 subunit.sh: Properly capture and pass on the command output.
Previously, the output from $cmdline was never captured.  In case of a
failure, there was no output being passed to the subunit_fail_test() function,
but that function contains a call to "cat -".  This caused the script to hang
indefinitely waiting for input.

We now capture $cmdline output (including mapping stderr to stdout) using
backticks, and then pipe that output to the subunit_fail_test() if there is
a failure.
2008-05-21 20:46:14 -05:00
Jelmer Vernooij
58f956dc45 Fix reference to removed smbpython. 2008-05-21 15:39:00 +02:00
Andrew Bartlett
18dd8120cc Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet 2008-04-16 16:12:58 +02:00
Andrew Bartlett
86694d429d Fix wbinfo --trusted-domains.
The problems here were that we did not bind to the LSA pipe, and we
did not consider it possible to have 0 trusted domains.

Andrew Bartlett
2008-04-16 16:10:16 +02:00
Jelmer Vernooij
49367e044e Use the subunit shell library. 2008-04-16 14:52:29 +02:00
Jelmer Vernooij
690924dc7f Use library for subunit test functions. 2008-04-16 12:34:53 +02:00
Jelmer Vernooij
4f0954905a Fix -r test, knownfailure return code. 2008-04-16 01:10:20 +02:00
Jelmer Vernooij
56340a5fa1 Merge branch 'wbinfo-test' of git://git.samba.org/kai/samba/kai-work-in-progress into v4-0-selftest 2008-04-16 00:05:36 +02:00
Jelmer Vernooij
a3f0e4151b Fix executable bit on blackbox ndrdump tests. 2008-04-16 00:05:12 +02:00
Kai Blin
0a2942f6e9 blackbox: Add many more tests for wbinfo 2008-04-15 23:36:41 +02:00
Andrew Bartlett
695cee0349 Test password change with 'net password change'.
Andrew Bartlett
2008-04-15 10:40:06 +02:00
Andrew Bartlett
24a2409d72 Test a few more bits of smbclient 2008-04-15 10:05:29 +02:00
Andrew Bartlett
d2fe61a13a Add blackbox test for ndrdump, to ensure it at least does not
segfault.

Andrew Bartlett
2008-04-15 09:13:32 +02:00
Andrew Bartlett
727ef40c2b Fix and test python scripts and kerberos
This fixes up the python credentials interface in a number of areas,
with the aim of supporting '-k yes' as a command line option.  (This
enables the use of kerberos).

As such, I've had to change the get_credentials call to take a
loadparm context, so that the credentials can be initialised
correctly.

The test_kinit script has been modified to prove that this continues
to work, as well as to provide greater code coverage of the kerberos
paths.

Andrew Bartlett
2008-03-28 21:57:15 +11:00
Andrew Bartlett
89458c7d8b Extend the ldap.js test to prove faults with the LDAP backend.
Try to provide more information to see why OpenLDAP isn't quite up to
being a Samba4 Backend.

Andrew Bartlett
2008-03-19 12:12:24 +11:00
Andrew Bartlett
1adc74c65a Don't hardcode objectCategory into the schema, even in the schema.
We now load the schema early enough that we can generate this too!

Andrew Bartlett
2008-03-04 11:27:57 +11:00
Andrew Bartlett
0a5fa41dd7 Extend the ldap.js test
Now we verify sAMAccountType and userAccountControl, as well as rename and
DN mismatch semantics.

Andrew Bartlett
2008-02-28 08:37:11 +11:00
Andrew Tridgell
716345fd38 added blackbox testing of gentest 2008-02-15 16:42:22 +11:00
Andrew Tridgell
05a110123d added a blackbox test for masktest 2008-02-15 15:33:10 +11:00
Andrew Tridgell
625ea49a95 converted locktest to use popt and cmdline utility code 2008-02-15 14:55:31 +11:00
Andrew Tridgell
af6484f78d added blackbox testing for locktest 2008-02-15 14:27:06 +11:00
Jelmer Vernooij
13deb25214 Reintroduce samba3sam EJS test, at least until the Python test is ready. 2008-02-12 01:42:58 +01:00
Jelmer Vernooij
7aff2ddd8c Remove tests for Samba 3 EJS code. 2008-02-11 13:38:07 +01:00
Jelmer Vernooij
3f24136b56 Move nmblookup blackbox test closer to the code it tests. 2008-02-09 17:17:21 +01:00
Andrew Bartlett
41309dc862 A couple more ipsec classes for the schema.
Andrew Bartlett
2008-02-09 14:48:56 +11:00
Andrew Bartlett
a466dda118 From a request from Peter Huang, include IPsec sechema.
(We may need to include more defaults in the template, but I want to
start small for now).

Andrew Bartlett
2008-02-09 09:59:45 +11:00
Jelmer Vernooij
16382999be Put temporary test files in test directory. 2008-02-08 00:34:29 +01:00
Stefan Metzmacher
dc15c88335 win32-tests: add a very usefull w32 programm to explore midl features
You have to define idl, call the client function
and add a server implementation.

Then you need to compile midltests.exe
and run it, it will dump the generated NDR on the
screen.

metze
2008-02-06 16:34:36 +01:00
Andrew Bartlett
281bc76d3d Make ranged results tests in ldap.js easier to debug.
This adds some extra information to the failure message, to chase down
which test is failing.

Andrew Bartlett
2008-01-23 09:00:00 +11:00
Andrew Bartlett
89053bc564 Test the behaviour of mixed domain_scope and search_options controls.
Andrew Bartlett
2008-01-16 08:58:07 +11:00
Andrew Bartlett
9b47b551a3 Make ldap.js test easier to re-run in failure cases, by deleting more
things that we will create later.

Andrew Bartlett
2008-01-16 08:57:28 +11:00
Jelmer Vernooij
9ad2de6e99 Remove accidently committed debugging statement. 2008-01-13 04:50:33 +01:00
Jelmer Vernooij
1d703dcf3a tests.blackbox: Avoid my local Kerberos setup from interfering with the blackbox.smbclient test. 2008-01-13 02:45:55 +01:00
Andrew Bartlett
91bcb60d31 r26488: Implement tests for the ranged_results module.
Untested code is broken code, so rework the module until it passes...

It turns out that AD puts search attributes onto the wire in the
reverse order to what Samba does.  This complicates exact value
matching, so this is skipped for now.

Andrew Bartlett
2007-12-21 05:50:45 +01:00
Andrew Bartlett
11c153163c r26479: Further test behaviour of 'attribute or value exists'.
Andrew Bartlett
2007-12-21 05:50:37 +01:00
Andrew Bartlett
bf5b2f467f r26420: Don't print a blow-by-blow description of every search we do, just the
errors that occour.

Andrew Bartlett
2007-12-21 05:49:48 +01:00
Andrew Bartlett
044b509472 r26419: Add a module to implement 'ambigious name resolution' by munging the
incoming LDAP filter.

Warning: Any anr search will perform a full index search.  Untill ldb
gets substring indexes, this is unavoidable.

Also implement a testsutie to show we match AD behaviour for this
important extension (used in the Active Directory Users and Computers
MMC plugin, as a genereral 'find').

This will also be useful to OpenChange, as their server needs to
implement this.

Andrew Bartlett
2007-12-21 05:49:48 +01:00
Andrew Bartlett
833dfc2f2a r26192: Handle, test and implement the style of extended_dn requiest that MMC uses.
It appears that the control value is optional, implying type 0 responses.

Failing to parse this was causing LDAP disconnects with 'unavailable
critical extension'.

Andrew Bartlett
2007-12-21 05:46:44 +01:00
Andrew Bartlett
65d17f0ad7 r26182: Extend our linked attribute testsuite to cover many more possible
modifications, and then extend our implementation to match.

Andrew Bartlett
2007-12-21 05:46:38 +01:00
Andrew Bartlett
d41f34e979 r26140: Add a new test for searches by distinguieshedName and dn, and
implement these in the simple ldap mapping module.

We still don't pass this test, because we must get linked attributes
into OpenLDAP.

Andrew Bartlett
2007-12-21 05:46:20 +01:00
Andrew Bartlett
e178df4a18 r25961: Add new tests to verify basedn validation in LDAP searches.
Andrew Bartlett
2007-12-21 05:45:19 +01:00
Andrew Bartlett
a10d2554dc r25948: Fix up the samba3sam test (which is very fragile) to work with the new
restrictions imposed by the samldb module.

This module is worth keeping, because when we go back to do more
extensive backend mapping, the testing of this module shows it is
still possible.

Andrew Bartlett
2007-12-21 05:45:13 +01:00
Andrew Bartlett
0377d85bbd r25891: Test that we get the correct return value when we attempt to reference
invalid entries with a linked attribute.

Make Samba4 pass that test, by fixing a silly bug in the
linked_attributes module.  (By passing down the 'original' request
structure, tdb would override our handle, and therefore we would never
be called for the 'wait', which collects the errors).

Fix up the provision templates to handle the newly required
referential integrity.

Andrew Bartlett
2007-12-21 05:44:41 +01:00
Andrew Bartlett
c805934017 r25826: Prove that adding a user or computer via LDAP doesn't magicly give
them any more group memberships.

Andrew Bartlett
2007-12-21 05:44:15 +01:00
Andrew Bartlett
c66e188e67 r25788: Use a single routine to handle the creation of modify requests in the
linked_attributs code.

This drasticly reduces the code duplication here.

Andrew Bartlett
2007-12-21 05:43:59 +01:00