summaryrefslogtreecommitdiff
path: root/source4/lib/registry
AgeCommit message (Collapse)AuthorFilesLines
2010-10-03Fix .reg file format parsing.Wilco Baan Hofman1-39/+124
* multiline data * doublequoted value name * handle windows format CRLF Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03Fix registry parsing of strings to also support the windows method.Wilco Baan Hofman1-1/+33
Specifically: dword:00000000, hex:00,00,00,00, hex(0..B):00,00,00,00 Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-01samba: share readline wrappers among all buildsystems.Günther Deschner1-1/+1
Guenther
2010-09-22s4-param: Fix more memory leaks, invalid memory context.Jelmer Vernooij1-3/+34
2010-09-21s4-selftest: Move more tests to scripting/python, simplifies running of tests.Jelmer Vernooij1-60/+0
2010-09-19Fix regf.idl, subkey and rootkey types were switched.wilco@baanhofman.nl1-2/+2
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-09-19Fix file corruption (non-updated header) on new allocation.wilco@baanhofman.nl1-8/+17
Also fixes debug messages to use hex offsets. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-09-19Fix crash when no subkeys exist. Fix writing outside of buffer error by regf ↵wilco@baanhofman.nl1-2/+13
backend. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-09-19Add python bindings for open_hive function to be able to load REGF files.wilco@baanhofman.nl1-4/+43
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-09-15s4: fixed some printf format errorsAndrew Tridgell2-2/+2
2010-08-23s4-pyregistry: use s4_event_context_init()Andrew Tridgell1-2/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-22Avoid use of Samba DTD, which requires net access.Jelmer Vernooij4-4/+4
2010-08-17s4-ldb: use LDB_FLAG_MOD_TYPE() to extract element type from messagesAndrew Tridgell1-1/+1
The flags field of message elements is part of a set of flags. We had LDB_FLAG_MOD_MASK for extracting the type, but it was only rarely being used (only 1 call used it correctly). This adds LDB_FLAG_MOD_MASK() to make it more obvious what is going on. This will allow us to use some of the other flags bits for internal markers on elements Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-09s4-build: use @PACKAGE_VERSION@ in s4 pc.in filesAndrew Tridgell1-1/+1
this gets replaced by vnum from the build rule
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2-3/+3
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-01s4:lib/registry/ldb.c - free some "msg" objects earlier through explicit ↵Matthias Dieter Wallnöfer1-1/+10
"talloc_free"s No other functional change
2010-07-01s4:registry - move some common constraint checks to the "local" backendMatthias Dieter Wallnöfer2-24/+24
They should also be enforced when we don't use "ldb".
2010-07-01s4:lib/registry/tests/registry.c - test recursive key generationMatthias Dieter Wallnöfer1-8/+3
2010-07-01s4:registry - on key add operations we have to handle with paths not always ↵Matthias Dieter Wallnöfer3-5/+5
only a name Recursive key generations are allowed.
2010-07-01s4:lib/registry/local.c - support recursive key generationMatthias Dieter Wallnöfer1-40/+53
Code taken from "local_open_key".
2010-07-01s4:lib/registry/ldb.c - refactor "reg_path_to_ldb"Matthias Dieter Wallnöfer1-19/+21
This makes it easier to understand and would also support splitting in more DN components.
2010-07-01s4:lib/registry/ldb.c - use "ldb_path" rather than "ldap_path" as LDB key ↵Matthias Dieter Wallnöfer1-14/+14
varibale identifiers
2010-07-01s4:lib/registry/ldb.c - "ldb_add_key" - fix talloc handlingMatthias Dieter Wallnöfer1-8/+14
- free "msg" when possible - prevent "talloc_strdup"s where not necessary
2010-06-28s4:lib/registry/ldb.c - add a missing braceMatthias Dieter Wallnöfer1-1/+1
Sorry didn't check that earlier.
2010-06-28s4:lib/registry/ldb.c - fix memory handling in "ldb_open_key"Matthias Dieter Wallnöfer1-1/+4
2010-06-28s4:lib/ldb/registry.c - handle the classname in the right wayMatthias Dieter Wallnöfer1-1/+8
This is for "ldb_get_key_info".
2010-06-28s4:lib/registry/ldb.c - remove really useless "local_ctx"Matthias Dieter Wallnöfer1-8/+2
"mem_ctx" should fit for these few local allocations.
2010-06-28s4:lib/registry/ldb.c - retrieve the classname correctly in ↵Matthias Dieter Wallnöfer1-7/+6
"ldb_get_subkey_by_id"
2010-06-28s4:lib/registry/ldb.c - change the "ldb_get_value" implementation to use the ↵Matthias Dieter Wallnöfer1-20/+17
value cache and not an LDB lookup In addition this fixes the use of special characters in registry object names.
2010-06-25s4:lib/registry/ldb.c - cosmetic - fix commentMatthias Dieter Wallnöfer1-1/+1
2010-06-25s4:lib/registry/ldb.c - cosmetic - wrap linesMatthias Dieter Wallnöfer1-3/+2
2010-06-20s4:registry/regf.c - add some casts to suppress build warnings on SolarisMatthias Dieter Wallnöfer1-2/+2
2010-06-20s4:registry/rpc.c - fix Solaris warnings by castsMatthias Dieter Wallnöfer1-4/+4
2010-06-19python: Use samba.tests.TestCase, make sure base class tearDown andJelmer Vernooij1-3/+6
setUp methods are called, fix formatting.
2010-06-16s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.Stefan Metzmacher1-1/+1
This is needed to remove samba specifc symbols from the bundled ldb, in order to get the ABI right. metze Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-28s4:regshell - fix an "asprintf"Matthias Dieter Wallnöfer1-1/+5
2010-05-28s4:regshell - don't use negative exit codesMatthias Dieter Wallnöfer1-1/+1
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij15-131/+76
2010-04-27s4:lib/registry: fix the waf buildStefan Metzmacher1-1/+1
The pass to a source file is relative to the wscript* file. metze
2010-04-27s4: use shared registry functions.Günther Deschner4-49/+13
Guenther
2010-04-18s4-waf: removed the unused installdir= option to SAMBA_BINARY()Andrew Tridgell1-4/+0
This was left over from the automatic conversion of the config.mk files
2010-04-10s4:registry - "patchfile_preg.c" - use more "sizeof"s on length specificationMatthias Dieter Wallnöfer1-6/+6
This makes the code more clear to read.
2010-04-10s4:registry - "patchfile_preg.c" - fix indentationMatthias Dieter Wallnöfer1-5/+9
2010-04-10s4:registry - "patchfile_preg.c" - fix a datatypeMatthias Dieter Wallnöfer1-1/+1
This should be an "uint16_t" (only two bytes are written).
2010-04-08s4:registry - "patchfile_preg.c" - assign a better type to the "i" counter ↵Matthias Dieter Wallnöfer1-2/+1
variable The "i" variable sums up "size" values which are of type "size_t". Therefore also "i" itself should be from this type.
2010-04-08s4:registry - "patchfile_preg.c" - make a SIVAL statement nicerMatthias Dieter Wallnöfer1-1/+1
2010-04-08pynet: Create a net class.Jelmer Vernooij1-2/+2
2010-04-08s4:registry - "REGF backend" - don't ignore wrong-sized ↵Matthias Dieter Wallnöfer1-2/+5
REG_DWORD/REG_DWORD_BIG_ENDIAN values
2010-04-08s4:registry - "patchfile_preg.c" - fix the read operation of the data length ↵Matthias Dieter Wallnöfer1-0/+4
on big-endian platforms
2010-04-08s4:registry - "patchfile_preg.c" - use "sizeof(uint32_t)" for some size ↵Matthias Dieter Wallnöfer1-2/+2
specifications Looks nicer.