1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

333 Commits

Author SHA1 Message Date
Michael Adam
5c0a1d5d45 Use the proper boolean constants in reg_frontend_hilvl.c
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
36085d9004 Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.
Michael
2008-01-17 16:25:11 +01:00
Michael Adam
beaa83f32b Use the proper boolean functions.
Michael
2008-01-15 14:56:00 +01:00
Michael Adam
1941c365b5 Remove some trailing spaces.
Michael
2008-01-15 14:55:04 +01:00
Michael Adam
3f081ebead Add detection for need of update to the registry db.
This only detects if the tdb sequence number has changed
since the data has last been read.

Michael
2008-01-14 19:38:01 +01:00
Michael Adam
18360b852c Fix a DEBUG statement.
Michael
2008-01-04 21:35:29 +01:00
Michael Adam
2ba625e473 Use the proper boolean constants.
Michael
2008-01-04 15:26:05 +01:00
Günther Deschner
d6575ff5d2 Fix crash bug in regdb_close() when called with no ref count.
Michael, please check.

Guenther
2008-01-04 12:58:09 +01:00
Michael Adam
25f571f40a Return existsing cache_tree if it has already been initialized.
So reghook_cache_init() does not leak memory when called more
than once.
Also, fix the return value while we are at it.

Michael
2008-01-03 12:07:02 +01:00
Michael Adam
4a56d3d707 Fix a permissions error in reg_deletekey_recursive().
Michael
2007-12-31 03:25:54 +01:00
Volker Lendecke
bc3bd7a8e7 Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
2007-12-29 23:13:26 +01:00
Volker Lendecke
264d5dfe9f Cut down memory usage of registry initialization 2007-12-16 14:02:46 +01:00
Jeremy Allison
ec003f3936 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
2007-12-07 17:32:32 -08:00
Günther Deschner
20c1ba23f2 Fix _reg_perfcount_get_instance_info()
Guenther
2007-11-30 02:16:46 +01:00
Jeremy Allison
b5a2a1e3f8 Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.c
Jeremy.
2007-11-27 19:05:08 -08:00
Günther Deschner
172f7ce96d Unless talloc has some new magic there is a ctx missing here.
Guenther
2007-11-27 18:01:56 +01:00
Jeremy Allison
331c0d6216 Remove pstrings from nsswitch/ and registry/
Jeremy.
2007-11-26 17:24:56 -08:00
Jeremy Allison
2a0173743d Remove more fstring/pstring bad useage. Go talloc !
Jeremy.
2007-11-08 17:25:45 -08:00
Günther Deschner
d140d68537 When deleting a key from the registry make sure the non-default
security descriptor gets deleted as well.

Guenther
2007-11-06 00:50:47 +01:00
Gerald (Jerry) Carter
d6cdbfd875 Patch 2 of 3 from Debian Samba packagers:
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
2007-11-01 15:53:44 -04: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
Alexander Bokovoy
97f9a90b82 Correctly free memory in regfio paths 2007-10-15 17:41:09 -05:00
Volker Lendecke
142b80bf15 Remove bogus comment 2007-10-11 15:36:32 +02:00
Volker Lendecke
0141e64ad4 r25534: Apply some const
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...."
2007-10-10 12:31:12 -05:00
Volker Lendecke
e0927a7cbf r25528: Only do transactions on registry.tdb if anything changes
I got annoyed by the fsync calls clobbering my harddrive when smbd started up
for debugging.

... things you do on a plane without internet
2007-10-10 12:31:12 -05:00
Günther Deschner
43ca04918a r25417: Use DBGC_REGISTRY class.
Guenther
2007-10-10 12:31:04 -05:00
Günther Deschner
e9922cd8ae r25370: Allow to delete registry keys recursively without deleting the final key.
Guenther
2007-10-10 12:31:01 -05:00
Günther Deschner
ddc6d05111 r25362: Add "NT Authority\System" with Full Access to the default registry security
descriptor.

Guenther
2007-10-10 12:31:00 -05:00
Michael Adam
883fd79061 r25162: Refactor further: add mapping functions between
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
2007-10-10 12:30:47 -05:00
Michael Adam
7761f9b3cc r25160: Refactor out and slightly clean up canonicalization of the registry value
from smbconf_store_values().

Michael
2007-10-10 12:30:46 -05:00
Michael Adam
f935d21200 r25140: Less red bars to hurt my eyes... 2007-10-10 12:30:44 -05:00
Michael Adam
2daaaaa835 r25139: Avoid code duplication: let regval_ctr_copyvalue() call regval_ctr_addvalue().
This also corrects regval_ctr_copyvalue() in that it cannot create (invalid)
regval containers with dupliacte entries...

Michael
2007-10-10 12:30:44 -05:00
Michael Adam
6026d13253 r25002: Refactor out code duplication created by the previous
unification of r24998.

Michael
2007-10-10 12:30:32 -05:00
Michael Adam
dab9ffe602 r24999: Use the new regval_compose() function in regval_ctr_addvalue().
Michael
2007-10-10 12:30:32 -05:00
Michael Adam
f4caa2d7d4 r24998: Add a function regval_compose() to compose a REGISTRY_VALUE from
input data. Use this function in a first step to refactor
the canonicalization code of smbconf_store_values().

Michael
2007-10-10 12:30:32 -05:00
Michael Adam
1ee1b75113 r24996: Eliminate more trailing spaces... 2007-10-10 12:30:32 -05:00
Michael Adam
aa043bb446 r24970: Polish some comments and add my (C).
Michael
2007-10-10 12:30:30 -05:00
Volker Lendecke
df648d47ff r24949: Remove some static buffers 2007-10-10 12:30:29 -05:00
Günther Deschner
e9178af01d r24632: Fix build warnings.
Guenther
2007-10-10 12:30:12 -05:00
Michael Adam
4424a03032 r24630: Store Samba configuratin options only under the default name, not as 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
2007-10-10 12:30:12 -05:00
Günther Deschner
f7457c6173 r24418: Adding reg_deleteallvalues().
Guenther
2007-10-10 12:29:44 -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
10014833da r23667: Prevent storing of forbidden parameter names in registry
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
2007-10-10 12:23:44 -05:00
Jeremy Allison
ae239fec6f r23591: Fix bug #4725. Don't crash when no eventlogs specified. Needs
merging for 3.0.25b.
Jeremy.
2007-10-10 12:23:33 -05:00
Michael Adam
fb4ade3b4d r23584: Use a while loop instead of a for loop without increment... :-)
Michael
2007-10-10 12:23:32 -05:00
Michael Adam
41c3ff6e27 r23583: Add a utility function to recursively delete a Registry
key with all its subkeys. (reg_deletekey will refuse to
delete a key with subkeys with WERR_ACCESS_DENIED).

Michael
2007-10-10 12:23:32 -05:00
Michael Adam
aa702e53a7 r23581: Move regkey_open_onelevel from reg_frontend to reg_api,
where it actually belongs, and make it static.

Michael
2007-10-10 12:23:32 -05:00
Michael Adam
0c9cb69b45 r23578: When calling DeleteKey for a key that has subkey(s), Windows
returns WERR_ACCESS_DENIED. This adapts reg_deletekey to behave
the same way.

Michael
2007-10-10 12:23:32 -05:00
Jeremy Allison
7885b68bb5 r23512: Fix conflict in #define for SECDESC_PREFIX. Ensure all
reg #defines use "REG_" prefix. Michael - please check
gcc warnings on compiles.
Jeremy.
2007-10-10 12:23:23 -05:00