summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_map
AgeCommit message (Collapse)AuthorFilesLines
2010-12-18ldb_map: Fix prefix for map functions.Jelmer Vernooij3-15/+15
2010-11-01s4-ldb: removed ldb_includes.hAndrew Tridgell4-4/+12
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
2010-10-18s4-ldb Add LDB_REQ_SET_LOCATION to help track handler useAndrew Bartlett3-0/+12
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
2010-10-13s4-ldb: take advantage of ldb_match_msg_error() in more placesAndrew Tridgell1-4/+9
this gives better error checking
2010-06-29ldb:ldb_map_outbound.c - "ldb_parse_tree_collect_attrs" - remove unneeded ↵Matthias Dieter Wallnöfer1-2/+0
return value
2010-06-24s4/ldb: ldb_msg_el_map_remote() should rename the remote attribute names ↵Endi S. Dewata1-1/+15
into local names as defined in simple_ldap_map.c.
2010-03-08LDB:map - make LDB "signed-safe" on counter variables where appropriateMatthias Dieter Wallnöfer3-21/+28
2009-11-30s4-ldb: changed ldb_msg_add_dn() to ldb_msg_add_linearized_dn()Crístian Deives1-3/+6
this makes the usage clearer Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-11-20added new function "ldb_msg_add_dn"Crístian Deives1-7/+3
a helper function to a DN element to an ldb_msg using ldb_msg_add_string. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2009-10-21S4: ldb_map modules uses defines that are reservedTorgeir Lerkerød4-58/+58
On OpenSolaris MAP_RENAME and friends are defined in <sys/mman.h> e.g. mmap and friends. So on these systems MAP_* have a meaning. Cleaned up LDB name space by adding LDB_ in front of MAP_* e.g. MAP_RENAME => LDB_MAP_RENAME Signed-off-by: Torgeir Lerkerød <torgeir.lerkerod@gmail.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-10-21s4:ldb_map Fix use-after-free of memory in ldb_mapAndrew Bartlett2-4/+8
We need to keep the old 'ares' from the remote server around so we can forward it back to the caller. We can't send the same controls (from the last search entry) twice (and it makes no sense anyway). Andrew Bartlett
2009-09-11s4:ldb_map_outbound - fix memory leakMatthias Dieter Wallnöfer1-0/+2
Patch from Andrew Kroeger wasn't fully correct - we need a "talloc_free" after the "if (ac->r_current == NULL)" statement.
2009-09-11s4:ldb_map: Don't free ares too early.Andrew Kroeger1-3/+3
As found when running "make test" with the MALLOC_CHECK_ and MALLOC_PERTURB_ environment variables set.
2009-07-14remove all '\n' from ldb_debugSumit Bose3-16/+16
2009-02-26s4:ldb_map: include ldb_includes.h first to get replace.h as first headerStefan Metzmacher3-0/+3
This should bring the build on AIX one step further. metze
2009-02-23Fix headers, ldb_includes.h is a private header,Simo Sorce5-6/+3
do not reference it from ldb.h
2009-02-02s4:ldb_map: s/new/ntreeStefan Metzmacher1-1/+1
metze
2009-01-30Fix misfiled headers.Simo Sorce1-1/+0
Some public functions were mistakenly put into ldb_private.h Revert all modules to only include ldb_module.h
2009-01-30s4:fix the build after 380874ef863866c94c999ef53252b9d30df65e88Stefan Metzmacher1-0/+1
metze
2009-01-30Fix the mess with ldb includes.Simo Sorce4-53/+137
Separate again the public from the private headers. Add a new header specific for modules. Also add service function for modules as now ldb_context and ldb_module are opaque structures for them.
2008-12-17s4:ldb: make it possible to return per entry controlsAndrew Bartlett1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-11-04Use ldb_dn_from_ldb_val to avoid possible over-run of the value.Andrew Bartlett1-2/+2
The ldb_val is length-limited, and while normally NULL terminated, this avoids the chance that this particular value might not be, as well as avoiding a cast. Andrew Bartlett
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-0/+2
remove some unused functions.
2008-09-29LDB ASYNC: core modulesSimo Sorce5-901/+743
2008-09-23Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce1-1/+1
The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
2008-07-21Fix ldb_map to add/remove the same 'extra' objectclassAndrew Bartlett1-2/+3
The code previously added data->add_objectClass, but only removed the fixed objectclass of extensibleObject. Found by the ldap.py test. Andrew Bartlett (This used to be commit 4fa15c3173a997fa0b9041161d81e742e1fdb41c)
2008-07-09ldb_map: eliminate "discards qualifyer" warning (const).Michael Adam1-1/+1
Michael (This used to be commit b7c14af3790bcf825367a7f16d2aaa375b04393c)
2008-02-20Use struct-based rather than function-based initialization for ldb modules ↵Jelmer Vernooij3-47/+15
everywhere. (This used to be commit 85c96a325867f7bcdb412ebc53f8a47dbf7cd89b)
2008-01-16Allow the 'extra' objectclass added to objectClass attributes byAndrew Bartlett2-32/+52
ldb_map to be modified (or omitted). This should allow the current abuse of extensibleObject to be replaced by a normal objectClass, possibly samba4TOP Andrew Bartlett (This used to be commit 8831a5c7935f7e2181252b7b6561541b8c8db679)
2007-12-21r26540: Revert my previous commit after concerns raised by Andrew.Jelmer Vernooij1-3/+3
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21r26539: Remove unnecessary statics.Jelmer Vernooij1-3/+3
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-10-10r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell4-8/+4
(This used to be commit 40c0919aaa9c1b14bbaebb95ecce53eb0380fdbb)
2007-10-10r23795: more v2->v3 conversionAndrew Tridgell4-4/+4
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10r22762: Some ldb_map changes:Jelmer Vernooij5-0/+3690
* Change license to LGPL, so it can be used by non-Samba users of LDB (cleared with Martin as well). * Include ldb_map in standalone build. * Move ldb_map to its own directory (This used to be commit a90202abca26c0da5425a2f3dd8494077c3290fd)
2007-10-10r9786: Move ldb_map into ldb/modules/Jelmer Vernooij3-1288/+0
Move samba3sam to dsdb/ (This used to be commit eb9d615bcd49328131613f64745760a90553b7f2)
2007-10-10r9770: Couple other bugfixesJelmer Vernooij1-5/+11
Update TODO-list (This used to be commit d9541535e3f9e1c058410eeb0a54d60181572f2b)
2007-10-10r9751: Remove C version of samba3dump (the EJS version works nicely as well).Jelmer Vernooij1-15/+44
Fix a couple of bugs in ldb_map. (This used to be commit 66df76a63433aea4081eab8b20bf3ba86e0a606d)
2007-10-10r9744: - [upgrade.js] Start working on smb.conf conversion.Jelmer Vernooij2-42/+274
- [ldb_map] Support storing non-mappable data in a fallback LDB (This used to be commit 435e4c6389b9d9b545beec8036289620ee5883db)
2007-10-10r9718: Work a bit on the SWAT interfaceJelmer Vernooij1-1/+3
(This used to be commit b1844905d2c1ca26aef0ccba799ff16383348fc1)
2007-10-10r9698: Fix a bit of memory managementJelmer Vernooij2-151/+321
More minor bugfixes Support mapping objectclasses and do mapping on 'dn' field as well (not just msg->dn) (This used to be commit b7b079167d5c6616f7c5c4afb7dd80c15707cfd9)
2007-10-10r9690: Extend test + fix several bugsJelmer Vernooij1-4/+14
(This used to be commit 0cff0e03fca0ddccaff3b463aadba63d29e061a9)
2007-10-10r9689: valgrind-clean now. Editing works now mostly, you just lose half of yourJelmer Vernooij1-55/+89
database every time you do it... (This used to be commit 40ea2af427911d9a3e65ca9ebed438e9a0a83af8)
2007-10-10r9686: Another round of bugfixes. Works somewhat now, when running under ↵Jelmer Vernooij1-5/+69
valgrind ;-) (This used to be commit 786379064f0ed779b965330fb3b74deaca75ce99)
2007-10-10r9685: Add tests for samba3sam mapping moduleJelmer Vernooij1-2/+9
Fix a couple of bugs Move samba3sam backend to lib/ldb/ Remove some more unused parameters (This used to be commit 7f864d446d6af7cfd9fb8dbc496a29b36ec57ce9)
2007-10-10r9672: Fix build for compilers that don't like undefined-length arrays at ↵Jelmer Vernooij2-20/+15
the end of structs... (This used to be commit c2211df586337ff68bb805801959147065040c01)
2007-10-10r9616: Finish ldb_map module (still needs a lot of testing though...)Jelmer Vernooij2-46/+485
Add initial mapping table for ldb_samba3. Contains most attributes. (This used to be commit b73441b04d048919e95ee7f7bcae330c4dafefe7)
2007-10-10r9595: Add ldb map moduleJelmer Vernooij2-21/+263
(This used to be commit e0a0d3f092d601a22b7549a0278735e66239b301)
2007-10-10r9438: Add initial files for ldb_mapJelmer Vernooij2-0/+58
(This used to be commit a66eeadecdcc5f67dd34c4ae82f5ae9191163499)