summaryrefslogtreecommitdiff
path: root/source4/lib/registry
AgeCommit message (Collapse)AuthorFilesLines
2008-04-08Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij18-290/+232
Conflicts: source/auth/credentials/config.mk source/auth/gensec/config.mk source/build/smb_build/makefile.pm source/heimdal_build/config.mk source/lib/events/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/registry/config.mk source/lib/socket_wrapper/config.mk source/lib/tdb/config.mk source/lib/tls/config.mk source/lib/util/config.mk source/libcli/config.mk source/libcli/ldap/config.mk source/libnet/config.mk source/librpc/config.mk source/param/config.mk source/rpc_server/config.mk source/scripting/ejs/config.mk source/smbd/process_model.mk (This used to be commit 760378e0294dd0cd4523a83448328478632d7e3d)
2008-04-03Install libevents since it's required by samba-gtk.Jelmer Vernooij1-0/+4
(This used to be commit 2073346828ffa1d9c35105eadd7afddd3a76a045)
2008-04-03Fix installation of dcerpc_atsvc and registry as required by samba-gtk.Jelmer Vernooij1-2/+2
(This used to be commit 64a6887ecddc1599bde5dcb06d0b74ffea1def0c)
2008-04-02Reintroduce header previously autogenerated but ignored by git.Jelmer Vernooij1-1/+0
Also fixed extra include in regpatch. (This used to be commit 0e371cf169e9a607fcbb3e65437ab9413935dd52)
2008-04-02Move handle utility functions to public header, remove more public headers.Jelmer Vernooij1-1/+0
(This used to be commit 92e71c19f4e1d3ca123a083942ec578d21f7012c)
2008-04-02Trim down installed headers some more.Jelmer Vernooij1-1/+1
(This used to be commit 71aa38842c270d52d39b805bf7ce29e25e062024)
2008-04-02Merge hive.h into registry.hJelmer Vernooij7-215/+186
(This used to be commit 3ca14fdf74d2510049bbdbbd2a5be341412cda1b)
2008-04-02Merge patchfile.h into registry.hJelmer Vernooij6-61/+30
(This used to be commit 7b434df67aefc667993f0ebd955af9c1c258f153)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-1/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-04-01Rename libsamba-config to libsamba-hostconfig.Jelmer Vernooij1-4/+4
(This used to be commit c46b7e90e347da76156ddcae4866adb88e9fec21)
2008-03-28Convert some more files to GPLv3.Andrew Kroeger8-8/+8
(This used to be commit ebe5e8399422eb7e2ff4deb546338823e2718907)
2008-03-28Merge v4.0-testJelmer Vernooij1-13/+13
(This used to be commit 977dbdeaf363c8905ed9fd0570eba4be80582833)
2008-03-14swig: regenerate _wrap.c filesStefan Metzmacher1-13/+13
metze (This used to be commit 08b41e10699c7bb8058ab0ab61f17a1bbfcc1ce4)
2008-03-09Move PC_FILE out of the perl code.Jelmer Vernooij1-1/+2
(This used to be commit ca8d4260ada9f74ebc406714ca70d20be09b194b)
2008-03-08Push SOVERSION and VERSION out of perl code.Jelmer Vernooij1-2/+3
(This used to be commit 0ba8ac6a14c62ff9edfe9f0bf43b8a7406b85291)
2008-03-04Fix includes.Jelmer Vernooij1-0/+1
(This used to be commit 99e61dade2bd9ae2a5dfe17f766528012c09e46c)
2008-03-03Move object file lists to the Makefile.Jelmer Vernooij1-24/+18
(This used to be commit a7e6d2a1832db388fdafa1279f84c9a8bbfc87d6)
2008-03-03Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij4-37/+256
Conflicts: source/Makefile source/build/smb_build/makefile.pm source/librpc/config.mk (This used to be commit 3e02fcfd3fb6683f51417ba39f4ec177494eff3e)
2008-03-03Merge branch 'v4-0-test' into id10ts-registryJelmer Vernooij11-30/+51
(This used to be commit f98b59021a5ea39c7970ebc5520d17775e500b8c)
2008-02-29Move public header accumulation out of the perl code.Jelmer Vernooij1-1/+2
Never install generated prototype files. It's easier to break the API when using them and they're not easily readable for 3rd party users. Conflicts: source/auth/config.mk source/auth/credentials/config.mk source/auth/gensec/config.mk source/build/smb_build/config_mk.pm source/build/smb_build/main.pl source/build/smb_build/makefile.pm source/dsdb/config.mk source/lib/charset/config.mk source/lib/tdr/config.mk source/lib/util/config.mk source/libcli/config.mk source/libcli/ldap/config.mk source/librpc/config.mk source/param/config.mk source/rpc_server/config.mk source/torture/config.mk (This used to be commit 6c659689ed4081f1d7a6253c538c7f01784197ba)
2008-02-29Move manpage management out of the perl build system.Jelmer Vernooij1-4/+8
(This used to be commit 1dd6bea507f1f5e26cccf89148280721260a4673)
2008-02-29Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij10-25/+41
Conflicts: source/scripting/python/config.mk (This used to be commit 0ac0ea660ab63eca764149f1d2828d0238a57289)
2008-02-26registry: Add an explicit test for recursive deletion.Andrew Kroeger1-0/+37
(This used to be commit 5e905804993df4c2ac28090d056e6db6bb63ac44)
2008-02-26registry: Implement recursive deletes for regf-backed registry.Andrew Kroeger1-4/+49
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 regf-backed registry consistent with Windows. The regf-backed registry does not have transactional integrity when performing multiple operations. Therefore, if an error occurs during the recursive deletion, the regf-backed registry may be left in an inconsistent state. (This used to be commit b0321bad290d1a9399b4aba140a622e3af6d7575)
2008-02-26registry: Implement recursive deletes for dir-backed registry.Andrew Kroeger1-6/+54
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 dir-backed registry consistent with Windows. The dir-backed registry relies on the underlying filesystem, which does not generally have transactional integrity when performing multiple operations. Therefore, if an error occurs during the recursive deletion, the dir-backed registry may be left in an inconsistent state. (This used to be commit 6b5fbf7e4e38342bcd80e63f46cd295f89ab1ee9)
2008-02-26registry: Implement recursive deletes for ldb-backed registry.Andrew Kroeger1-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-26Move public header accumulation out of the perl code.Jelmer Vernooij1-1/+2
(This used to be commit 89f7c74924965071981bbe7e05ff69847b0a3a03)
2008-02-26Move manpage management out of the perl build system.Jelmer Vernooij1-4/+8
(This used to be commit a660ab262e7202baccf16cb8b2bc47cb8efacc34)
2008-02-25Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij7-24/+38
Conflicts: source/build/smb_build/header.pm source/build/smb_build/makefile.pm source/lib/ldb/include/ldb_private.h (This used to be commit 1a646af0647f021d99473a8991c35e616a423ea6)
2008-02-25Remove uses of global_loadparm.Jelmer Vernooij5-11/+15
(This used to be commit a16c9a2129ce92e7e1a613b2badd168e42ead436)
2008-02-21Remove yet more global_loadparm instances.Jelmer Vernooij1-2/+4
(This used to be commit 5de88728ac5c567d3711d1ac6862bbdaced84b75)
2008-02-21Remove more global_loadparm instance.sJelmer Vernooij1-5/+9
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-02-21Remove yet more uses of global_loadparm.Jelmer Vernooij4-7/+13
(This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
2008-02-21Remove more uses of global_loadparm.Jelmer Vernooij7-24/+38
(This used to be commit 3430cc60972b94d0d238bc39f473feed96949c5d)
2008-02-16Move responsibilities of build.h to makefile.Jelmer Vernooij2-2/+0
(This used to be commit a43f6d37bce85748e9cf2675e5beced5db26f1c3)
2008-02-11Fix switching of hives in regshell (#5254)Jelmer Vernooij1-0/+3
(This used to be commit 5f33545c78e13871d622c0a5a0ded789bf624869)
2008-02-09registry: Fix warning.Jelmer Vernooij1-1/+1
(This used to be commit dad809030478a85ac13a73bce9c07314792f01c2)
2008-01-22build: Remove support for DESCRIPTION setting that is now unused.Jelmer Vernooij1-1/+0
(This used to be commit 91d7ba5202e6c375456a42c2c6861f63c7fcfc20)
2008-01-22dcerpc: Use manually written .pc files for dcerpc and ndr.Jelmer Vernooij1-1/+1
(This used to be commit 676fd18fa2914b7b5530014a944a11ea1d6f631d)
2008-01-22registry: Use manually written .pc file.Jelmer Vernooij2-0/+13
(This used to be commit 5c64d4adaf50215ec2645f76e6c0335572147614)
2008-01-18registry: Use correct return values.Jelmer Vernooij7-32/+53
(This used to be commit 98ebdbe52fd615ea62a3caa17acfe8bb31b8f85d)
2008-01-18registry: Avoid mapping registry return codes: return the right value in the ↵Jelmer Vernooij3-3/+3
first place. (This used to be commit 434e4857cec17d6d9e8983e151c170eed59fc6d1)
2008-01-18When Windows attempts to create a new key, it looks for an available key nameAndrew Kroeger1-7/+13
starting with "New Key #1" and iterating up to "New Key #99" before giving up. ldb_open_key() calls reg_path_to_ldb() to build the appropriate dn from the key name. reg_path_to_ldb() was not catching the error returned by ldb_dn_add_base_fmt() due to the unescaped '#' character, causing the returned dn to be that of the parent key, not the potential new key. Additionally, Windows expects a return value of WERR_BADFILE when a key does not exist, but WERR_NOT_FOUND was being returned instead. Correcting the building of the dn and the providing the expected return value allows new key creation to succeed. When attempting to delete a key, Windows passes the complete path to the key, not just the name of the child key to be deleted. Using reg_path_to_ldb() to build the correct dn allows key deletion to succeed. (This used to be commit d57792d67b865ef43e7f21640b158862627f4b45)
2008-01-18registry: Improve error codes and update tests.Jelmer Vernooij6-20/+23
Rather than map the error returned by the registry to the correct error, return the correct error in the first place. Also deal with the fact that the right error code is now returned in a couple of places. (This used to be commit 1e31fcb8a097810a97e2d4bb1f243f1b34cc2415)
2008-01-18When Windows initially creates a new value, the value name is "New Value #1".Andrew Kroeger1-2/+22
The '#' character was causing problems, as it was not being escaped for the dn, but the failure returned by ldb_dn_add_child_fmt() was not being caught. This was causing the new value to be added on the parent key, not the current key. When attempting to delete the new value (now on the parent key) the same escaping error was returned by ldb_dn_add_child_fmt(), causing the delete to delete the key and not the value. When attempting to rename a value, Windows first tries to ensure the new name does not already exist. When a value does not exist, Windows expects a return value of WERR_BADFILE, but WERR_NOT_FOUND was being returned instead. Providing the WERR_BADFILE that Windows expects allows values to be renamed. (This used to be commit 94fb39cfd967455ce5a554720c1c7e6183f91056)
2008-01-18registry: Properly check return values from ldb_*() functions.Andrew Kroeger1-3/+3
There were a few cases left that attempted to detect errors from ldb_*() function calls using "(ret < 0)". As all LDB_* error codes are greater than zero, there was no chance any errors would be detected. Changed all such tests to use "(ret != LDB_SUCCESS)". (This used to be commit 0ed6f1b1628da5b922f02a5f9a6c60071b6277f2)
2008-01-18registry: Check for more specific LDB return codes, handle changing existing ↵Jelmer Vernooij1-6/+11
values better. (This used to be commit c8b22ef30c7fc0ccc15e9fc9a38fdc639fc4b976)
2008-01-07r26692: registry: Treat key and value names case-insensitively.Jelmer Vernooij1-0/+10
(This used to be commit 9fc5f098e01145db5b01efb0bf22cdddf0213d20)
2008-01-07r26689: registry: Return max_subkeynamelen, max_valnamelen and ↵Jelmer Vernooij13-44/+171
max_valbufsize in getkeyinfo(). (This used to be commit b06896d2378e536f5044dbe500a5232a89d6d0b5)
2008-01-07r26688: Fix listing remote predefined keys and subkeys. This fixes bug 3431.Jelmer Vernooij4-36/+64
(This used to be commit 846876ad32dc86fe7c367db084e76c670c61b389)