1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-22 07:17:05 +03:00

304 Commits

Author SHA1 Message Date
Andrew Tridgell
43f7c9ca26 s4-test: we don't need to set LDB_MODULES_PATH any more 2010-11-01 18:55:19 +11:00
Andrew Tridgell
be8e91d9ca s4-ldb: convert the rest of the ldb modules to the new style 2010-11-01 18:55:19 +11:00
Jelmer Vernooij
5548d3d41e Add missing dependencies for com_err. 2010-10-05 00:38:35 +02:00
Matthieu Patou
d09cfc04fb unittests: add a test to avoid regression on previous fix
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Oct  4 20:23:31 UTC 2010 on sn-devel-104
2010-10-04 20:23:31 +00:00
Andrew Tridgell
045e04a2c6 s4-ldb: test the 'displayName=a,b' bug
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-17 08:44:28 +10:00
Stefan Metzmacher
14f8953aa4 s4:dsdb: move dsdb python tests from lib/ldb/ to dsdb/
metze
2010-06-30 11:10:28 +02:00
Stefan Metzmacher
19d93c6a1e s4:ldb/python: make it possible to run tests standalone
metze
2010-06-30 10:59:57 +02:00
Nadezhda Ivanova
5a18fc2b2a Implementation of self membership validated right.
When this right is granted, the user can add or remove themselves from a group even
if they dont have write property right.
2010-06-28 10:43:50 +03:00
Matthieu Patou
3fc9675e93 ldb: Fix a wrong changetype in unit test
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-25 11:33:26 +02:00
Andrew Tridgell
4cb423f527 s4-python: python is not always in /usr/bin
Using "#!/usr/bin/env python" is more portable. It still isn't ideal
though, as we should really use the python path found at configure
time. We do that in many places already, but some don't.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24 18:46:57 +10:00
Andrew Bartlett
c4482bf53e libds:common Remove DS_DC_* domain functionality flags
These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other.  Just make them one set.

Andrew Bartlett
2010-06-23 20:10:03 +10:00
Kamen Mazdrashki
efe65cd7b7 s4/dsdb-test: fix usage comment 2010-06-22 04:50:19 +03:00
Matthias Dieter Wallnöfer
91c49c2fb2 s4:ldap.py - test subtree deletes through a new testcase 2010-06-20 18:52:31 +02:00
Jelmer Vernooij
a5e8ef884b Move a few more samdb-specific methods to SamDB, away from Ldb. 2010-06-20 01:37:06 +02:00
Matthieu Patou
3ebe560622 ldb: add a new control bypassioperationnal
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 00:43:08 +02:00
Jelmer Vernooij
c92db7b6dc python: Use samba.tests.TestCase, make sure base class tearDown and
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
Jelmer Vernooij
105ebb3440 acl: Clean up formatting, use samba.tests.TestCase. 2010-06-19 22:46:44 +02:00
Jelmer Vernooij
96f120e234 python/passwords: Clean up imports. 2010-06-19 22:46:44 +02:00
Jelmer Vernooij
2b7b69544c dsdb_schema_info: Clean up imports, avoid using rpc test case for
non-RPC tests.
2010-06-19 22:46:44 +02:00
Matthias Dieter Wallnöfer
131be8da0f s4:instancetype LDB module - "instanceType" is single-valued - MS-ADTS 3.1.1.5.2.2 2010-06-19 19:37:47 +02:00
Matthias Dieter Wallnöfer
c0538a006d ldb:api.py - add a small test for the enhanced "py_ldb_delete" syntax 2010-06-19 17:53:21 +02:00
Matthias Dieter Wallnöfer
12fdfc9430 s4:ldap.py - add another test about linked attributes
In addition this test makes sure that the bug regarding the search with deleted
linked attributes in the filter has been fixed.
2010-06-16 15:34:42 +02:00
Nadezhda Ivanova
5ad12f70c5 s4:Descriptor tests clean-up.
A bit of refactoring and modified the tests to use encrypted connection so that they pass against Windows unconditionally.
2010-06-14 15:12:00 +03:00
Jelmer Vernooij
51058213cb s4-test: Use smb.conf path set in environment rather than using
command-line options.

This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
Nadezhda Ivanova
e3c95940cd Adjusted ACL tests to use encripted connection.
This way we get rid of the conditional if.Samba checks, because users are
successfully created and enabled.
2010-06-11 17:22:21 +03:00
Matthias Dieter Wallnöfer
93fe926842 s4:passwords.py - set the "dSHeuristics"
As per Nadia's request and abartlet's suggestion the test now also sets the
"dSHeuristics" attribute properly to be able to perform the tests also against
Windows without further configuration.

The code has the neat feature that it undoes the change and resets the
behaviour as it was before.
2010-06-11 10:04:50 +02:00
Matthias Dieter Wallnöfer
61976e4fcf s4:passwords.py - use "self" before "enable_account" to make really sure which LDB connection should be used 2010-06-11 10:04:19 +02:00
Matthias Dieter Wallnöfer
315602f845 s4:ldap.py - check how the directory server behaves when the 'distinguishedName' attribute wasn't set correctly
(On add operations the server does completely ignore it and uses the "header"
DN)
2010-06-11 09:19:02 +02:00
Matthias Dieter Wallnöfer
ace9bd6560 s4:ldap.py - check if the "name" of an entry was really ignored 2010-06-11 09:17:08 +02:00
Matthias Dieter Wallnöfer
bdd83c0639 s4:ldap.py - add testcase which demonstrates the reset of the "primaryGroupID" 2010-06-10 16:22:09 +02:00
Matthias Dieter Wallnöfer
c1b4ccb23b s4:ldap.py - add a test to demonstrate the 'instanceType' behaviour 2010-06-10 16:22:05 +02:00
Matthieu Patou
0c3dfd7a79 s4 python: add more unit tests to verify the compare tests 2010-06-07 21:06:23 +02:00
Matthias Dieter Wallnöfer
aa32725886 s4:ldap.py - add some "objectclass" behaviour tests 2010-06-07 14:47:26 +02:00
Matthias Dieter Wallnöfer
17f465a4ac s4:ldap.py - enhance the attributes testcase to demonstrate how the attributes are checked against the schema and the specified objectclasses
This demonstrates the bew "objectclass_attrs" LDB module behaviour.
2010-06-07 14:47:24 +02:00
Matthias Dieter Wallnöfer
9ab3365fa5 s4:ldap.py - enhance the rename tests to demonstrate the functionality 2010-06-07 14:47:21 +02:00
Matthias Dieter Wallnöfer
ae9faaa894 s4:ldap.py - enhance the RDN name test to show that invalid "name" attributes are allowed on add operations 2010-06-06 20:48:24 +02:00
Matthias Dieter Wallnöfer
2fbb8c08ef s4:urgent_replication.py - specify the "dnsRoot" attribute which is requested on "crossRef" entries 2010-06-06 20:43:00 +02:00
Matthias Dieter Wallnöfer
7896a35da3 s4:ldap.py - make sure that also the "posixuser" will be deleted on test breakages 2010-06-06 20:42:42 +02:00
Matthias Dieter Wallnöfer
5a0b3cf93d s4:tests/python/passwords.py - fix filter 2010-05-30 23:13:09 +02:00
Matthias Dieter Wallnöfer
092331d2d8 s4:ldap.py - add a test which shows the modification behaviour of important attributes
This shows how important attributes of SAM objects do behave when you launch
add and delete modify requests on them.
2010-05-30 23:13:08 +02:00
Matthias Dieter Wallnöfer
c30c4529f5 s4:ldap.py - add more test cases to show invalid primary group change behaviour 2010-05-30 23:13:08 +02:00
Matthias Dieter Wallnöfer
6131caad8f s4:passwords.py - add a python unittest for additional testing of my passwords work
This performs checks on direct password changes over LDB/LDAP. Indirect
password changes over the RPCs are already tested by some torture suite (SAMR
passwords). So no need to do this again here.
2010-05-10 19:12:27 +02:00
Anatoliy Atanasov
6dafd5f8c7 s4/test: Implement tests for msDS-isRODC constructed attribute
This attribute will be returned for objects with
objectClass=nTDSDSA,server and computer
2010-05-03 18:28:01 +02:00
Kamen Mazdrashki
da127d44e3 s4/test: schemaInfo may not to be set yet
On newly provisioned Forest schemaInfo is not initially set.
It should be created after firs Schema modification
2010-04-29 04:54:05 +03:00
Nadezhda Ivanova
4fc59089c8 Removed more excess looping and fixed problem with incorrect IO flag handling. 2010-04-20 00:23:42 +03:00
Nadezhda Ivanova
64f4183a35 s4:Added a test for correct CO expansion in SD creation. 2010-04-17 18:16:25 +03:00
Nadezhda Ivanova
cec0e86ec8 s4:Added a test to make sure we ignore ACEs with ID flag set. 2010-04-15 18:21:55 +03:00
Jelmer Vernooij
3a34b5f35e subunit: Remove more test output that could be interpreted by subunit. 2010-04-11 20:57:33 +02:00
Kamen Mazdrashki
08dd0d0b54 s4/schema: Torture test for schemaInfo implementation
This test checks if schemaInfo revision changes when an object
is added or modified in Schema.

Ref. [MS-ADTS], 3.1.1.2.1
2010-04-09 12:21:29 +03:00
Jelmer Vernooij
57ac0a6042 s4-python: Move load_partition_usn to dsdb module. 2010-04-08 23:20:36 +02:00