Age | Commit message (Collapse) | Author | Files | Lines |
|
Michael
(This used to be commit 18360b852c662d933ceff9854725f878a5de9a7d)
|
|
Michael
(This used to be commit 2ba625e473e8eb23d692566d32a8ac965785df4e)
|
|
Michael, please check.
Guenther
(This used to be commit d6575ff5d240ec431b6e837494913dbd06e5a299)
|
|
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)
|
|
Michael
(This used to be commit 4a56d3d7075bd8bbd5e139c9433789ab29f6a70e)
|
|
ndr_size_security_descriptor does the same as sec_desc_size
(This used to be commit bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
|
|
(This used to be commit 264d5dfe9fe97db0b69d7cd04086ad8ed9f78e74)
|
|
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
|
|
Guenther
(This used to be commit 20c1ba23f2e2902ef7c2237c63addfef2ae75eac)
|
|
Jeremy.
(This used to be commit b5a2a1e3f82a0d319fc9a1d76f5166150680f4d4)
|
|
Guenther
(This used to be commit 172f7ce96dc12cfc7d2209d8ed56aeebefd6207b)
|
|
Jeremy.
(This used to be commit 331c0d6216e1a1607a49ed7eb4078e10138ec16a)
|
|
Jeremy.
(This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
|
|
security descriptor gets deleted as well.
Guenther
(This used to be commit d140d68537225b6a6a99be3d9b09354e3f6ad8c9)
|
|
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)
|
|
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)
|
|
(This used to be commit 97f9a90b823887e808cca96eca7a041f121e6111)
|
|
(This used to be commit 142b80bf1542f212dff66a3661c13f3f6845067f)
|
|
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)
|
|
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)
|
|
Guenther
(This used to be commit 43ca04918a5a1b2379083dc624b346ceb8476a38)
|
|
key.
Guenther
(This used to be commit e9922cd8aeb70aebb162ad598fda76ad69226b94)
|
|
security
descriptor.
Guenther
(This used to be commit ddc6d051115577b27529c46ff98267517218fe59)
|
|
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)
|
|
value
from smbconf_store_values().
Michael
(This used to be commit 7761f9b3ccf0d9ae9ffe830b04c3be8451ce2112)
|
|
(This used to be commit f935d21200294c8d29ce527300f605e721cb3620)
|
|
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)
|
|
unification of r24998.
Michael
(This used to be commit 6026d132537f2fb2a963fa54377a926fa99eeb35)
|
|
Michael
(This used to be commit dab9ffe602eaca478a73f3b882f543629ce3001e)
|
|
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)
|
|
(This used to be commit 1ee1b75113c7035c8882fe53981dba7cfc3aa187)
|
|
Michael
(This used to be commit aa043bb446ec8ab90a8e61c590be8d33b6a2d42d)
|
|
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
|
|
Guenther
(This used to be commit e9178af01d68b7cbe91157d1d196f2148eeef7ca)
|
|
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)
|
|
Guenther
(This used to be commit f7457c6173107f1730ae2e31c5377df3dbd2454e)
|
|
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
|
|
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
|
|
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)
|
|
merging for 3.0.25b.
Jeremy.
(This used to be commit ae239fec6faa79018c818506b391b829ccd685f8)
|
|
Michael
(This used to be commit fb4ade3b4d203eead7798b8d98938cff2abb9c29)
|
|
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)
|
|
where it actually belongs, and make it static.
Michael
(This used to be commit aa702e53a7416b5599ed114089327aef8a4e35b8)
|
|
returns WERR_ACCESS_DENIED. This adapts reg_deletekey to behave
the same way.
Michael
(This used to be commit 0c9cb69b45e8c51b8c3fa0b0d034a6cad2374055)
|
|
reg #defines use "REG_" prefix. Michael - please check
gcc warnings on compiles.
Jeremy.
(This used to be commit 7885b68bb5df0ebe290feca0e74b4a20ef59e718)
|
|
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)
|
|
(To be used in other place in subsequent commit.)
Michael
(This used to be commit 6fd71140499e30b8fd0f083301512db7b8c2f236)
|
|
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)
|
|
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)
|
|
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)
|