summaryrefslogtreecommitdiffstats
path: root/source/registry
Commit message (Collapse)AuthorAgeFilesLines
* [GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.samba-misc-tags/initial-v3-0-testGerald (Jerry) Carter2007-10-1010-1334/+400
|
* r23667: Prevent storing of forbidden parameter names in registryMichael Adam2007-10-101-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
* r23591: Fix bug #4725. Don't crash when no eventlogs specified. NeedsJeremy Allison2007-10-101-0/+4
| | | | | merging for 3.0.25b. Jeremy.
* r23584: Use a while loop instead of a for loop without increment... :-)Michael Adam2007-10-101-9/+2
| | | | Michael
* r23583: Add a utility function to recursively delete a RegistryMichael Adam2007-10-101-0/+56
| | | | | | | key with all its subkeys. (reg_deletekey will refuse to delete a key with subkeys with WERR_ACCESS_DENIED). Michael
* r23581: Move regkey_open_onelevel from reg_frontend to reg_api,Michael Adam2007-10-102-117/+110
| | | | | | where it actually belongs, and make it static. Michael
* r23578: When calling DeleteKey for a key that has subkey(s), WindowsMichael Adam2007-10-101-4/+17
| | | | | | | returns WERR_ACCESS_DENIED. This adapts reg_deletekey to behave the same way. Michael
* r23512: Fix conflict in #define for SECDESC_PREFIX. Ensure allJeremy Allison2007-10-101-5/+5
| | | | | | reg #defines use "REG_" prefix. Michael - please check gcc warnings on compiles. Jeremy.
* r23509: This activates the global options from the registry in loadparm.Michael Adam2007-10-101-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.
* r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.cMichael Adam2007-10-101-7/+0
| | | | | | (To be used in other place in subsequent commit.) Michael
* r23504: Use tdb_wrap_open (instead of usual tdb_open) in reg_db.Michael Adam2007-10-101-27/+22
| | | | | | | This eliminates the need of maintaining reg_db's own reference counter for the tdb. Maybe as a next step... Michael
* r23468: Open registry.tdb with sequence number.Michael Adam2007-10-101-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
* r23465: There was this diff between reg_printing in 3_0 and 3_0_26:Michael Adam2007-10-101-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
* r23460: Re-add whitespace to reduce diff between branches.Michael Adam2007-10-101-1/+1
| | | | | | Sorry for the noise... Michael
* r23459: Remove one superfluous cast.Michael Adam2007-10-101-1/+1
|
* r23458: Cosmetic fix in debug output.Michael Adam2007-10-101-1/+1
|
* r23379: Whitespace cosmetics, to reduce irritating diffs...Michael Adam2007-10-101-1/+1
| | | | Michael
* r23080: Fix bug #4637 - we hads missed some cases whereJeremy Allison2007-10-101-2/+6
| | | | | we were calling PRS_ALLOC_MEM with zero count. Jeremy.
* r22590: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-10-101-2/+6
| | | | | That should be it.... Jeremy.
* r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison2007-10-101-2/+6
| | | | Jeremy.
* r22588: Make all uses of TALLOC_MEMDUP consistent.Jeremy Allison2007-10-101-4/+20
| | | | Jeremy.
* r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead ofMichael Adam2007-10-101-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.
* r22135: Check in most of Michael Adam's net conf utility. A good share of ↵Volker Lendecke2007-10-103-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
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-102-8/+8
| | | | | | and fix all compiler warnings in the users metze
* r22001: change prototype of dump_data(), so that it takes unsigned char * now,Stefan Metzmacher2007-10-101-2/+2
| | | | | | | | which matches what samba4 has. also fix all the callers to prevent compiler warnings metze
* r21979: make use of string_tdb_data()Stefan Metzmacher2007-10-101-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
* r21978: make use of tdb_*_bystring()Stefan Metzmacher2007-10-101-4/+2
| | | | | | to avoid creating the TDB_DATA struct from strings "by hand" metze
* r21977: little cosmetic change to remove a local var that's not really neededStefan Metzmacher2007-10-101-4/+2
| | | | metze
* r21225: Couple of fixes from Martin Zielinski mz@seh.de,Jeremy Allison2007-10-101-1/+1
| | | | | | | one typo, one to make sure that time initialization is done before modules that depend on it (printer initialization). Jeremy.
* r21219: Speed up the initial startup time of smbd on systems with loaded diskVolker Lendecke2007-10-101-3/+32
| | | | | | subsystems. See the comment in the diff. Volker
* r20626: Fix a memleak found by the IBM checker -- not on 3.0.24Volker Lendecke2007-10-101-0/+1
|
* r20269: merge -r20264:20267 from SAMBA_3_0_24Herb Lewis2007-10-101-0/+2
| | | | more no previous prototype warnings
* r20210: registry_fetch_values is not needed anymore, fix typoVolker Lendecke2007-10-102-58/+1
|
* r20209: Fix two memleaksVolker Lendecke2007-10-101-4/+7
|
* r20037: Reduce code size slightly by shuffling stuff aroundVolker Lendecke2007-10-102-116/+68
|
* r20020: Arglll... eventlogadm links against reg_db but not the rest of the ↵Volker Lendecke2007-10-102-106/+91
| | | | | | | | | | registry stuff. Revert the last change. This needs better fixing. Volker
* r20019: Replace one set of tricky code by calls to another set of tricky code:Volker Lendecke2007-10-102-91/+106
| | | | | | Initializing the reg_db now uses reg_createkey and reg_setvalue. Volker
* r20018: Fix a memleak in reg_createkeyVolker Lendecke2007-10-101-2/+4
|
* r20016: Add two utility functions for easy opening/creating registry keysVolker Lendecke2007-10-101-1/+95
|
* r20005: reg_open_path should become the replacement for regkey_open_internal.Volker Lendecke2007-10-101-0/+58
|
* r20004: Remove a const, "name" is allocated anywayVolker Lendecke2007-10-101-2/+1
|
* r19991: Sorry for this 2000-liner...Volker Lendecke2007-10-102-33/+541
| | | | | | | | | | | | | | The main thing here is a rewrite of srv_winreg_nt.c. The core functionality has moved to registry/reg_api.c which is then usable by the rest of Samba as well. On that way it fixes creating keys with more than one element in the path. This did not work before. Two things that sneaked in (sorry :-) is the change of some routines from NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal. Volker
* r19990: Fix commentVolker Lendecke2007-10-101-1/+1
|
* r19963: Add 'registry shares = yes' and registry key security descriptors.Volker Lendecke2007-10-105-58/+334
|
* r19948: Fix a memleakVolker Lendecke2007-10-101-1/+3
|
* r19947: Change regkey_open_internal to take the parent key and a talloc_ctx asVolker Lendecke2007-10-101-35/+49
| | | | | | arguments. This also replaces regkey_close_internal by TALLOC_FREE. Volker
* r19913: Fix a const warningVolker Lendecke2007-10-101-1/+1
|
* r19912: Move the subkey cache to srv_winreg_nt.cVolker Lendecke2007-10-101-57/+0
|
* r19872: Move the value cache to srv_winreg_nt.c. Fix some minor issues found ↵Volker Lendecke2007-10-101-54/+0
| | | | | | | | while playing with regedit.exe. Volker
* r19858: Fix a memleak, add a constVolker Lendecke2007-10-101-1/+2
|