Jelmer Vernooij
dd4ef4e106
s4-python: More cleanups.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
a35d876537
s4-python: rename samba.glue to samba._glue to indicate it's private.
2010-04-08 23:20:36 +02:00
Matthias Dieter Wallnöfer
64957ce068
LDB:sample_module - reintroduce accidentally removed "ldb_msg_add_fmt" statement
...
Obviously this is really needed by the "samba4.ldb" test.
2010-04-07 23:06:02 +02:00
Jelmer Vernooij
fe4b212eba
urgent_replication: Use standard comments rather than docstrings.
2010-04-07 17:39:59 +02:00
Matthias Dieter Wallnöfer
0086db6c0c
LDB:sample_module.c - remove code parts which generate warnings
...
Btw: The use of the "ldb_msg_add_fmt" operation directly on the request message
object is strongly discouraged. Better is to make a shallow copy of this message
and attach it to a new child request which is handled by the following modules.
2010-04-06 14:54:10 +02:00
Jelmer Vernooij
e9c3f2ef13
s4-python: Move ldb_set_utf8_casefold to pyldb-samba.
2010-04-06 13:12:43 +02:00
Jelmer Vernooij
ccd954f2a7
s4-python: Avoid importing glue directly.
2010-04-04 00:30:34 +02:00
Jelmer Vernooij
31a517e172
s4-python: Move dsdb constants to a separate python module.
2010-04-04 00:14:23 +02:00
Jelmer Vernooij
5a026219a9
s4-python: Remove unused imports, duplicate definitions of SECINFO_ constants.
2010-04-03 23:47:26 +02:00
Jelmer Vernooij
5f3fcf7a77
s4-python: Install external included packages only if they're not present on the system.
2010-03-31 03:56:24 +02:00
Jelmer Vernooij
1ec2b2f7f3
ldap.py: Fix syntax error.
2010-03-29 18:05:29 +02:00
Jelmer Vernooij
89aa3b766b
s4-python: Format to PEP8, simplify tests.
2010-03-29 18:05:29 +02:00
Andrew Tridgell
088096d1ba
python: use '#!/usr/bin/env python' to cope with varying install locations
...
this should be much more portable
2010-03-25 14:37:19 +11:00
Nadezhda Ivanova
4b8961bc6f
Fixed a bug in acl tests - python error when we create user/group/ou with a descriptor.
2010-03-09 13:53:41 +02:00
Nadezhda Ivanova
f742623b7b
Added a check for permissions to modify the RDN attribute on rename.
...
Necessary because rdn module will be moved lower than acl in the stack.
2010-03-09 13:07:18 +02:00
Matthias Dieter Wallnöfer
3d94b28441
s4:ldap.py - give the "primaryGroupToken" test a better name
...
It tests also some other constructed attributes in a basic way.
2010-03-04 18:16:24 +01:00
Matthias Dieter Wallnöfer
4546b6b7df
s4:ldap.py - add test for "tokenGroups"
2010-03-04 18:16:24 +01:00
Nadezhda Ivanova
8cb416a0b5
Refactored ACL python tests
...
Made each type into a separate class to be easily run individually,
removed code duplication
2010-03-04 15:22:30 +02:00
Andrew Tridgell
3035c7c2ad
s4-ldb: fixed permissions on urgent_replication.py
2010-02-15 21:57:08 +11:00
Andrew Tridgell
1ca2bd78b9
s4-test: minor fixes to urgent_replication.py
...
- fix usage name
- remove unnecessary python functions
- remote unused gc ldb
2010-02-15 21:57:08 +11:00
Fernando J V da Silva
f5de126b85
s4-drs: Test situations for Urgent Replication
...
Checks if the partition's uSNUrgent is updated or not, depending
on the class of the object which is created, modified or deleted.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-02-15 21:57:08 +11:00
Andrew Tridgell
2fdff7f596
s4-ldbtest: fixed python import
2010-01-28 18:45:04 +11:00
Eduardo Lima
882feb39a2
s4-drs: implementation of some delete test cases
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-28 18:45:03 +11:00
Jelmer Vernooij
aa1fce645a
ldap: Fix test failure that seemed to go unreported previously.
2010-01-17 12:35:26 +13:00
Jelmer Vernooij
a18889fd77
ldap.py: Remove unused imports.
2010-01-17 12:26:53 +13:00
Jelmer Vernooij
28577aae92
Import testtools as well, required for subunit.
2010-01-16 19:53:49 +13:00
Stefan Metzmacher
7d41afece7
s4:ldb/tests: do a "schemaUpdateNow" after creating a new attribute in ldap_schema.py
...
It seems that windows doesn't need that.
And we should think about a check for reloading the schema
at the start of each "write" operation.
metze
2010-01-13 16:03:52 +01:00
Andrew Tridgell
66f161dee1
s4-acl: fixed acl.py test to use correct ldif
...
same problem as sec_descriptor.py
2010-01-08 13:03:07 +11:00
Andrew Tridgell
81c0b01585
s4-secdesc: fixed the sec_descriptor.py test
...
The test was using a "changetype: add" to try and add a member to a
group, where it should use a "changetype: modify" with a "add: member"
Also fixed the recovery when the test fails part way through (delete
the test users at the start as well as the end)
Nadya, please check!
2010-01-08 13:03:07 +11:00
Matthias Dieter Wallnöfer
bbf9885013
s4:ldap_schema.py - add an additional check for validity of "defaultObjectCategory"
2010-01-05 20:55:45 +01:00
Matthias Dieter Wallnöfer
d8ca002a8c
s4:ldap_schema.py - Move generated attributes check
...
Make more clear that they're created before the "schemaUpdateNow".
2010-01-05 20:55:32 +01:00
Andrew Tridgell
1c5a268f34
s4-ldaptest: need to use MessageElement for modify messages
...
Without MessageElement() the flags are not set, which is invalid
2010-01-02 08:16:56 +11:00
Andrew Tridgell
98d94cca6f
s4-ldbtest: fixed message element in modify
...
a flags value of zero is not valid
2010-01-02 08:16:55 +11:00
Jelmer Vernooij
ea5af6e30c
pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-31 17:33:30 +11:00
Matthieu Patou
8dc636ad67
s4: tests controls parsing and using for ldbadd/ldbedit/ldbmodify
2009-12-23 08:09:19 -05:00
Kamen Mazdrashki
ee48f583b5
s4-tort: Tests for "msDS-IntId" attribute implemented
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:44:13 +11:00
Kamen Mazdrashki
c113be8526
s4-tort: Move Schema tests from ldap.py into separate module
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-12-21 23:44:05 +11:00
Brendan Powers
7cb858e151
s4-dsdb: Add a test for adding, deleting, and appending a posixAccount objectClass to a user
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-18 14:27:44 +11:00
Nadezhda Ivanova
c0883fb451
Fixed incorrect checking of PRINCIPAL_SELF permissions.
...
If an ace has the PRINCIPAL_SELF as trustee, this sid has to be replaced with
the onjectSid of the object being checked. PRINCIPAL_SELF is the way to grant rights
to an account over itself.
2009-12-17 17:25:11 +02:00
Nadezhda Ivanova
56b754e09a
Implementation of sDRightsEffective, allowedAttributesEffective and allowedChildClassesEffective.
...
Behavior as documented in WSPP and tested. Needs optimisation though.
2009-12-10 15:49:53 +02:00
Andrew Bartlett
b2db28b634
s4:ldap.py Improve testsuite for primaryGroupToken behaviour
...
This tries to show that the domain object should not have a
primaryGroupToken, for example. (This passes against the old and new
code, as the failure case requires an object with an objectSid, and
exactly one group in it's subtree. Sadly I don't know of a valid structure
that I can construct to test this).
Andrew Bartlett
2009-12-07 13:08:06 +11:00
Andrew Bartlett
f65360840a
s4:ldap.py Add test of namingContext behaviour after tridge found a bug
...
Tridge found that the partitions.c module was being initialised twice,
and setting the partitions into the rootDSE twice.
Andrew Bartlett
2009-12-01 12:17:00 +11:00
Fernando J V da Silva
7399c04fd0
s4-drs: Test situations for runtime constructed parentGUID
...
Includes the following verifications for the constructed parentGUID:
- Checks if it returns nothing when there is no parent object
- Ensures that attributes mentioned after the parentGUID
are returned correctly (this avoid a bug pointed out by Tridge
during sync constructed parentGUID development)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-30 21:17:28 +11:00
Andrew Tridgell
d5387edb88
s4-ldb: improve detection of whether the server has a GC port
...
We were trying to open $SERVER:3268 regardless, which could result in
creating a file called "localdc1:3268", which led to subsequent test
failures
2009-11-27 16:05:06 +11:00
Matthias Dieter Wallnöfer
97553373d1
s4:ldap.py - add a test for the enhanced operational attributes check
...
(Deny creation of entries with operational attributes specified)
2009-11-26 11:21:02 +01:00
Matthias Dieter Wallnöfer
4825df8323
s4:ldap.py - fix the schema update test on Windows Server
...
Apparently Windows Server (2003) doesn't like the comma delimiter here. I got
always error 16 ("LDB_NO_SUCH_ATTRIBUTE"). With this change the test works
again.
2009-11-24 19:44:18 +01:00
Matthias Dieter Wallnöfer
9aeaf31cfe
s4:ldap.py - activate test for operational attributes
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-24 10:41:36 +11:00
Andrew Bartlett
cec473e728
s4:ldap.py Add tests for subSchemaSubEntry
2009-11-24 10:39:10 +11:00
Matthias Dieter Wallnöfer
81c46686db
s4:ldap.py - Add a check for the generated "schemaIDGUID"
...
I've forgotten to add this when checking in the reworked SAMLDB module
2009-11-23 16:21:10 +01:00
Nadezhda Ivanova
e00281d1f1
Implemented LDAP_SERVER_SD_FLAGS_OID on search requests.
2009-11-21 18:40:51 +02:00