summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb
Commit message (Collapse)AuthorAgeFilesLines
* s4-ldb: convert the openldap ldb backend to the new style of moduleAndrew Tridgell2010-11-012-16/+18
|
* s4-ldb: convert the ildap module to the new type of ldb moduleAndrew Tridgell2010-11-012-17/+17
| | | | | this gets rid of the module aliases, which caused issues on some systems (eg. gentoo).
* s4-ldb: support a new type of ldb module loadingAndrew Tridgell2010-11-014-1/+199
| | | | | | | | | | | | | | | | | | this supports module loading in ldb which uses the approach of "load all modules in a directory". This is much more flexible than the current module loading, as it will allow us to load modules for command line parsing and authentication. Modules are loaded from a colon separated path, in the environment variable LDB_MODULES_PATH. If unset, it defaults to LDB_MODULESDIR. Within each directory modules are loaded recursively (traversing down the directory tree). The device/inode number of each module is remembered to prevent us loading a module twice. Each module is checked for a ldb_init_module() function with dlsym(). If found, it is called with the ldb module version as an argument.
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-317-301/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* ldb: Drop autoconf-based build system.Jelmer Vernooij2010-10-3016-4260/+0
|
* s4-cmdline: make cmdline-credentials a private libraryAndrew Tridgell2010-10-301-1/+1
|
* s4-ldb: add explicit depenencies on ldb library in ldb modulesAndrew Tridgell2010-10-301-2/+10
| | | | | | ldb modules call module functions from the main ldb library Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: create a private library ldb-cmdlineAndrew Tridgell2010-10-301-5/+6
| | | | this prevents duplicate linking of the cmdline support code
* waf: Only specify vnum for non-private libraries.Jelmer Vernooij2010-10-261-2/+6
|
* waf: Stop automaticaly changing dashes to underscores in library names.Jelmer Vernooij2010-10-261-1/+1
|
* waf: moved the -Wl,-no-undefined flags to source4 and ldbAndrew Tridgell2010-10-251-0/+4
| | | | | | | | | | moved it out of the general waf build as the s3 waf build cannot yet handle linking with -Wl,-no-undefined Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Oct 25 01:12:15 UTC 2010 on sn-devel-104
* ldb: Rename pyldb pkg-config file to pyldb-util, to avoid confusion withJelmer Vernooij2010-10-242-7/+7
| | | | 'ldb' python module.
* s4: Rename LIBCLI_LDAP to libcli_ldap.Jelmer Vernooij2010-10-241-1/+1
|
* waf: Rename some BUNDLED_ functios to PRIVATE_.Jelmer Vernooij2010-10-231-1/+1
|
* ldb: Support using system pyldb library.Jelmer Vernooij2010-10-231-8/+12
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Oct 23 19:24:25 UTC 2010 on sn-devel-104
* ldb: Install pkg-config file for pyldb.Jelmer Vernooij2010-10-232-0/+14
|
* ldb: Install pyldb-util as public library.Jelmer Vernooij2010-10-231-2/+3
|
* ldb:ldb.h - include a comment that the relax control is mainly used by the ↵Matthias Dieter Wallnöfer2010-10-231-0/+2
| | | | | | | OpenLDAP backend Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Oct 23 16:40:04 UTC 2010 on sn-devel-104
* s4/ldb:introduce the LDB_CONTROL_PROVISION_OID controlMatthias Dieter Wallnöfer2010-10-232-0/+33
| | | | | | | This control is exactly thought for the actions which previously were performed using the RELAX one. We agreed that the RELAX control will only remain for interactions with OpenLDAP.
* ldb:rename LDB_CONTROL_BYPASSOPERATIONAL_OID into ↵Matthias Dieter Wallnöfer2010-10-232-2/+2
| | | | | | LDB_CONTROL_BYPASS_OPERATIONAL_OID It's nicer to have this consistent with "BYPASS_PASSWORD_HASH".
* ldb:ldb_modules.c - "dlclose" could cause inference on "dlerror"Matthias Dieter Wallnöfer2010-10-211-1/+1
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Oct 21 09:28:19 UTC 2010 on sn-devel-104
* s4-ldb: make ldb_options_find() publicAndrew Tridgell2010-10-213-2/+231
| | | | | | we need to make this symbol public to allow for -Wl,-no-undefined, as otherwise the pyldb module can't find the symbol when it creates the module
* s4-ldb: make pyldb_util a private libraryAndrew Tridgell2010-10-211-1/+5
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: replace the is_bundled option with private_libraryAndrew Tridgell2010-10-211-1/+1
| | | | | 'private_library' better captures what we are trying to get at when we bundle a library
* ldb:ldb_modules.c - if we don't find the associated dynamic object then ↵Matthias Dieter Wallnöfer2010-10-211-0/+1
| | | | | | | please close the handle Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Oct 21 07:52:44 UTC 2010 on sn-devel-104
* ldb:ldb_tdb/ldb_cache.c - remove a superflous "talloc_free"Matthias Dieter Wallnöfer2010-10-211-3/+1
| | | | Didn't realise that this is already called by "ltdb_attributes_unload".
* ldb:ldb_tdb/ldb_cache.c - in this function we don't use LDB return codesMatthias Dieter Wallnöfer2010-10-211-1/+1
|
* 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
|