summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb
Commit message (Collapse)AuthorAgeFilesLines
...
* ldb:ldb_index.c - fix some memory leaksMatthias Dieter Wallnöfer2010-10-201-1/+6
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed Oct 20 13:11:49 UTC 2010 on sn-devel-104
* ldb:ldb_index.c - let "ldb_module_oom" generate the return codeMatthias Dieter Wallnöfer2010-10-201-15/+8
|
* ldb:ldb_cache.c - fix memory contexts and memory leaksMatthias Dieter Wallnöfer2010-10-201-3/+4
|
* ldb:ldb_tdb submodule - use "ldb_msg_new" where appropriateMatthias Dieter Wallnöfer2010-10-202-12/+12
| | | | It is saver than a manual "talloc".
* ldb:ldb_pack.c - remove superflous "message->elements = NULL"Matthias Dieter Wallnöfer2010-10-201-1/+0
| | | | It's already marked at this at the beginning of the call.
* ldb:"ldb_schema_attribute_by_name_internal" - support the whole unsigned int ↵Matthias Dieter Wallnöfer2010-10-191-7/+5
| | | | | | | | | | | | range Commit 8556602b048e825b35df314d6865f997823ec2bb wasn't quite right - it only restored the functionality on the positive integer range. This one however should now really support the whole unsigned range. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Oct 19 10:52:08 UTC 2010 on sn-devel-104
* s4-ldb: increase minor version for 2 new functionsAndrew Tridgell2010-10-192-1/+229
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Oct 19 01:27:44 UTC 2010 on sn-devel-104
* s4-ldb: cope with NULL oid in controlsAndrew Tridgell2010-10-192-9/+11
| | | | | | | the ldap server will mark a control with a NULL oid in order to remove it. This prevents a O(n^2) cost in control handling. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added --relax cmdline optionAndrew Tridgell2010-10-191-0/+9
| | | | this adds the relax control
* s4-ldb: added ldb_req_mark_untrusted() and ldb_req_is_untrusted()Andrew Tridgell2010-10-193-0/+30
| | | | | | | | these will be used to determine if a ldb request comes from an untrusted source. We want requests over ldap:// to be marked untrusted so we can reject unregistered controls Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: always return PROTOCOL_ERROR if an operation is unsupportedMatthias Dieter Wallnöfer2010-10-184-4/+4
| | | | That's exactly the behaviour of various LDAP servers.
* ldb:"ldb_schema_attribute_by_name_internal" - switch back to 32bit countersMatthias Dieter Wallnöfer2010-10-181-4/+5
| | | | | | | | Use the signed counter for the binary search but use an unsigned one for accessing the entry. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Oct 18 19:01:31 UTC 2010 on sn-devel-104
* ldb:ldb_tdb.c - fix up counter variablesMatthias Dieter Wallnöfer2010-10-181-5/+8
| | | | | | "find_element" returns an "int" since there is also the possibility that a certain element doesn't exist - then "-1" is returned. But beside this exception treat all other return values as unsigned.
* ldb:ldb_tdb.c - improve the error outputsMatthias Dieter Wallnöfer2010-10-181-13/+25
| | | | | | - Fix indentation - Include always the failing DN - Reorder the outputs to make them consistent
* s4-ldb Add LDB_REQ_SET_LOCATION to help track handler useAndrew Bartlett2010-10-184-0/+14
| | | | | | | | | | This greatly assists in debugging what is going on with the ldb handle, as it indicates where it was created. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Oct 18 11:54:46 UTC 2010 on sn-devel-104
* ldb Ensure we mark ongoing LDAP requests as PENDINGAndrew Bartlett2010-10-181-0/+2
|
* Revert "s4:dsdb - make the RELAX control private"Andrew Bartlett2010-10-181-6/+8
| | | | | | | | This must be available to the OpenLDAP backend, to set the GUID values in some situations. We need a proper ACL mechanism to control the use or abuse of this control. This reverts commit 10adee89367cee9add993869280542418fb3d370.
* s4:dsdb - make the RELAX control privateMatthias Dieter Wallnöfer2010-10-161-8/+6
| | | | | | | This makes our LDAP much more secure and less error-prone. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Oct 16 19:43:36 UTC 2010 on sn-devel-104
* ldb:ldb.h - reorder controls/extended operationsMatthias Dieter Wallnöfer2010-10-161-27/+28
| | | | This makes it easier to read
* ldb:pyldb.c - remove pointless commentMatthias Dieter Wallnöfer2010-10-161-1/+0
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Oct 16 14:38:58 UTC 2010 on sn-devel-104
* ldb:"ldb_dn_compare_base" - use "unsigned int" countersMatthias Dieter Wallnöfer2010-10-161-2/+2
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Oct 16 13:54:13 UTC 2010 on sn-devel-104
* ldb:"ldb_dn_add_child" - use "unsigned int" countersMatthias Dieter Wallnöfer2010-10-161-2/+3
|
* ldb:"ldb_dn_remove_base_components" - use an "unsigned int" counterMatthias Dieter Wallnöfer2010-10-161-6/+6
|
* ldb:"ldb_dn_canonical" - use an "unsigned int" counterMatthias Dieter Wallnöfer2010-10-161-3/+3
| | | | | Convert it to use an "unsigned int" counter which represents the exact length of the DN components.
* ldb: Only build LIBLDB_MAIN when building ldb itself.Jelmer Vernooij2010-10-131-8/+8
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Oct 13 15:41:29 UTC 2010 on sn-devel-104
* ldb:ldb_match.c - fix a counter typeMatthias Dieter Wallnöfer2010-10-131-1/+1
|
* ldb: raise minor version number for new ldb_msg_match_error() functionAndrew Tridgell2010-10-132-1/+227
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Oct 13 11:42:18 UTC 2010 on sn-devel-104
* s4-ldb: take advantage of ldb_match_msg_error() in more placesAndrew Tridgell2010-10-134-8/+32
| | | | this gives better error checking
* s4-ldb: use operator_fn syntax function in ldb_match codeAndrew Tridgell2010-10-131-92/+212
| | | | | | | | this also fixes error handling in case of bad syntax, memory error etc, which was previously conidered as a mismatch, but should return an error Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added an optional operator_fn in the schema syntaxAndrew Tridgell2010-10-133-5/+25
| | | | | | | | | | | | | this function takes the operator being invoked, which will allow schema functions to provide more fine grained control over comparisons. The key bug this was introduced to fix is the incorrect handling of the LDB_OP_PRESENT test for deleted linked attributes. The backends are unaware of the deleted state of these links, so they cannot do a LDB_OP_PRESENT test on their own. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: when running from build directory, use the build modulesAndrew Tridgell2010-10-131-27/+35
| | | | | | | we need to use the build modules, not the installed modules, so tests run from the source directory are valid Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* ldb: Build ildap module as shared object.Jelmer Vernooij2010-10-111-7/+3
|
* ldb The use of a private event context isn't a hackAndrew Bartlett2010-10-111-2/+3
| | | | | | | | | This is deliberate behaviour. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Oct 11 13:45:14 UTC 2010 on sn-devel-104
* s4-ldb Don't use talloc_autofree_context() in ldbAndrew Bartlett2010-10-111-1/+1
| | | | | | The private event context only needs to live as long as ldb itself. Andrew Bartlett
* wafsamba: Fix handling of pyembed/pyext.Jelmer Vernooij2010-10-101-2/+1
|
* wafsamba: Clarify needs_python argument name, use pyembed/pyext whereJelmer Vernooij2010-10-101-1/+1
| | | | | | | | | applicable. Allow using both pyembed and pyext, to prevent unresolved symbols. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 10 03:54:01 UTC 2010 on sn-devel-104
* waf: fixed exit status of test suitesAndrew Tridgell2010-10-071-2/+4
| | | | use RUN_COMMAND() to handle signal errors and exit status
* s4:ldb_modules.c - fix a typoMatthias Dieter Wallnöfer2010-10-051-1/+1
|
* Add missing dependencies for com_err.Jelmer Vernooij2010-10-053-1/+10
|
* ldb: Refer to ldb(3), not ldb(7).Jelmer Vernooij2010-10-056-13/+13
|
* unittests: add a test to avoid regression on previous fixMatthieu Patou2010-10-041-0/+5
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Oct 4 20:23:31 UTC 2010 on sn-devel-104
* pyldb: test return code before trying to talloc_stealMatthieu Patou2010-10-041-2/+2
| | | | | Otherwise you can have an error on the talloc_steal as the req can have been not talloced yet
* heimdal: convert some subsystems to libraries, consistent with upstream heimdal.Jelmer Vernooij2010-10-031-1/+1
|
* ldb-dn: don't crash on NULL in ldb_binary_encode_string()Andrew Tridgell2010-09-281-0/+3
| | | | Thanks to Nadya for finding this one!
* ldb-tdb: ignore failure to register control on rootdseAndrew Tridgell2010-09-281-4/+1
| | | | this is expected for non-sam LDBs
* ldb: Fix path to alternative buildtools.Jelmer Vernooij2010-09-281-1/+1
|
* ldb/tevent: Fix detection of waf paths.Jelmer Vernooij2010-09-282-2/+11
|
* ldb: Update autogen-waf.sh to no longer overwrite existing files.Jelmer Vernooij2010-09-282-2/+12
|
* ldb: Remove samba-specific targets from Makefile.Jelmer Vernooij2010-09-281-8/+0
|
* ldb: Bump version because of addition of ldb_req_location.Jelmer Vernooij2010-09-281-1/+1
|