summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-ldb_module.h: use LDB error code for ldb_error() macro rather than ↵Kamen Mazdrashki2010-11-041-1/+1
| | | | | | | | | | | | | LDB_DEBUG_FATAL We end up calling ldb_error_at() which expects an LDB error, but LDB_DEBUG_FATAL is not such code. It is actually equal to LDB_SUCCESS. Thus the effect is that we report a *fatal* error, but return LDB_SUCCESS in many places. Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Thu Nov 4 12:57:33 UTC 2010 on sn-devel-104
* s4-ldb: implement LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECKAndrew Tridgell2010-11-042-13/+12
| | | | | | | this disables the single value checking for one attribute. It is much more specific than a general RELAX control, and also more efficient. I think we should try to have more precise overrides like this, rather than using RELAX as a general purpose override
* s4-ldb: don't load modules from the same directory twiceAndrew Tridgell2010-11-041-4/+4
| | | | | | | this prevents samba dying if you do a 'make install' while it is running. Otherwise the make install changes the inode numbers of the modules in the modules directory, causing them to reload, which causes multiple modules of the same name to try and load
* s4-ldb: honor controls on search in ldbeditAndrew Tridgell2010-11-043-1/+81
|
* Move the checking of single valued attributes back into the tdb backend.Andrew Tridgell2010-11-041-0/+44
| | | | | | | | | | | | | The backend is the only place that can do this properly. It makes no sense to do it anywhere else. As a result of it moving out of the backend we ended up with some bugs causing multiple values in single valued attributes (eg. isDeleted), which can really damage the inregrity of the database. For the override of single valued values needed for deleted linked attributes we should use attribute flags. This reverts commit 1949864417f3d10fb8996df7db259649eb777271.
* build: a more portable way of finding waf in makefilesAndrew Tridgell2010-11-031-3/+1
| | | | | | | this avoids using the non-portable shell command in makefiles Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 3 22:44:59 UTC 2010 on sn-devel-104
* s4-ldb: fixed sorting of module namesAndrew Tridgell2010-11-031-1/+6
| | | | | | this should also fix a valgrind error on freebsd thanks to Matthieu for spotting this
* s4:waf - fix the build on Gentoo platformsPhilip M. White2010-11-031-0/+1
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s4-ldb: make ldbtest depend on ldbAndrew Tridgell2010-11-031-1/+1
|
* waf: added reconfigure targets to our librariesAndrew Tridgell2010-11-031-0/+5
| | | | | This allows you to do "make reconfigure" to re-run configure only if needed
* s4-ldb: give the user a hint as to what may be wrongAndrew Tridgell2010-11-021-2/+2
| | | | | | | | when a backend or module can't be found, give a hint about the LDB_MODULES_PATH environment variable Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Nov 2 21:28:22 UTC 2010 on sn-devel-104
* s4-dsdb: removed the use of ldb_private.h from s4Andrew Tridgell2010-11-031-4/+4
| | | | this will allow s4 to use a system version of ldb
* s4-ldb: expose some more ldb module functionsAndrew Tridgell2010-11-037-22/+383
| | | | | this exposes enough functions for s4 to not need ldb_private.h any more.
* s4-ldb: removed ldb_includes.hAndrew Tridgell2010-11-0119-29/+54
| | | | | | | it causes problems with the openchange build as it is not installed Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 1 21:49:47 UTC 2010 on sn-devel-104
* s4-ldb: use ldb_set_modules_dir() to load additional ldb modulesAndrew Tridgell2010-11-012-8/+12
| | | | | | | | this allows ldb_wrap to enable s4 modules in a standalone ldb install without any additional installation Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 1 13:47:33 UTC 2010 on sn-devel-104
* s4-ldb: enable ldb module version checkingAndrew Tridgell2010-11-0110-6/+20
|
* s4-ldb: added support for ldb module version checkingAndrew Tridgell2010-11-012-2/+11
|
* ldb:tools/ldbtest.c - fix build warningMatthias Dieter Wallnöfer2010-11-012-2/+3
| | | | Cause was an incomplete declaration.
* s4-ldb: fixed build of paged searchesAndrew Tridgell2010-11-011-1/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 1 09:41:27 UTC 2010 on sn-devel-104
* s4-ldb: convert existing ldb tools to use new command line hooksAndrew Tridgell2010-11-018-76/+29
| | | | | | | the usage() function needs to take a ldb context, as the popt_options is specific to the ldb context Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added ldb command line hook supportAndrew Tridgell2010-11-015-65/+273
| | | | | | | ldb modules can now add hooks to the command line processing for ldb tools Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added samba_extensions ldb moduleAndrew Tridgell2010-11-012-0/+137
| | | | | | | | this module hooks into the ldb command line processing, to add extra command line options and initialisation of samba4 internal subsystems such as gensec Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: moved the ldb_ildap backend into lib/ldb-sambaAndrew Tridgell2010-11-011-1/+1
| | | | this backend is samba4 specific
* s4-ldb: added support for general ldb hooks in modulesAndrew Tridgell2010-11-012-12/+65
| | | | | | | | this allows a ldb module to register a hook function called at various stages of processing. It will be initially used for ldb command line hooks, but should work generally. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added an override flag to ldb_register_backend()Andrew Tridgell2010-11-014-30/+33
| | | | | this will be used to allow a system ldb build with an ldb backend to have its ldap handler overridden by the s4 one
* s4-ldb: it is not an error for the modules directory to not existAndrew Tridgell2010-11-011-0/+5
|
* s4-test: we don't need to set LDB_MODULES_PATH any moreAndrew Tridgell2010-11-012-4/+0
|
* s4-ldb: removed the old ldb module loading styleAndrew Tridgell2010-11-012-158/+34
| | | | this gets rid of some particularly obscure cpp macros for module lists
* s4-ldb: convert the rest of the ldb modules to the new styleAndrew Tridgell2010-11-019-22/+66
|
* 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-3123-738/+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-build: removed some unnecessary dependenciesAndrew Tridgell2010-10-303-3/+3
| | | | based on running waf --symbol-check
* s4-cmdline: make cmdline-credentials a private libraryAndrew Tridgell2010-10-302-7/+7
|
* s4-tdb: make tdb-wrap into a private libraryAndrew Tridgell2010-10-302-7/+8
| | | | this prevents double linking of the tdb wrap code
* 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-ldbwrap: split ldb-wrap out from the LDBSAMBA subsystemAndrew Tridgell2010-10-302-9/+19
| | | | | | | ldb-wrap and the ldif-handlers are not really related, and this allows us to remove another dependency loop 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
* tls: Inform the user if the cert/ca/private key can't be savedMatthieu Patou2010-10-271-3/+12
| | | | | | | | Most of the time this problem is due to a missing <private>/tls dir. Should close bug 7640. Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Oct 27 20:08:54 UTC 2010 on sn-devel-104
* talloc: change pytalloc-util to be a public library.Jelmer Vernooij2010-10-262-2/+2
|
* 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: Remove lib prefix from libraries manually.Jelmer Vernooij2010-10-2610-15/+15
|
* s4: Drop duplicate 'lib' prefix for private libraries.Jelmer Vernooij2010-10-266-7/+7
|
* 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
|
* s4: Rename SMBPASSWD to smbpasswd.Jelmer Vernooij2010-10-241-1/+1
| | | | Rename DSDB_MODULE to dsdb_module.