Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-03-16 | s4:registry - use a macro for reverse byte order | Matthias Dieter Wallnöfer | 1 | -5/+2 | |
2010-03-16 | s4:registry - introduce the "REG_DWORD_BIG_ENDIAN" datatype | Matthias Dieter Wallnöfer | 1 | -1/+13 | |
It's like the normal REG_DWORD type but the byte order swapped | |||||
2010-03-15 | s4:registry - fix up the output of hexadecimal values | Matthias Dieter Wallnöfer | 1 | -2/+2 | |
Use a fixed-length representation to avoid platform-specific issues. | |||||
2010-03-15 | s4:registry - add support for REG_QWORD values | Matthias Dieter Wallnöfer | 1 | -0/+65 | |
Basically the same as REG_DWORD but these are eight byte long. | |||||
2010-03-14 | s4:registry - ldb.c - provide a mechanism for storing UTF8/binary REG_DWORD ↵ | Matthias Dieter Wallnöfer | 1 | -12/+47 | |
values We need to support this as gd's WINREG torture test shows. | |||||
2010-03-14 | s4:registry - ldb.c - provide a mechansim for storing UTF8/binary ↵ | Matthias Dieter Wallnöfer | 1 | -7/+39 | |
REG_SZ/REG_EXPAND_SZ values We need to support this as gd's WINREG torture test shows. | |||||
2010-03-14 | s4:registry - ldb.c - fix up a strange LDB filter | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
2010-03-14 | s4:registry - ldb.c - fix up the memory handling in "reg_ldb_unpack_value" | Matthias Dieter Wallnöfer | 1 | -3/+8 | |
Don't substitute existing data blobs with new ones and make sure, that the result objects in the data blob don't have memory dependencies of the LDB value input. | |||||
2010-03-14 | s4:registry - ldb.c - check more for possible "Out of memory" circumstances | Matthias Dieter Wallnöfer | 1 | -4/+10 | |
2010-03-14 | s4:registry - ldb.c - remove superfluous "query" variable | Matthias Dieter Wallnöfer | 1 | -4/+2 | |
2010-03-14 | s4:registry - ldb.c - Consider result values in "reg_ldb_pack_value" | Matthias Dieter Wallnöfer | 1 | -17/+59 | |
Break on errors and return NULL and otherwise the message pointer. | |||||
2010-03-14 | s4:registry - ldb.c - Move the "val" structure | Matthias Dieter Wallnöfer | 1 | -3/+5 | |
Move it into the REG_SZ/REG_EXPAND_SZ case block since it's used only there. Plus convert it from static into dynamic talloc'ed. | |||||
2010-03-10 | s4:registry/ldb.c - if "name" isn't set we should return WERR_INVALID_PARAM | Matthias Dieter Wallnöfer | 1 | -1/+5 | |
2010-03-10 | s4:lib/registry/ldb.c - fix up registry backend to be more robust | Matthias Dieter Wallnöfer | 1 | -9/+5 | |
This should let the new WINREG tests written by gd at least pass against us. | |||||
2010-03-06 | s4:lib/registry/ldb.c - fix trailing whitespaces | Matthias Dieter Wallnöfer | 1 | -6/+6 | |
2010-03-06 | s4:registry library - fix up "reg_ldb_set_value" | Matthias Dieter Wallnöfer | 1 | -9/+23 | |
The previous logic was wrong since it tried to add empty data in some cases which always ended in an error. This problem should be fixed with the new logic. | |||||
2010-03-06 | s4:registry library - make "reg_ldb_pack/unpack_value" more robust | Matthias Dieter Wallnöfer | 1 | -28/+35 | |
This to prevent segmentation faults, wrong server inputs ecc. | |||||
2010-03-06 | s4:libregistry - change counters to be "unsigned" | Matthias Dieter Wallnöfer | 1 | -6/+7 | |
Also the s4 registry library has to have "unsigned" counters like the Windows one. | |||||
2010-02-22 | Spelling fixes for source4/lib/registry. | Brad Hards | 1 | -1/+1 | |
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | |||||
2010-02-07 | s4-registry: fixed byte order assumptions | Andrew Tridgell | 1 | -1/+2 | |
the registry tests were broken on big-endian systems | |||||
2009-10-23 | s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect() | Andrew Tridgell | 1 | -1/+1 | |
This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context. | |||||
2009-03-01 | s4: Use same function signature for convert_* as s3. | Jelmer Vernooij | 1 | -4/+4 | |
2009-03-01 | Add allow_badcharcnv argument to all conversion function, for | Jelmer Vernooij | 1 | -2/+2 | |
consistency with Samba 3. | |||||
2008-12-29 | s4:lib/tevent: rename structs | Stefan Metzmacher | 1 | -1/+1 | |
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze | |||||
2008-10-24 | Remove more uses of global_loadparm. | Jelmer Vernooij | 1 | -8/+4 | |
2008-10-24 | Remove iconv_convenience argument from convert_string{,talloc}() but | Jelmer Vernooij | 1 | -2/+2 | |
make them wrappers around convert_string{,talloc}_convenience(). | |||||
2008-10-21 | Fix double free. | Jelmer Vernooij | 1 | -1/+0 | |
2008-10-21 | Fix the build. | Jelmer Vernooij | 1 | -2/+2 | |
2008-10-21 | Revert "Registry server LDB backend: Don't make copies of the same type" | Jelmer Vernooij | 1 | -2/+2 | |
The original data pointer may go away so we do want to make copies in this case. This reverts commit 625359b2e266105022309df8985720108ecd6f67. | |||||
2008-10-21 | Merge branch 'master' of ssh://git.samba.org/data/git/samba into regsrv | Jelmer Vernooij | 1 | -9/+10 | |
Conflicts: source4/lib/registry/ldb.c source4/rpc_server/winreg/rpc_winreg.c | |||||
2008-10-21 | Registry server LDB backend: Don't make copies of the same type | Matthias Dieter Wallnöfer | 1 | -2/+2 | |
2008-10-21 | Registry server LDB backend REG_BINARY type: Save it directly in LDB | Matthias Dieter Wallnöfer | 1 | -3/+5 | |
With this patch the REG_BINARY type is saved directly in a LDB registry database rather than converted in a hex-string. | |||||
2008-10-21 | Registry server LDB backend REG_SZ type: Always use UTF8 encoding | Matthias Dieter Wallnöfer | 1 | -2/+2 | |
We should save data OS independent in the LDB files. | |||||
2008-10-21 | Registry server LDB backend REG_SZ type: Fix up the empty string problem | Matthias Dieter Wallnöfer | 1 | -5/+15 | |
This fixes up the empty string problem in a better way without the need of changing the character conversion code. | |||||
2008-10-21 | Registry server: Fixes up the patch with "type" != NULL (used in "EnumValue" ↵ | Matthias Dieter Wallnöfer | 1 | -2/+3 | |
and "QueryValue") This prevents the server to segfault if the input data type is NULL. | |||||
2008-10-21 | Registry server "reg_ldb_unpack_value": Tests demonstrate that also "type" ↵ | Matthias Dieter Wallnöfer | 1 | -2/+2 | |
doesn't has to be NULL | |||||
2008-10-21 | Revert "Registry server "reg_ldb_unpack_value": Let "data" pointer be NULL" | Matthias Dieter Wallnöfer | 1 | -27/+23 | |
This reverts commit 82f50ea69f3aece4ac654ffdfa627babd8aadc25. Cause: Windows (2000) doesn't accept the "data" pointer set to NULL | |||||
2008-10-21 | Registry server "reg_ldb_unpack_value": Let "data" pointer be NULL | Matthias Dieter Wallnöfer | 1 | -23/+27 | |
Prevent segfaults in some client applications (e.g. regdiff) | |||||
2008-10-21 | Cleanups of server files | Matthias Dieter Wallnöfer | 1 | -1/+5 | |
Cosmetic corrections | |||||
2008-10-21 | Registry server: More work to be compatible | Matthias Dieter Wallnöfer | 1 | -14/+25 | |
Some fixup's and assure, that we send only initialized values. | |||||
2008-10-21 | ldb_get_value_by_id: Fix the return of the default value | Matthias Dieter Wallnöfer | 1 | -14/+15 | |
The return of the values of a certain key has been broken since I've introduced the default value. Now the behaviour is correct: If no default value exists, start with index zero to fetch the other values. Otherwise let zero be the default value and enumerate the others starting with one. | |||||
2008-10-21 | reg_ldb_unpack_value: Change "CH_UTF8" in "CH_UNIX" | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
It's better to use "CH_UNIX" for unpacking, because the system charset doesn't have to be UTF8 and we should be compatible with "reg_ldb_pack_value". | |||||
2008-10-21 | ldb_del_value: Free key data also when removing the default attribute | Matthias Dieter Wallnöfer | 1 | -4/+4 | |
2008-10-21 | Fix for allowing the REG_BINARY type and introducing the default attribute | Matthias Dieter Wallnöfer | 1 | -45/+128 | |
The REG_BINARY type is converted and stored in the LDB database as a leaf object with string-data. The default attribute is saved directly in the hive object as the "data"-string. | |||||
2008-09-23 | Merge ldb_search() and ldb_search_exp_fmt() into a simgle function. | Simo Sorce | 1 | -10/+14 | |
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-04-17 | Specify event_context to ldb_wrap_connect explicitly. | Jelmer Vernooij | 1 | -1/+2 | |
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91) | |||||
2008-03-03 | Merge branch 'v4-0-test' into id10ts-registry | Jelmer Vernooij | 1 | -5/+9 | |
(This used to be commit f98b59021a5ea39c7970ebc5520d17775e500b8c) | |||||
2008-02-26 | registry: Implement recursive deletes for ldb-backed registry. | Andrew Kroeger | 1 | -27/+116 | |
When deleting a registry key that contains subkeys or values, Windows performs a recursive deletion that removes any subkeys or values. This update makes deletes for an ldb-backed registry consistent with Windows. Under ldb, the deletion is done using an explicit transaction. If an error occurs during the deletion the entire transaction is cancelled, leaving the registry as it was before the deletions started. (This used to be commit ca796c8fb10598674a5eef31d15863e79bcf3db8) | |||||
2008-02-21 | Remove more global_loadparm instance.s | Jelmer Vernooij | 1 | -5/+9 | |
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9) | |||||
2008-02-09 | registry: Fix warning. | Jelmer Vernooij | 1 | -1/+1 | |
(This used to be commit dad809030478a85ac13a73bce9c07314792f01c2) |