summaryrefslogtreecommitdiff
path: root/source3/registry
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-10-10r23578: When calling DeleteKey for a key that has subkey(s), WindowsMichael Adam1-4/+17
returns WERR_ACCESS_DENIED. This adapts reg_deletekey to behave the same way. Michael (This used to be commit 0c9cb69b45e8c51b8c3fa0b0d034a6cad2374055)
2007-10-10r23512: Fix conflict in #define for SECDESC_PREFIX. Ensure allJeremy Allison1-5/+5
reg #defines use "REG_" prefix. Michael - please check gcc warnings on compiles. Jeremy. (This used to be commit 7885b68bb5df0ebe290feca0e74b4a20ef59e718)
2007-10-10r23509: This activates the global options from the registry in loadparm.Michael Adam1-7/+2
The global options are stored as values in the subkey "global" of the SMBCONF registry key. The activation is accomplished in smb.conf though a new special semantic of the "include" parameter: "include = registry" triggers the processing of the registry global options exactly at the position of the include statement. Options read from the registry take the same precedence as parameters loaded from a file via include. Need to reload the registry globals is detected by watching the tdb sequence number. Registry shares are automatically activated when the registry globals are processed. So a "registry only" configuration can be realized by an smb.conf that looks as follows: ================================ [global] include = registry ================================ The global options and registry shares can be conveniently edited with the "net conf" utility. Caveat: A possible pitfall consists in using "include = registry" together with the "lock directory" directive in the registry. This problem will be addressed in the next time. Note on the code: Processing of the registry options is accomplished by a function process_registry_globals() in loadparm.c The current version is only an interim solution: It is handcoded instead of using the infrastructure of reg_api.c. The reason for this is that using reg_api still has too large linker dependencies, bloating virtually all targets by PASSDB_OBJ, SMBLDAP_OBJ, GROUPDB_OBJ and LDB stuff. A version of process_registry_globals that uses reg_api is included but commented out. The goal is to eventually refactor and restructure the registry code so that one can use the reg_api to access only the registry tdb and not link all the dynamic backends with all their linking implications. (This used to be commit 24b0cbcb3741dd14b04728448a85cc04a057e7d0)
2007-10-10r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.cMichael Adam1-7/+0
(To be used in other place in subsequent commit.) Michael (This used to be commit 6fd71140499e30b8fd0f083301512db7b8c2f236)
2007-10-10r23504: Use tdb_wrap_open (instead of usual tdb_open) in reg_db.Michael Adam1-27/+22
This eliminates the need of maintaining reg_db's own reference counter for the tdb. Maybe as a next step... Michael (This used to be commit 31d64767fc8a73be1f6b81e2712d687897f812a0)
2007-10-10r23468: Open registry.tdb with sequence number.Michael Adam1-3/+15
Add a function to retrieve the registry db sequence number. This is in preparation of loadparm integration of registry global smb.conf options: this will allow to detect changes in order to trigger reload. Michael (This used to be commit ebe2ea8f22bfe0855beee087af771c690db443c1)
2007-10-10r23465: There was this diff between reg_printing in 3_0 and 3_0_26:Michael Adam1-1/+4
before writing to secdesc_buf->sd, 3_0 checked secdesc_buf->sd while 3_0_26 checked secdesc_buf->sd_size. This patch makes both revisions check _both_ befor writing. Jerry / Jeremy : please check if this is correct! Michael (This used to be commit dfc42178708144ef0b9273438ee15451078d3f4e)
2007-10-10r23460: Re-add whitespace to reduce diff between branches.Michael Adam1-1/+1
Sorry for the noise... Michael (This used to be commit c7d004dec4822c0d8e5c7fd6519850f906c7bb1a)
2007-10-10r23459: Remove one superfluous cast.Michael Adam1-1/+1
(This used to be commit beed87550786052891969f6014088c17a5d77157)
2007-10-10r23458: Cosmetic fix in debug output.Michael Adam1-1/+1
(This used to be commit 03dbdb561a16a6e3dbd99ee29aac598457873002)
2007-10-10r23379: Whitespace cosmetics, to reduce irritating diffs...Michael Adam1-1/+1
Michael (This used to be commit df30f8d5c2999590aabe1e87f92fbdbafa7052aa)
2007-10-10r23080: Fix bug #4637 - we hads missed some cases whereJeremy Allison1-2/+6
we were calling PRS_ALLOC_MEM with zero count. Jeremy. (This used to be commit 9a10736e6fa276ca4b0726fbb7baf0daafbdc46d)
2007-10-10r22590: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison1-2/+6
That should be it.... Jeremy. (This used to be commit 603233a98bbf65467c8b4f04719d771c70b3b4c9)
2007-10-10r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison1-2/+6
Jeremy. (This used to be commit 8968808c3b5b0208cbad9ac92eaf948f2c546dd9)
2007-10-10r22588: Make all uses of TALLOC_MEMDUP consistent.Jeremy Allison1-4/+20
Jeremy. (This used to be commit 8ad13718af0ba1fcb10a6f1631b1ed3cb8d11175)
2007-10-10r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead ofMichael Adam1-1/+1
WERR_BAD_FILE when all items have been successfully enumerated. Besides seeming the reasonable code to return, this is what I have seen from w2k3, w2k, wxp. (This used to be commit e09e0d642d98165257c7c43ca2634a430772dcee)
2007-10-10r22135: Check in most of Michael Adam's net conf utility. A good share of ↵Volker Lendecke3-346/+375
this patch is moving functions around to fix some linker dependencies for the registry. Michael, I've renamed your auth_utils2.c to token_utils.c. Thanks! Volker (This used to be commit 9de16f25c1c3e0b203da47391772ef2e2fe291ac)
2007-10-10r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2-8/+8
and fix all compiler warnings in the users metze (This used to be commit 3a28443079c141a6ce8182c65b56ca210e34f37f)
2007-10-10r22001: change prototype of dump_data(), so that it takes unsigned char * now,Stefan Metzmacher1-2/+2
which matches what samba4 has. also fix all the callers to prevent compiler warnings metze (This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7)
2007-10-10r21979: make use of string_tdb_data()Stefan Metzmacher1-6/+3
to avoid creating the TDB_DATA struct from strings "by hand" note: we can't use the tdb_*_bystring functions here, as the key isn't null-terminated here... metze (This used to be commit 29b42ea89cbdd9f2c12fa448b116c49669467faf)
2007-10-10r21978: make use of tdb_*_bystring()Stefan Metzmacher1-4/+2
to avoid creating the TDB_DATA struct from strings "by hand" metze (This used to be commit 1a0599d7aadef651e4d5b88b59c95e8a118dfa5e)
2007-10-10r21977: little cosmetic change to remove a local var that's not really neededStefan Metzmacher1-4/+2
metze (This used to be commit 71c3880e8924c57dcd60573d628b8eb29cee6055)
2007-10-10r21225: Couple of fixes from Martin Zielinski mz@seh.de,Jeremy Allison1-1/+1
one typo, one to make sure that time initialization is done before modules that depend on it (printer initialization). Jeremy. (This used to be commit 6df32b4a6a9abd40e963c188b4c8769f15a0ab9b)
2007-10-10r21219: Speed up the initial startup time of smbd on systems with loaded diskVolker Lendecke1-3/+32
subsystems. See the comment in the diff. Volker (This used to be commit 92fdb1193de8e7c857603e4fcd4a92b9a0a0f3bd)
2007-10-10r20626: Fix a memleak found by the IBM checker -- not on 3.0.24Volker Lendecke1-0/+1
(This used to be commit 9d0a789e32e6a6501421edb25bc8197c9e06846d)