1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-02 08:58:33 +03:00

195 Commits

Author SHA1 Message Date
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
Andrew Bartlett
2c95274e25 r25787: Assert that we handle the group membership updating correctly,
including when we delete members from the DB.

Andrew Bartlett
2007-12-21 05:43:58 +01:00
Andrew Bartlett
56d9dd5140 r25781: Handle and test linked attribute renames.
Andrew Bartlett
2007-12-21 05:43:56 +01:00
Andrew Bartlett
16a292fcb1 r25762: This test belongs best with the other checks for a valid parent, in
the objectclass module.

Andrew Bartlett
2007-12-21 05:43:47 +01:00
Andrew Bartlett
958a92ed0c r25761: Rename to be a DN to be a child of itself wasn't being checked for.
This prevents CN=test,dc=samba,dc=example,dc=com being renamed into
CN=test2,cn=test,dc=samba,dc=example,dc=com

Andrew Bartlett
2007-12-21 05:43:47 +01:00
Andrew Bartlett
0019596b71 r25760: Test out relative distinguished name behaviour under renames.
Andrew Bartlett
2007-12-21 05:43:47 +01:00
Andrew Bartlett
bfc96fff06 r25754: More work on normal forms for ldb input.
This patch is to ensure that all attributes are in the same case as
the schema specifies.  In the process, I ensure that all attributes
are indeed in the schema.

This ensures we use the schema case, not the user supplied case for
future responses, which assists any (incorrect, but possible) case
sensitive processing on a client.

I've also removed more of the subtle 'schema &&' that metze objected
to in the for loops, moving to a much more explicit 'if (schema)'.

Andrew Bartlett
2007-12-21 05:43:45 +01:00
Andrew Bartlett
f3390c9054 r25753: Move cn=rootdse to @ROOTDSE to avoid being caught up in schema restrictions.
Andrew Bartlett
2007-12-21 05:43:45 +01:00
Andrew Bartlett
c0a0c69ac5 r25750: Update the objectclass module to improve consistency in Samba4.
The aim here is to ensure that if we have

CN=Users,DC=samba,DC=example,DC=com

that we cannot have a DN of the form

cn=admin ,cn=useRS,DC=samba,DC=example,DC=com

This module pulls apart the DN, fixes up the relative DN part, and
searches for the parent to copy the base from.

I've used the objectclass module, as I intend to also validate the
placement of child objects, by reading the allowedChildClasses virtual
attribute.

In the future, I'll also force the attribute names to be consistant
(using the case from the schema).

Andrew Bartlett
2007-12-21 05:43:43 +01:00
Andrew Bartlett
e8cbac1a46 r25710: Finally fix subtree renames. Untested code is broken code and in this
case an oddity of the javascript caused the test to 'pass'.

For the same oddity, we have a failure in ldb's handling of spaces in
DNs.  We need to resolve that too.

Andrew Bartlett
2007-12-21 05:43:24 +01:00
Andrew Bartlett
f5ce04b904 r25218: After discussion with Simo, remove the subclass support from LDB.
Subclass support was designed to avoid needing to spell out the full
list of objectClasses that an entry was in.  However, Samba4 now
enforces this restriction in the objectClass module, and the way
subclass matching was handled was complex and counter-intuitive in my
opinion (and did not match LDAP).

Andrew Bartlett
2007-10-10 15:06:56 -05:00
Andrew Bartlett
9cccd00dac r25204: Patch by Andrew Kroeger <andrew@sprocks.gotdns.com> fixing bug #4958 -
rename of ldb entries for a case change (only).

I've modified the testsuite to verify this.

Andrew Bartlett
2007-10-10 15:06:52 -05:00
Jelmer Vernooij
8616bfa0ae r24876: Use more absolute paths to samba4 binaries. 2007-10-10 15:03:26 -05:00
Andrew Bartlett
13908a8cb4 r24761: Permit subtree renames in Samba4.
The module is scary: On a rename, it does a search for all entries
under that entry (including itself), and fires off a seperate rename
call for each result.  This will fail miserably on an LDAP backend,
but I'll need to work on using hdb for OpenLDAP, and hope Fedora DS
can implement subtree renames at some point.

Andrew Bartlett
2007-10-10 15:03:05 -05:00
Jelmer Vernooij
aeb2e714f2 r24706: Move nmblookup tests to separate blackbox testsuite. 2007-10-10 15:02:52 -05:00
Andrew Bartlett
9f45b5553a r24693: Test search options in ldb blackbox testing.
Andrew Bartlett
2007-10-10 15:02:47 -05:00
Jelmer Vernooij
c3a1386274 r24691: All smbclient blackbox tests pass. 2007-10-10 15:02:46 -05:00
Andrew Bartlett
b474be9507 r24459: Fix up ldap.js and test_ldb.sh to test the domain_scope control, and
to test the behaviour of objectCategory=user searches.

It turns out (thanks to a hint on
http://blog.joeware.net/2005/12/08/147/) that objectCategory=user maps
into objectCategory=CN=Person,... (by the defaultObjectCategory of
that objectclass).

Simplify the entryUUID module by using the fact that we now set the DN
as the canoncical form of objectCategory.

Andrew Bartlett
2007-10-10 15:01:53 -05:00
Jelmer Vernooij
f4ff4c5f61 r24339: Move output functions to separate files. 2007-10-10 15:01:40 -05:00
Jelmer Vernooij
18ea767d39 r24335: Fix -N support. 2007-10-10 15:01:39 -05:00
Andrew Bartlett
72f4ae8246 r24263: Fix bug 4846 (unable to copy users in MMC Active Directory Users and
Computers).

We now generate a security descriptor for each object, when it is
created.  This seems to keep MMC happy.  The next step is to honour
it.

Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
53c248c264 r24262: Set the objectCategory by default in the objectclass module, rather than using templates.
Modify the samba3sam test to be less fussy, and not use the
objectclass module (which requires proper schema stuff now).

Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
c3554e3ee7 r24076: Make ldap.js pass against Win2k3 again (looks like we don't match AD
on this error code, but allow both for now).

Also prove that bug #4829 needs a different solution: we can't fix
this by changing the template.  I think this fix needs to be in the
SAMR server.

Andrew Bartlett
2007-10-10 15:01:22 -05:00
Andrew Bartlett
4fab53432a r23965: Add testing the 'net time' command to the script.
Andrew Bartlett
2007-10-10 15:01:12 -05:00
Andrew Bartlett
d0a994d0ce r23964: Update blackbox selftest scripts to cover more code, and to more
consistantly report errors.  (Some were being lost due to the "echo
foo | cmd" calling convention).

Andrew Bartlett
2007-10-10 15:01:12 -05:00
Andrew Bartlett
46abf82675 r23849: ldap_server: Provide more info in debug traces
blackbox tests:  increase test coverage by running more options.

Andrew Bartlett
2007-10-10 14:59:24 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
3f3da9c471 r23762: Fix DN renames over LDAP, and instrument the partition module. Add a
test to prove the behaviour of LDAP renames etc.

Fix LDB to return correct error code when failing to rename one DN
onto another.

Andrew Bartlett
2007-10-10 14:59:11 -05:00