summaryrefslogtreecommitdiff
path: root/source4/torture/ldb
Commit message (Collapse)AuthorAgeFilesLines
* ldb: Avoid multiple tiny allocations during full DB scanAndrew Bartlett2016-08-311-0/+18
| | | | | | | | | | LDB_UNPACK_DATA_FLAG_NO_VALUES_ALLOC allows us to consolidate some of these allocations Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Wed Aug 31 10:53:09 CEST 2016 on sn-devel-144
* ldb: Add ldb_unpack_data_only_attr_list_flags()Andrew Bartlett2016-07-281-0/+50
| | | | | | | | | | | | This function allows us to control allocation of memory during parse of the packed ldb data. This in turn can have an important performance impact as each small allocation can have a large overhead Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s3-torture: Do some code hygiene in the ldb testAndreas Schneider2016-06-221-4/+8
| | | | | | | Coverity is confused if in a expresion we use = and not ==. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* ldb torture: test ldb_unpack_data_only_attr_listldb-1.1.25Adrian Cochrane2015-12-171-4/+130
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11602 Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* ldb torture: Test ldb unpacking and printingAdrian Cochrane2015-12-041-0/+333
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11602 Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Garming Sam <garming@samba.org> Autobuild-Date(master): Fri Dec 4 09:16:22 CET 2015 on sn-devel-104
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-2/+2
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-6/+6
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4:torture/ldb/ldb.c - add a small test for a DN with an escaped commaMatthias Dieter Wallnöfer2010-11-191-0/+6
|
* s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP ↵Matthias Dieter Wallnöfer2010-09-111-5/+5
| | | | results
* s4/tort: Add test for comparing special DNsKamen Mazdrashki2010-05-101-0/+18
|
* s4-ldb: changed the DN checks for \n to warningsAndrew Tridgell2009-11-131-3/+5
| | | | | a \n is sometimes allowed in AD (eg in deleted DNs). Until we know when is really is allowed, treat it as a warning only.
* s4:torture Silence const warning by use of data_blob_const()Andrew Bartlett2009-10-221-2/+1
| | | | | | This was inspired by one of mdw's const patches Andrew Bartlett
* s4-ldb: removed incorrect rDN length testAndrew Tridgell2009-10-151-13/+0
| | | | | This is a property of AD, not ldb, so should be in our ldb modules.
* s4:torture: data_blob_hex_string() output is now lowercase.Andrew Kroeger2009-09-301-2/+2
| | | | | Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these tests needs to expect lowercase output.
* Add tests for MS-ADTS:3.1.1.5.1.2 Naming ConstraintsAnatoliy Atanasov2009-09-211-0/+29
|
* Rename the top-level LDB test to LOCAL-LDB, so it gets picked up by theJelmer Vernooij2009-04-241-6/+9
| | | | script that determines the tests to run.
* s4:torture Add tests for prefixMap custom attribute handlerAndrew Bartlett2009-04-241-0/+34
|
* s4:torture: add ldb testsAndrew Bartlett2008-12-171-0/+735
These tests are for both the new extended DN functionality (and were vital in finding bugs during implementation) and for the normal DN parsing and comparison routines. Signed-off-by: Stefan Metzmacher <metze@samba.org>