summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:ldap_schema.py - add an additional check for validity of ↵Matthias Dieter Wallnöfer2010-01-051-0/+25
| | | | "defaultObjectCategory"
* s4:ldap_schema.py - Move generated attributes checkMatthias Dieter Wallnöfer2010-01-051-15/+15
| | | | Make more clear that they're created before the "schemaUpdateNow".
* s4-ldaptest: need to use MessageElement for modify messagesAndrew Tridgell2010-01-021-2/+4
| | | | Without MessageElement() the flags are not set, which is invalid
* s4-ldbtest: fixed message element in modifyAndrew Tridgell2010-01-021-1/+2
| | | | a flags value of zero is not valid
* pyldb: Add dom_sid.split in favor of less powerful dom_sid_to_rid().Jelmer Vernooij2009-12-312-10/+10
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4: tests controls parsing and using for ldbadd/ldbedit/ldbmodifyMatthieu Patou2009-12-233-1/+77
|
* s4-tort: Tests for "msDS-IntId" attribute implementedKamen Mazdrashki2009-12-211-2/+281
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-tort: Move Schema tests from ldap.py into separate moduleKamen Mazdrashki2009-12-212-133/+221
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-dsdb: Add a test for adding, deleting, and appending a posixAccount ↵Brendan Powers2009-12-181-0/+30
| | | | | | objectClass to a user Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Fixed incorrect checking of PRINCIPAL_SELF permissions.Nadezhda Ivanova2009-12-171-2/+41
| | | | | | 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.
* Implementation of sDRightsEffective, allowedAttributesEffective and ↵Nadezhda Ivanova2009-12-101-1/+126
| | | | | | allowedChildClassesEffective. Behavior as documented in WSPP and tested. Needs optimisation though.
* s4:ldap.py Improve testsuite for primaryGroupToken behaviourAndrew Bartlett2009-12-071-0/+22
| | | | | | | | | | 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
* s4:ldap.py Add test of namingContext behaviour after tridge found a bugAndrew Bartlett2009-12-011-0/+15
| | | | | | | Tridge found that the partitions.c module was being initialised twice, and setting the partitions into the rootDSE twice. Andrew Bartlett
* s4-drs: Test situations for runtime constructed parentGUIDFernando J V da Silva2009-11-301-1/+24
| | | | | | | | | | 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>
* s4-ldb: improve detection of whether the server has a GC portAndrew Tridgell2009-11-271-5/+9
| | | | | | We were trying to open $SERVER:3268 regardless, which could result in creating a file called "localdc1:3268", which led to subsequent test failures
* s4:ldap.py - add a test for the enhanced operational attributes checkMatthias Dieter Wallnöfer2009-11-261-0/+11
| | | | (Deny creation of entries with operational attributes specified)
* s4:ldap.py - fix the schema update test on Windows ServerMatthias Dieter Wallnöfer2009-11-241-1/+2
| | | | | | 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.
* s4:ldap.py - activate test for operational attributesMatthias Dieter Wallnöfer2009-11-241-8/+8
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:ldap.py Add tests for subSchemaSubEntryAndrew Bartlett2009-11-241-0/+12
|
* s4:ldap.py - Add a check for the generated "schemaIDGUID"Matthias Dieter Wallnöfer2009-11-231-0/+2
| | | | I've forgotten to add this when checking in the reworked SAMLDB module
* Implemented LDAP_SERVER_SD_FLAGS_OID on search requests.Nadezhda Ivanova2009-11-211-4/+60
|
* Implementation of LDAP_SERVER_SD_FLAGS_OID on modify requests.Nadezhda Ivanova2009-11-201-5/+107
|
* s4-ldb: added a double-rename testAndrew Tridgell2009-11-201-0/+24
| | | | This tests the fix for double rename/add and indexing
* s4-ldb: allow ldap.py test suite to run directly against a fileAndrew Tridgell2009-11-201-1/+5
| | | | | This makes it much easier to debug (as you can break in the ldb modules by running gdb on /usr/bin/python)
* Added tests for descriptor inheritance on ldap modify.Zahari Zahariev2009-11-151-121/+207
| | | | | | Fixed some expected owners and groups. Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com>
* s4:ldap.py - enhance schema addition testMatthias Dieter Wallnöfer2009-11-151-12/+40
| | | | | Don't add only a new objectclass but also a new attribute. Plus let now the server itself calculate the "lDAPDisplayName" attribute and compare the result.
* s4:ldap.py - Deactivates some at the moment pointless test partsMatthias Dieter Wallnöfer2009-11-151-6/+6
| | | | | I think those parts should be deactivated since they're result set checks for lookups which are commented out already.
* s4:ldb Add Well Known GUID (WKGUID) tests to ldap.pyAndrew Bartlett2009-11-121-0/+17
|
* Fixes for some tests not eorking against Windows or Samba.Nadezhda Ivanova2009-11-101-12/+8
|
* s4-samdb: remove the rDN size constraint of 64Andrew Tridgell2009-11-091-1/+4
| | | | | | This size constraint is not correct in it's current form, as windows does send us rDN values for CN with lengths longer than 64. Once we know how this constraint really works we can add it back in.
* Python tests for the acl module.Zahari Zahariev2009-11-051-0/+1104
| | | | | | Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com> Author: Zahari Zahariev <zahari.zahariev@postpath.com>
* s4-ldaptest: "testgroup" is a bit too commonAndrew Tridgell2009-10-151-2/+2
| | | | | This failed on one of my test boxes that has a group called "testgroup". using "testgroupXX" should be a bit better.
* s4-ldap: test the rDN size limitAndrew Tridgell2009-10-151-0/+25
|
* s4:ldap.py - Further enhancementsMatthias Dieter Wallnöfer2009-10-081-6/+236
| | | | | | | | - Enhance test for "distinguishedName" - Add a test for single-valued attributes - Add a test for multi-valued attributes - Add a test for empty messages - Add a test for empty attributes
* s4:ldap.py - commented out the UTF8 tests (and fixed some deletion DNs)Matthias Dieter Wallnöfer2009-10-031-10/+12
|
* s4:ldap.py - add tests for valid parent and RDNMatthias Dieter Wallnöfer2009-10-031-0/+39
|
* s4:ldap.py - add a test for the "systemOnly" classesMatthias Dieter Wallnöfer2009-10-031-1/+16
|
* s4:ldap.py - add a very special rename test (with invalid - empty RDN)Matthias Dieter Wallnöfer2009-10-021-9/+23
|
* s4:ldap.py - major enhancementsMatthias Dieter Wallnöfer2009-10-021-102/+187
| | | | | | | - Clean up and reorder it a bit - Test which adds invalid attributes - Test which makes sure that the 'distinguishedName' attribute cannot be modified - Test which makes sure that we cannot change the RDN/'name' attribute through a modify request
* pythonbindings: allow add() to have an array of controls as second parameterMatthieu Patou2009-09-261-0/+8
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Merge branch 'master' of git://git.samba.org/sambaNadezhda Ivanova2009-09-201-4/+4
|\
| * s4:sec_descriptor - fix constantMatthias Dieter Wallnöfer2009-09-201-4/+4
| |
* | Initial implementation of security descriptor creation in DSNadezhda Ivanova2009-09-201-4/+9
|/ | | | | TODO's: ACE sorting and clarifying the inheritance of object specific ace's.
* Tests for descriptor inheritanceZahari Zahariev2009-09-161-0/+1610
| | | | | Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* pyldb: Don't segfault when invalid type is specified to Dn.get().Jelmer Vernooij2009-09-141-0/+4
| | | | (#6722)
* Mark test_security_descriptor_add_neg as known failing (for now).Jelmer Vernooij2009-09-081-1/+1
|
* Basic tests for nTSceurityDescriptor both SDDL and BASE64 formatZahari Zahariev2009-09-081-2/+194
| | | | | | | | These are updated second eddition unittests using ldb.add_ldif() and ldb.modify_ldif(). Unittests are found to work when using the right local domain SID. Negative test separated. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4:ldap.py - Adds a test for the primary group behaviourMatthias Dieter Wallnöfer2009-09-071-12/+132
| | | | | | This passes the Windows Server behaviour. Also SAMBA 4 should match it. Also some small enhancement.
* s4:ldb Add ldb_ldif_write_string() and python wrappersAndrew Bartlett2009-08-261-1/+3
| | | | | | This allows us to turn a python LdbMessage back into a string. Andrew Bartlett
* s4:ldb Add hooks to get/set the flags on a ldb_message_elementAndrew Bartlett2009-08-261-5/+39
| | | | | | | Also add tests to prove that we got this correct, and correct the existing tests which used the wrong constants. Andrew Bartlett