1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

19 Commits

Author SHA1 Message Date
Michael Adam
48745e3fbd registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c
This function is only used inside registry code.

Michael
2008-04-12 02:41:20 +02:00
Tim Prouty
59124382d2 Cleanup size_t return values in convert_string_allocate
This patch is the first iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
2008-04-11 11:33:33 +02:00
Michael Adam
98151fd3e1 libsmbconf: move registry_smbconf_valname_forbidden() to the registry backend
from util_reg.c - no other callers left

Michael
2008-04-10 01:29:00 +02:00
Michael Adam
8dad80b471 Allow parameter "include" in registry based configuration (again).
This is for instance important to allow includes with %I to setup
individual logging (e.g.) for certain clients.

Michael
2008-03-13 23:08:25 +01:00
Michael Adam
1c215325d1 Use the proper boolean constants.
Michael
2008-02-14 16:32:29 +01:00
Michael Adam
2ea55c03b2 Add "config backend" to the parameters forbidden in registry config.
Make registry based configs more fool-proof.

Michael
2008-01-16 17:31:44 +01:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Günther Deschner
43ca04918a r25417: Use DBGC_REGISTRY class.
Guenther
2007-10-10 12:31:04 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Michael Adam
00be68a841 r23641: Put check for forbidden values in smbconf into a function.
(This will be used in a next step to prevent storing these
values in reg_smbconf.c.)

Michael
2007-10-10 12:23:40 -05:00
Michael Adam
6fd7114049 r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.c
(To be used in other place in subsequent commit.)

Michael
2007-10-10 12:23:22 -05:00
Michael Adam
efd3e2bfb7 r23485: This checkin consists mostly of refactorings in preparation of the
activation of global registry options in loadparm.c, mainly to
extract functionality from net_conf.c to be made availabel elsewhere
and to minimize linker dependencies.

In detail:

* move functions registry_push/pull_value from lib/util_reg.c to new file
  lib/util_reg_api.c

* create a fake user token consisting of builtin administrators sid and
  se_disk_operators privilege by hand instead of using get_root_nt_token()
  to minimize linker deps for bin/net.

  + new function registry_create_admin_token() in new lib/util_reg_smbconf.c
  + move dup_nt_token from auth/token_util.c to new file lib/util_nttoken.c
  + adapt net_conf.c and Makefile.in accordingly.

* split lib/profiles.c into two parts: new file lib/profiles_basic.c
  takes all the low level mask manipulation and format conversion functions
  (se_priv, privset, luid). the privs array is completely hidden from
  profiles.c by adding some access-functions. some mask-functions are not
  static anymore.

  Generally, SID- and LUID-related stuff that has more dependencies
  is kept in lib/profiles.c

* Move initialization of regdb from net_conf.c into a function
  registry_init_regdb() in lib/util_reg_smbconf.c.

Michael
2007-10-10 12:23:21 -05:00
Volker Lendecke
fea52801de r19991: Sorry for this 2000-liner...
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
2007-10-10 12:16:18 -05:00
Volker Lendecke
3047a4b92c r19827: Move registry_push/pull_value to lib/util_reg.c 2007-10-10 12:16:00 -05:00
Volker Lendecke
6793301751 r19811: Decode REG_MULTI_SZ and REG_BINARY 2007-10-10 12:15:57 -05:00
Gerald Carter
4f79d8c83d r18963: * Move parts of registry headers that were still in
use to reg_objects.h
* Remove unused rpc headers
2007-10-10 12:14:51 -05:00
Jeremy Allison
53e97bf928 r18793: Fix BE string handling in the auto-generated
code. Should now work again with ASU.
Jeremy.
2007-10-10 12:00:58 -05:00
Jeremy Allison
9dafb7f48c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
2007-10-10 11:19:14 -05:00