summaryrefslogtreecommitdiff
path: root/source3/registry
AgeCommit message (Collapse)AuthorFilesLines
2008-01-17Add some sectioning comments to reg_api.cMichael Adam1-0/+15
Michael (This used to be commit d3c9c273740b42e5da101f53d4df3aee70cdacf7)
2008-01-17Make utility function reg_deletekey_recursive_internal() static.Michael Adam1-4/+4
Michael (This used to be commit 3e661273229bcf021276cc0b71350acf8d8fed7c)
2008-01-17Use the proper boolean constants in reg_frontend_hilvl.cMichael Adam1-6/+6
Michael (This used to be commit 5c0a1d5d45948fdc483d6f9de31cea39e12722c6)
2008-01-17Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.Michael Adam1-21/+19
Michael (This used to be commit 36085d9004592e48b66b681f85346db15e6d9b3a)
2008-01-15Use the proper boolean functions.Michael Adam1-3/+3
Michael (This used to be commit beaa83f32bd367f1b6ec72ef80a8a258d662f523)
2008-01-15Remove some trailing spaces.Michael Adam1-10/+9
Michael (This used to be commit 1941c365b50d48fc90f0f98059b8cccf6c7a1a06)
2008-01-14Add detection for need of update to the registry db.Michael Adam6-6/+68
This only detects if the tdb sequence number has changed since the data has last been read. Michael (This used to be commit 3f081ebeadf30a7943723703ecae479e0412c60c)
2008-01-04Fix a DEBUG statement.Michael Adam1-1/+1
Michael (This used to be commit 18360b852c662d933ceff9854725f878a5de9a7d)
2008-01-04Use the proper boolean constants.Michael Adam1-9/+9
Michael (This used to be commit 2ba625e473e8eb23d692566d32a8ac965785df4e)
2008-01-04Fix crash bug in regdb_close() when called with no ref count.Günther Deschner1-0/+4
Michael, please check. Guenther (This used to be commit d6575ff5d240ec431b6e837494913dbd06e5a299)
2008-01-03Return existsing cache_tree if it has already been initialized.Michael Adam1-4/+6
So reghook_cache_init() does not leak memory when called more than once. Also, fix the return value while we are at it. Michael (This used to be commit 25f571f40a630bff5a47bba6b01e42d4e0ffed66)
2007-12-31Fix a permissions error in reg_deletekey_recursive().Michael Adam1-1/+1
Michael (This used to be commit 4a56d3d7075bd8bbd5e139c9433789ab29f6a70e)
2007-12-29Remove tiny code duplicationVolker Lendecke2-3/+4
ndr_size_security_descriptor does the same as sec_desc_size (This used to be commit bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
2007-12-16Cut down memory usage of registry initializationVolker Lendecke2-28/+39
(This used to be commit 264d5dfe9fe97db0b69d7cd04086ad8ed9f78e74)
2007-12-07Remove next_token - all uses must now be next_token_talloc.Jeremy Allison1-6/+13
No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-11-30Fix _reg_perfcount_get_instance_info()Günther Deschner1-1/+1
Guenther (This used to be commit 20c1ba23f2e2902ef7c2237c63addfef2ae75eac)
2007-11-27Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.cJeremy Allison1-1/+1
Jeremy. (This used to be commit b5a2a1e3f82a0d319fc9a1d76f5166150680f4d4)
2007-11-27Unless talloc has some new magic there is a ctx missing here.Günther Deschner1-4/+4
Guenther (This used to be commit 172f7ce96dc12cfc7d2209d8ed56aeebefd6207b)
2007-11-26Remove pstrings from nsswitch/ and registry/Jeremy Allison8-550/+704
Jeremy. (This used to be commit 331c0d6216e1a1607a49ed7eb4078e10138ec16a)
2007-11-08Remove more fstring/pstring bad useage. Go talloc !Jeremy Allison1-5/+8
Jeremy. (This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-11-06When deleting a key from the registry make sure the non-defaultGünther Deschner4-14/+32
security descriptor gets deleted as well. Guenther (This used to be commit d140d68537225b6a6a99be3d9b09354e3f6ad8c9)
2007-11-01Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter2-7/+7
The point is doing the following associations: - non discardable state data (all TDB files that may need to be backed up) go to statedir - shared data (codepage stuff) go to codepagedir The patch *does not change* the default location for these directories. So, there is no behaviour change when applying it. The main change is for samba developers who have to think when dealing with files that previously pertained to libdir whether they: - go in statedir - go in codepagedir - stay in libdir (This used to be commit d6cdbfd875bb2653e831d314726c3240beb0a96b)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison14-80/+80
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-15Correctly free memory in regfio pathsAlexander Bokovoy1-0/+4
(This used to be commit 97f9a90b823887e808cca96eca7a041f121e6111)
2007-10-11Remove bogus commentVolker Lendecke1-5/+0
(This used to be commit 142b80bf1542f212dff66a3661c13f3f6845067f)
2007-10-10r25534: Apply some constVolker Lendecke1-1/+1
Why? It moves these structs from the data into the text segment, so they will never been copy-on-write copied. Not much, but as in German you say "Kleinvieh macht auch Mist...." (This used to be commit 0141e64ad4972232de867137064d0dae62da22ee)
2007-10-10r25528: Only do transactions on registry.tdb if anything changesVolker Lendecke1-4/+48
I got annoyed by the fsync calls clobbering my harddrive when smbd started up for debugging. ... things you do on a plane without internet (This used to be commit e0927a7cbf4b806bcc93ad4af9552bc91292e78b)
2007-10-10r25417: Use DBGC_REGISTRY class.Günther Deschner14-10/+20
Guenther (This used to be commit 43ca04918a5a1b2379083dc624b346ceb8476a38)
2007-10-10r25370: Allow to delete registry keys recursively without deleting the final ↵Günther Deschner1-10/+31
key. Guenther (This used to be commit e9922cd8aeb70aebb162ad598fda76ad69226b94)
2007-10-10r25362: Add "NT Authority\System" with Full Access to the default registry ↵Günther Deschner1-2/+7
security descriptor. Guenther (This used to be commit ddc6d051115577b27529c46ff98267517218fe59)
2007-10-10r25162: Refactor further: add mapping functions betweenMichael Adam1-13/+44
REGISTRY_VALUE and struct registry_value formats for registry values. Lacking better naming, I called them regval_hilvl_to_lolvl and regval_lolvl_to_hilvl for a start. The might be useful elsewhere, so might be put into another place later on. Michael (This used to be commit 883fd7906165ca10413e4745b3beed59516adf34)
2007-10-10r25160: Refactor out and slightly clean up canonicalization of the registry ↵Michael Adam1-91/+97
value from smbconf_store_values(). Michael (This used to be commit 7761f9b3ccf0d9ae9ffe830b04c3be8451ce2112)
2007-10-10r25140: Less red bars to hurt my eyes...Michael Adam1-47/+51
(This used to be commit f935d21200294c8d29ce527300f605e721cb3620)
2007-10-10r25139: Avoid code duplication: let regval_ctr_copyvalue() call ↵Michael Adam1-37/+2
regval_ctr_addvalue(). This also corrects regval_ctr_copyvalue() in that it cannot create (invalid) regval containers with dupliacte entries... Michael (This used to be commit 2daaaaa835078c543fa12cd1819e8a3d86cf6e5e)
2007-10-10r25002: Refactor out code duplication created by the previousMichael Adam1-18/+9
unification of r24998. Michael (This used to be commit 6026d132537f2fb2a963fa54377a926fa99eeb35)
2007-10-10r24999: Use the new regval_compose() function in regval_ctr_addvalue().Michael Adam1-18/+3
Michael (This used to be commit dab9ffe602eaca478a73f3b882f543629ce3001e)
2007-10-10r24998: Add a function regval_compose() to compose a REGISTRY_VALUE fromMichael Adam2-4/+42
input data. Use this function in a first step to refactor the canonicalization code of smbconf_store_values(). Michael (This used to be commit f4caa2d7d412e2b9bb2a1ce71514551569ccf373)
2007-10-10r24996: Eliminate more trailing spaces...Michael Adam1-5/+5
(This used to be commit 1ee1b75113c7035c8882fe53981dba7cfc3aa187)
2007-10-10r24970: Polish some comments and add my (C).Michael Adam1-10/+3
Michael (This used to be commit aa043bb446ec8ab90a8e61c590be8d33b6a2d42d)
2007-10-10r24949: Remove some static buffersVolker Lendecke3-6/+6
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
2007-10-10r24632: Fix build warnings.Günther Deschner1-2/+2
Guenther (This used to be commit e9178af01d68b7cbe91157d1d196f2148eeef7ca)
2007-10-10r24630: Store Samba configuratin options only under the default name, not as ↵Michael Adam1-3/+152
aliases. This prevents creation of problematic configurations from registry editors like regedit or "net rpc registry". I will refactor the code to be somewhat more concise, but I wanted to have this in the tree, now I got it working... :-) Michael (This used to be commit 4424a030324ab646a025b50fcb89e1b5cdfcbbe8)
2007-10-10r24418: Adding reg_deleteallvalues().Günther Deschner1-0/+24
Guenther (This used to be commit f7457c6173107f1730ae2e31c5377df3dbd2454e)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell14-28/+14
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison14-14/+14
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23667: Prevent storing of forbidden parameter names in registryMichael Adam1-0/+13
configuration as values. I would really like to check whether the valuename is a valid parameter name (with lp_parameter_is_valid) here, but unfortunately, regedit cereates new values as "New Value #1" (and so on) first, before dropping into the rename box. So this is impossible here. Michael (This used to be commit 10014833da868289ae28db2e7c1edfd353ca7b2b)
2007-10-10r23591: Fix bug #4725. Don't crash when no eventlogs specified. NeedsJeremy Allison1-0/+4
merging for 3.0.25b. Jeremy. (This used to be commit ae239fec6faa79018c818506b391b829ccd685f8)
2007-10-10r23584: Use a while loop instead of a for loop without increment... :-)Michael Adam1-9/+2
Michael (This used to be commit fb4ade3b4d203eead7798b8d98938cff2abb9c29)
2007-10-10r23583: Add a utility function to recursively delete a RegistryMichael Adam1-0/+56
key with all its subkeys. (reg_deletekey will refuse to delete a key with subkeys with WERR_ACCESS_DENIED). Michael (This used to be commit 41c3ff6e277601a9c7ac29009fd89ff9c961ca46)
2007-10-10r23581: Move regkey_open_onelevel from reg_frontend to reg_api,Michael Adam2-117/+110
where it actually belongs, and make it static. Michael (This used to be commit aa702e53a7416b5599ed114089327aef8a4e35b8)