| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
merging for 3.0.25b.
Jeremy.
|
|
|
|
| |
Michael
|
|
|
|
|
|
|
| |
key with all its subkeys. (reg_deletekey will refuse to
delete a key with subkeys with WERR_ACCESS_DENIED).
Michael
|
|
|
|
|
|
| |
where it actually belongs, and make it static.
Michael
|
|
|
|
|
|
|
| |
returns WERR_ACCESS_DENIED. This adapts reg_deletekey to behave
the same way.
Michael
|
|
|
|
|
|
| |
reg #defines use "REG_" prefix. Michael - please check
gcc warnings on compiles.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
(To be used in other place in subsequent commit.)
Michael
|
|
|
|
|
|
|
| |
This eliminates the need of maintaining reg_db's own
reference counter for the tdb. Maybe as a next step...
Michael
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Sorry for the noise...
Michael
|
| |
|
| |
|
|
|
|
| |
Michael
|
|
|
|
|
| |
we were calling PRS_ALLOC_MEM with zero count.
Jeremy.
|
|
|
|
|
| |
That should be it....
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
| |
and fix all compiler warnings in the users
metze
|
|
|
|
|
|
|
|
| |
which matches what samba4 has.
also fix all the callers to prevent compiler warnings
metze
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
to avoid creating the TDB_DATA struct from strings "by hand"
metze
|
|
|
|
| |
metze
|
|
|
|
|
|
|
| |
one typo, one to make sure that time initialization
is done before modules that depend on it (printer
initialization).
Jeremy.
|
|
|
|
|
|
| |
subsystems. See the comment in the diff.
Volker
|
| |
|
|
|
|
| |
more no previous prototype warnings
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
registry
stuff. Revert the last change.
This needs better fixing.
Volker
|
|
|
|
|
|
| |
Initializing the reg_db now uses reg_createkey and reg_setvalue.
Volker
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
arguments. This also replaces regkey_close_internal by TALLOC_FREE.
Volker
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
while
playing with regedit.exe.
Volker
|
| |
|