Andrew Bartlett
2a835d900f
r25755: Fix a couple of memory leaks, in particular a new leak onto the NULL
...
context caused by my objectclass module work.
Andrew Bartlett
2007-12-21 05:43:46 +01:00
Jelmer Vernooij
917bd737cb
r25084: Move samba-specific code out of lib/ldb directory.
2007-10-10 15:06:26 -05:00
Jelmer Vernooij
e672380d21
r25081: Add modules_dir member to ldb_context that is used rather than a global
...
modulesdir setting. Samba always sets this to lp_modulesdir()/ldb
2007-10-10 15:06:25 -05:00
Andrew Bartlett
2ed782f7ca
r24566: Remove trailing newlines in ldb_debug(), these are not required.
...
Andrew Bartlett
2007-10-10 15:02:16 -05:00
Andrew Bartlett
c4c3afcdcb
r24261: Fix the standalone ldb build after I moved the objectclass module out.
...
Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Tridgell
40c0919aaa
r23798: updated old Temple Place FSF addresses to new URL
2007-10-10 14:59:15 -05:00
Andrew Tridgell
84b468b2f8
r23795: more v2->v3 conversion
2007-10-10 14:59:14 -05:00
Stefan Metzmacher
f6740c8b7a
r22789: fix loading of internal samba4 modules
...
metze
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
1152a4f56d
r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace.
2007-10-10 14:52:09 -05:00
Jelmer Vernooij
1093875d59
r22681: Fix standalone ldb build when parent directory name != ldb.
2007-10-10 14:52:00 -05:00
Andrew Bartlett
7f115579d2
r21761: - Give more detail on LDAP client library failures (make it clear
...
where the error is from)
- Make default error string more consistant
Andrew Bartlett
2007-10-10 14:49:24 -05:00
Andrew Bartlett
2e85b1583b
r21760: Try to pin down were some errors are coming from. Ensure we at least
...
name the module.
Andrew Bartlett
2007-10-10 14:49:23 -05:00
Stefan Metzmacher
b98ca57a65
r20588: handle extended operations in the ldb_next_request() call
...
metze
2007-10-10 14:37:09 -05:00
Simo Sorce
a580c871d3
r19831: Big ldb_dn optimization and interfaces enhancement patch
...
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.
The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.
The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.
Simo.
2007-10-10 14:28:22 -05:00
Stefan Metzmacher
3c16951b0d
r19743: merge from samba3:
...
remove old unused schema module
metze
2007-10-10 14:28:18 -05:00
Jelmer Vernooij
7a01235067
r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
...
works again now, by specifying --enable-dso to configure.
2007-10-10 14:24:41 -05:00
Simo Sorce
e58b03cd66
r19454: In standalone build init asq too
2007-10-10 14:21:34 -05:00
Andrew Tridgell
3bf76db42d
r19362: - don't need to store the baseinfo message after cache load
...
- set better names on talloc structures in ldb modules, making leaks
easier to track down
2007-10-10 14:21:17 -05:00
Stefan Metzmacher
67a6a41ba3
r19196: merge from samba3:
...
pass always a mem_ctx to functions and a ldb_context where needed
metze
2007-10-10 14:20:52 -05:00
Stefan Metzmacher
dc139d8715
r19188: merge from samba3:
...
fix compiler warnings
metze
2007-10-10 14:20:51 -05:00
Andrew Tridgell
b39a79f17c
r19112: fixed a checker warning.
...
In case you haven't noticed, lots of our packages now run the IBM
checker in the build farm on 'snab'
2007-10-10 14:20:35 -05:00
Stefan Metzmacher
4e2f5ba490
r18903: merge from samba3:
...
define HAVE_LDB_LDAP and HAVE_LDB_SQLITE3
metze
2007-10-10 14:20:19 -05:00
Andrew Tridgell
6ace943fac
r18831: minor build changes for samba3. The logging changes will be removed
...
when the tdb api is updated
2007-10-10 14:19:15 -05:00
Stefan Metzmacher
4f753f9ebc
r17778: fix compiler warnings
...
metze
2007-10-10 14:16:40 -05:00
Andrew Tridgell
217cff9f00
r17730: cast dlsym result to try to avoid a compiler crash on hpux
2007-10-10 14:16:33 -05:00
Simo Sorce
260868bae5
r17514: Simplify the way to set ldb errors and add another
...
helper function to set them.
2007-10-10 14:15:31 -05:00
Andrew Bartlett
c016db2187
r17474: Allow the partitions module to load modules for specific backends.
...
Andrew Bartlett
2007-10-10 14:15:27 -05:00
Andrew Bartlett
bed17cc579
r17473: Split loading a list of modules and initialising them into a seperate
...
function.
Andrew Bartlett
2007-10-10 14:15:27 -05:00
Simo Sorce
fc97b5dc8c
r17398: avoid a memleak when we are returned 0 results and make a more creative use of memory contexts
2007-10-10 14:15:22 -05:00
Andrew Bartlett
59fc8031ec
r17397: Add const, and use a more local memory context.
...
Andrew Bartlett
2007-10-10 14:15:21 -05:00
Andrew Bartlett
6a8c9af9ba
r16908: Set an error string if we can't find a backend for an operation.
...
Andrew Bartlett
2007-10-10 14:09:58 -05:00
Andrew Bartlett
fbe7d0ca90
r16083: Make it possible to initialise a backend module, without it setting up
...
the whole ldb structure.
Because the sequence number was a fn pointer on the main ldb context,
turn it into a full request (currently sync).
Andrew Bartlett
2007-10-10 14:08:57 -05:00
Simo Sorce
55d97ef88f
r15944: rename LDB_ASYNC_ADD -> LDB_ADD, LDB_ASYNC_MODIFY -> LDB_MODIFY, etc...
2007-10-10 14:08:43 -05:00
Simo Sorce
7d65105e88
r15927: Optimize ldb module traverse while keeping the API intact.
...
I was sick of jumping inot each module for each request,
even the ones not handle by that module.
2007-10-10 14:08:41 -05:00
Jelmer Vernooij
614f062748
r14606: Fix paths in developer mode. This allows 'make quicktest' to work when
...
building with --enable-dso
2007-10-10 13:59:00 -05:00
Jelmer Vernooij
f10fae23f0
r14592: Add support for loading shared modules to LDB.
2007-10-10 13:58:58 -05:00
Simo Sorce
3347322d13
r13992: change the way ldb_async_wait() works.
...
I think I should change the name of this function
to ldb_async_process(), any opinions ?
2007-10-10 13:52:34 -05:00
Jelmer Vernooij
988ea27e22
r13990: Fix issues with function renaming.
2007-10-10 13:52:34 -05:00
Stefan Metzmacher
30af3be22b
r13973: fix the build
...
metze
2007-10-10 13:52:33 -05:00
Simo Sorce
8340ab26dd
r13901: Backends need to be initialized even if there are no modules
2007-10-10 13:52:20 -05:00
Jelmer Vernooij
fb2f70de4f
r13839: Use registration mechanism for backends as well (in the same sense
...
my previous patch added it for modules). This is the next step towards
LDB backends and modules as run-time loadable .so files.
2007-10-10 13:52:14 -05:00
Simo Sorce
b4202cf030
r13823: make async_wait part of the modules ops
2007-10-10 13:52:13 -05:00
Jelmer Vernooij
52a2356505
r13786: [merge] Add registration functions for LDB modules
...
Applications that use LDB modules will now have to run ldb_global_init()
before they can use LDB.
The next step will be adding support for loading LDB modules from .so
files. This will also allow us to use one LDB without difference between the
standalone and the Samba-specific build
2007-10-10 13:52:11 -05:00
Simo Sorce
1e2c13b2d5
r13609: Get in the initial work on making ldb async
...
Currently only ldb_ildap is async, the plan
is to first make all backend support the async calls,
and then remove the sync functions from backends and
keep the only in the API.
Modules will need to be transformed along the way.
Simo
2007-10-10 13:51:59 -05:00
Simo Sorce
900f4fd343
r12941: Add Attribute Scoped Search control
...
want to see what it does ?
do aq make test and try:
./bin/ldbsearch -H st/private/sam.ldb --controls=asq:1:member -s base -b 'CN=Administrators,CN=Builtin,DC=samba,DC=example,DC=com' 'objectclass=*'
have fun.
simo.
2007-10-10 13:51:11 -05:00
Stefan Metzmacher
a6f279bc43
r12909: add an ldb module for the wins.ldb,
...
it currently doesn't do much, but it's later
prevent adding corrupted records via ldbedit,
and will take care of the versionID counter
metze
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
1876e245c4
r12830: this can be const
...
metze
2007-10-10 13:50:03 -05:00
Stefan Metzmacher
380938e97f
r12829: fix ldb headers, to not include '<...>' files in .c files
...
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later.
metze
2007-10-10 13:50:03 -05:00
Andrew Bartlett
be9d0cae89
r12746: An initial version of the kludge_acls module.
...
This should be replaced with real ACLs, which tridge is working on.
In the meantime, the rules are very simple:
- SYSTEM and Administrators can read all.
- Users and anonymous cannot read passwords, can read everything else
- list of 'password' attributes is hard-coded
Most of the difficult work in this was fighting with the C/js
interface to add a system_session() all, as it still doesn't get on
with me :-)
Andrew Bartlett
2007-10-10 13:49:48 -05:00
Simo Sorce
5e8b365fa2
r12743: Remove the ugly way we had to make a second stage init and introduce
...
a second_stage_init private function for modules that need a second stage init.
Simo.
2007-10-10 13:49:48 -05:00