summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_ldb.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth ↵Simo Sorce1-2/+2
argument. This is a pointer to an element pointer. If it is not null it will be filled with the pointer of the manipulated element. Will avoid double searches on the elements list in some cases. (This used to be commit 0fa5d4bc225b83e9f63ac6d75bffc4c08eb6b620)
2007-10-10r19299: Fix possible memleaksSimo Sorce1-0/+1
(This used to be commit 6fad80bb09113a60689061a2de67711c9924708b)
2007-10-10r17713: fix compiler warningsStefan Metzmacher1-1/+1
metze (This used to be commit 21142ad7a2d37489e295d725c8700be0bb921091)
2007-10-10r17516: Change helper function names to make more clear what they are meant ↵Simo Sorce1-2/+2
to do (This used to be commit ad75cf869550af66119d0293503024d41d834e02)
2007-10-10r15854: more talloc_set_destructor() typesafe fixesAndrew Tridgell1-4/+2
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10r14599: Pass ACLs down the registry layer.Jelmer Vernooij1-2/+2
(This used to be commit 6cdefd8945eee5513a6993350ea71f12d4dbd6fa)
2007-10-10r12227: I realised that I wasn't yet seeing authenticated LDAP for the ldbAndrew Bartlett1-1/+2
backend. The idea is that every time we open an LDB, we can provide a session_info and/or credentials. This would allow any ldb to be remote to LDAP. We should also support provisioning to a authenticated ldap server. (They are separate so we can say authenticate as foo for remote, but here we just want a token of SYSTEM). Andrew Bartlett (This used to be commit ae2f3a64ee0b07575624120db45299c65204210b)
2007-10-10r11567: Ldb API change patch.Simo Sorce1-11/+25
This patch changes the way lsb_search is called and the meaning of the returned integer. The last argument of ldb_search is changed from struct ldb_message to struct ldb_result which contains a pointer to a struct ldb_message list and a count of the number of messages. The return is not the count of messages anymore but instead it is an ldb error value. I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good amount of places. I also tried to double check all my changes being sure that the calling functions would still behave as before. But this patch is big enough that I fear some bug may have been introduced anyway even if it passes the test suite. So if you are currently working on any file being touched please give it a deep look and blame me for any error. Simo. (This used to be commit 22c8c97e6fb466b41859e090e959d7f1134be780)
2007-10-10r11472: use talloc_get_type() to try to catch an intermittent failure I'm ↵Andrew Tridgell1-26/+30
seeing in the ldb winreg backend (This used to be commit a56a3696cc6a5186f736e503704c288589e5a833)
2007-10-10r10913: This patch isn't as big as it looks ...Andrew Tridgell1-6/+6
most of the changes are fixes to make all the ldb code compile without warnings on gcc4. Unfortunately That required a lot of casts :-( I have also added the start of an 'operational' module, which will replace the timestamp module, plus add support for some other operational attributes In ldb_msg_*() I added some new utility functions to make the operational module sane, and remove the 'ldb' argument from the ldb_msg_add_*() functions. That argument was only needed back in the early days of ldb when we didn't use the hierarchical talloc and thus needed a place to get the allocation function from. Now its just a pain to pass around everywhere. Also added a ldb_debug_set() function that calls ldb_debug() plus sets the result using ldb_set_errstring(). That saves on some awkward coding in a few places. (This used to be commit f6818daecca95760c12f79fd307770cbe3346f57)
2007-10-10r10207: Add some constJelmer Vernooij1-8/+8
(This used to be commit b1ad340b4720e922ae1e332c2a74986b1656358b)
2007-10-10r10007: Merge data_blk and data_len member of registry_value into a DATA_BLOB.Jelmer Vernooij1-18/+16
Fix handling of REG_DWORD in the LDB backend. Fix a couple of warnings (This used to be commit 709fdc7ebf5a77cfb50359fad978884777decc3b)
2007-10-10r9503: removed duplicate REG_* defines from registry.h now that they areAndrew Tridgell1-2/+3
generated in winreg.h (This used to be commit fc15e1b003a2b24dc73a6a7f2bbc45e20373dda1)
2007-10-10r9391: Convert all the code to use struct ldb_dn to ohandle ldap like ↵Simo Sorce1-32/+29
distinguished names Provide more functions to handle DNs in this form (This used to be commit 692e35b7797e39533dd2a1c4b63d9da30f1eb5ba)
2007-10-10r9390: fixed mixing of code and dataAndrew Tridgell1-1/+2
(This used to be commit ae2122e76a7e50435dafcc412ee425b522c0c766)
2007-10-10r9387: regedit uses "New Key #nn" for newly created keys, which conflicts ↵Andrew Tridgell1-3/+15
with the stricter DN rules in ldb. Escape the DN components to cope. Simo, sorry for making a change in ldb_dn.c while you have changes pending. Please feel free to revert these and switch reg_backend_ldb.c to use the new dn construction code. (This used to be commit 136ecf5cb23758558b4119b08047fc273be8b0f8)
2007-10-10r9386: OpenKey with a bad name must return WERR_BADFILE (w2k3 regedit relies ↵Andrew Tridgell1-1/+1
on this) (This used to be commit ae42976590b3c532790d854be45fff49074aef68)
2007-10-10r9378: initialise the last_mod attribute in the ldb backend. Better to returnAndrew Tridgell1-0/+2
0 than an uninitialised value, but we should put proper last_modified time support into the ldb winreg backend in the future (This used to be commit 899bf07908d4a04cb3d1cd4034dca0c91e6a912b)
2007-10-10r9209: - fixed the ldb registry backend to work with the new provision ldifAndrew Tridgell1-1/+1
- default to ldb backend if none specified (This used to be commit 8c3f57f7917efceb11b3b6a2ac76ec44968fbfb6)
2007-10-10r6520: Fix unused variable warning.Tim Potter1-1/+1
(This used to be commit 36de31a63189dcc6126dd0c10b1af8d183d8c235)
2007-10-10r6470: Remove ldb_search_free() it is not needed anymore.Simo Sorce1-3/+3
Just use talloc_free() to release the memory after an ldb_search(). (This used to be commit 4f0948dab0aa5e8b6a4ce486f3668ca8dfae23db)
2007-10-10r5585: LDB interfaces change:Simo Sorce1-9/+6
changes: - ldb_wrap disappears from code and become a private structure of db_wrap.c thanks to our move to talloc in ldb code, we do not need to expose it anymore - removal of ldb_close() function form the code thanks to our move to talloc in ldb code, we do not need it anymore use talloc_free() to close and free an ldb database - some minor updates to ldb modules code to cope with the change and fix some bugs I found out during the process (This used to be commit d58be9e74b786a11a57e89df36081d55730dfe0a)
2007-10-10r5307: removed db_wrap.h from includes.hAndrew Tridgell1-0/+1
(This used to be commit 826baec7b348814a7bbdcdbec8c8526514f25da1)
2007-10-10r5298: - got rid of pstring.h from includes.h. This at least makes it a bitAndrew Tridgell1-4/+4
less likely that anyone will use pstring for new code - got rid of winbind_client.h from includes.h. This one triggered a huge change, as winbind_client.h was including system/filesys.h and defining the old uint32 and uint16 types, as well as its own pstring and fstring. (This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
2007-10-10r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell1-15/+15
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
2007-10-10r4475: fixed smbd to work with the small changes in the ldb API (the most ↵Andrew Tridgell1-6/+6
important change was in the ldb_msg_add_*() routines, which now use the msg as a context, and thus it needs to be a talloc ptr) (This used to be commit 1a4713bfd0e519f3eb7b3241121ff914a6eeef18)
2007-10-10r4371: Add "Create Key", "Delete Key" and "Delete Value" buttons.Jelmer Vernooij1-4/+5
gregedit now can do the same things as regedt32 except for finding data and setting values. (and a few segfaults...) (This used to be commit ada16f31e4da919731767ce31000aa270f22ffd5)
2007-10-10r4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable ↵Jelmer Vernooij1-5/+35
(and human-editable) format in the ldb registry backend. (This used to be commit 6eafd055d1a7d45734a0112228e18ee59d1f7867)
2007-10-10r4298: Update to credentials.h after feedback from Andrew BartlettJelmer Vernooij1-25/+34
Move pack/unpack of values in ldb registry backend to seperate functions (This used to be commit ceb4e92735f6dae96bb0b9d98211c9808159e56a)
2007-10-10r4209: Fix several smaller bugsJelmer Vernooij1-23/+25
Add "predef" and "set" commands in regshell Some of the remote calls from a Windows box work now. (This used to be commit f3e05782804fe4b4942fa966f1b9650c64bc234d)
2007-10-10r4204: Arguments to reg_del_key more like the RPC for more efficient usageJelmer Vernooij1-2/+60
Fix small bug in regpatch Fix segfault in regshell cmdline completion Implement set_value and del_value in ldb backend (This used to be commit 8e2aa58abeafa78afe7dafb9723f5f365e756527)
2007-10-10r4166: More small API fixes, keep registry structs as small as possible.Jelmer Vernooij1-1/+1
Implement DelValue in the RPC server (This used to be commit f6b9ec89af934e837069fb26c0e3491fc78ebc12)
2007-10-10r4141: Fix crash bug in ldb backendJelmer Vernooij1-5/+5
(This used to be commit 5f64a60374486b9fc3d75786c3035a9017dd4d33)
2007-10-10r4140: Get rid of close_hive (replace it with talloc destructors).Jelmer Vernooij1-7/+10
(This used to be commit bcbfce7b0119538bab06801c97aa9c7d4bf3a6c6)
2007-10-10r4137: Make *_open_key take a registry_key instead of a hive (more efficientJelmer Vernooij1-9/+21
in some cases) (This used to be commit ddf7a331c58976f2c0b4a00390118f1acf60e3eb)
2007-10-10r4133: Cache results of subkey and value queriesJelmer Vernooij1-26/+58
(This used to be commit 1e12971137f50077e04a0432572275baf4fde35e)
2007-10-10r4132: - Bunch of rather large fixes in the registryJelmer Vernooij1-0/+219
- Added some README files Not everything works yet, e.g. the EnumValue test appears to be broken. (This used to be commit c169e86c1f52763b83e77e509f89cb91f9b69071)