summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
AgeCommit message (Collapse)AuthorFilesLines
2009-10-15s4-ldaptest: "testgroup" is a bit too commonAndrew Tridgell1-2/+2
This failed on one of my test boxes that has a group called "testgroup". using "testgroupXX" should be a bit better.
2009-10-15s4-ldap: test the rDN size limitAndrew Tridgell1-0/+25
2009-10-08s4:ldap.py - Further enhancementsMatthias Dieter Wallnöfer1-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
2009-10-03s4:ldap.py - commented out the UTF8 tests (and fixed some deletion DNs)Matthias Dieter Wallnöfer1-10/+12
2009-10-03s4:ldap.py - add tests for valid parent and RDNMatthias Dieter Wallnöfer1-0/+39
2009-10-03s4:ldap.py - add a test for the "systemOnly" classesMatthias Dieter Wallnöfer1-1/+16
2009-10-02s4:ldap.py - add a very special rename test (with invalid - empty RDN)Matthias Dieter Wallnöfer1-9/+23
2009-10-02s4:ldap.py - major enhancementsMatthias Dieter Wallnöfer1-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
2009-09-26pythonbindings: allow add() to have an array of controls as second parameterMatthieu Patou1-0/+8
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-09-20Merge branch 'master' of git://git.samba.org/sambaNadezhda Ivanova1-4/+4
2009-09-20Initial implementation of security descriptor creation in DSNadezhda Ivanova1-4/+9
TODO's: ACE sorting and clarifying the inheritance of object specific ace's.
2009-09-20s4:sec_descriptor - fix constantMatthias Dieter Wallnöfer1-4/+4
2009-09-16Tests for descriptor inheritanceZahari Zahariev1-0/+1610
Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-09-14pyldb: Don't segfault when invalid type is specified to Dn.get().Jelmer Vernooij1-0/+4
(#6722)
2009-09-08Mark test_security_descriptor_add_neg as known failing (for now).Jelmer Vernooij1-1/+1
2009-09-08Basic tests for nTSceurityDescriptor both SDDL and BASE64 formatZahari Zahariev1-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>
2009-09-07s4:ldap.py - Adds a test for the primary group behaviourMatthias Dieter Wallnöfer1-12/+132
This passes the Windows Server behaviour. Also SAMBA 4 should match it. Also some small enhancement.
2009-08-26s4:ldb Add ldb_ldif_write_string() and python wrappersAndrew Bartlett1-1/+3
This allows us to turn a python LdbMessage back into a string. Andrew Bartlett
2009-08-26s4:ldb Add hooks to get/set the flags on a ldb_message_elementAndrew Bartlett1-5/+39
Also add tests to prove that we got this correct, and correct the existing tests which used the wrong constants. Andrew Bartlett
2009-08-24s4:ldb Add python binding and test for ldb_msg_diff()Andrew Bartlett1-0/+11
2009-08-17fixed the updateNow schema test to use a canonical OIDAndrew Tridgell1-1/+2
The expression time.strftime("%s", time.gmtime())[3:] leads to a string with a leading 0. When added then read back from the prefix map this leads to a different string, so it is never found. Use the simpler str(random.randint(a,b)) expression instead
2009-08-14s4: Better way to call "dom_sid_to_rid" from ldap.pyMatthias Dieter Wallnöfer1-4/+2
2009-08-11s4:test for "primaryGroupToken"Matthias Dieter Wallnöfer1-10/+58
Tests for the right behaviour of this introduced constructed attribute. Since we don't support the read-only-ness of those attributes yet, I commented some lines out. Also I had to add a function for python which converts domain SIDs in RIDs. And a small fix for the "groupType" test.
2009-08-03pyldb: Raise proper exception when attempting to assign a string to a dnJelmer Vernooij1-0/+6
attribute.
2009-07-08Test for schemaUpdateNow commandAnatoliy Atanasov1-54/+126
2009-06-19s4:ldb Add test for integer normalisation behaviourAndrew Bartlett1-0/+17
This uses groupType as the example, but this actually applies to all integer types in AD. Andrew Bartlett
2009-06-17pyldb: Fix three more (minor) memory leaks.Jelmer Vernooij1-2/+2
2009-06-17pyldb/tests: Use different dn's everywhere, to easily spot which test isJelmer Vernooij1-49/+49
breaking in gdb.
2009-06-17pyldb: Support getting the parent of special DNs without segfaulting.Jelmer Vernooij1-0/+11
Found by: Андрей Григорьев <andrew@ei-grad.ru>
2009-04-14s4:ldb Make it possible to re-run ldap.py againAndrew Bartlett1-2/+6
The parentGUID test didn't clean up after itself correctly. Andrew Bartlett
2009-03-20Adapt Zahari's test to the generic LDB Python tests.Jelmer Vernooij1-0/+13
2009-03-17added support for parentGUIDAndrew Tridgell1-0/+30
This is made up of 4 parts: 1) change our schema to include the parentGUID attribute type 2) in the add hook in the objectclass module, get the objectGUID of the parent and add it to the message as parentGUID 3) in the rename hook in the objectclass module, get the objectGUID of the new parent, and insert an async modify request after the renmam is done 4) added a simple test suite
2009-02-03s4:lib/ldb: call ldb utils always via $VALGRIND ldbfoo$EXEEXT in the testsStefan Metzmacher4-56/+56
metze
2009-01-30Fix the mess with ldb includes.Simo Sorce1-3/+1
Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
2009-01-08Fix ldap.py test on systems that *can* find the record (the search fails ↵Jelmer Vernooij1-1/+1
here locally).
2009-01-07Fix ldap.py test.Jelmer Vernooij1-8/+8
2009-01-07Use new error constant (missing from 6efb7ff9)Andrew Bartlett1-1/+1
2008-12-21Fix various Python-related bugs.Jelmer Vernooij1-57/+57
2008-12-21Fix more introduced regressions in new bindings.Jelmer Vernooij1-33/+32
2008-12-20Fix all pyldb tests except for modules.Jelmer Vernooij1-6/+13
2008-12-19Merge branch 'pyregistry' of git://git.samba.org/jelmer/sambaJelmer Vernooij1-2/+2
Conflicts: source4/lib/ldb/ldb_wrap.c
2008-12-19Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij1-27/+60
2008-12-19Avoid use of parentheses in Python import statements, as it's not supported ↵Jelmer Vernooij1-4/+4
by Python2.3.
2008-12-19Fix more tests.Jelmer Vernooij1-1/+2
2008-12-19Remove swig support from standalone ldb build.Jelmer Vernooij1-1/+0
2008-12-17s4:ldb: add some python tests for extended dnsAndrew Bartlett1-27/+60
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-10-16Assert that the server provides allowedAttributes (etc) on each entryAndrew Bartlett1-2/+6
This attribute is critical for the operation of nearly all the Microsoft Mangement Console tools Andrew Bartlett
2008-10-08Fix subunit files location after cherrypicks.Jelmer Vernooij1-0/+1
2008-09-24Fix python test, we can't check only the first member, because the orderSimo Sorce1-1/+4
is not guaranteed
2008-09-20Don't expose ldb_request in the Python API but rather use regularJelmer Vernooij1-3/+8
parameters.