1
0
mirror of https://github.com/samba-team/samba.git synced 2025-04-30 18:53:31 +03:00

51 Commits

Author SHA1 Message Date
Andrew Tridgell
ec32b22ed5 r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for
consistency.
2007-10-10 13:09:15 -05:00
Andrew Tridgell
cf73dda652 r4479: added the function talloc_autofree_context() which returns a talloc context that
will automatically be freed on program exit. This is useful for reducing
clutter in leak reports
2007-10-10 13:08:10 -05:00
Jelmer Vernooij
2948b9750d r4390: Registry value and key names are case-insensitive
Nicer menu layout in gregedit
2007-10-10 13:07:42 -05:00
Jelmer Vernooij
cdb6980cdc r4373: Support setting values and fix a segfault 2007-10-10 13:07:39 -05:00
Jelmer Vernooij
f3e0578280 r4209: Fix several smaller bugs
Add "predef" and "set" commands in regshell

Some of the remote calls from a Windows box work now.
2007-10-10 13:07:27 -05:00
Jelmer Vernooij
8e2aa58abe r4204: Arguments to reg_del_key more like the RPC for more efficient usage
Fix small bug in regpatch
Fix segfault in regshell cmdline completion
Implement set_value and del_value in ldb backend
2007-10-10 13:07:26 -05:00
Jelmer Vernooij
f6b9ec89af r4166: More small API fixes, keep registry structs as small as possible.
Implement DelValue in the RPC server
2007-10-10 13:07:21 -05:00
Jelmer Vernooij
c37d6f3c58 r4155: More destinction between hives and predefined keys 2007-10-10 13:07:20 -05:00
Jelmer Vernooij
217e4e5841 r4154: Add definitions for HKEY_PERFORMANCE_TEXT and HKEY_PERFORMANCE_NLSTEXT
Hives and predefined keys (HKEY_*) are not necessarily the same thing.
2007-10-10 13:07:19 -05:00
Jelmer Vernooij
5f64a60374 r4141: Fix crash bug in ldb backend 2007-10-10 13:06:30 -05:00
Jelmer Vernooij
bcbfce7b01 r4140: Get rid of close_hive (replace it with talloc destructors). 2007-10-10 13:06:30 -05:00
Jelmer Vernooij
ddf7a331c5 r4137: Make *_open_key take a registry_key instead of a hive (more efficient
in some cases)
2007-10-10 13:06:30 -05:00
Andrew Tridgell
4b45d3d2e8 r4135: improve a debug message 2007-10-10 13:06:29 -05:00
Jelmer Vernooij
c169e86c1f r4132: - Bunch of rather large fixes in the registry
- Added some README files

Not everything works yet, e.g. the EnumValue test appears to be broken.
2007-10-10 13:06:29 -05:00
Andrew Tridgell
eec698254f r4055: fixed more places to use type safe allocation macros 2007-10-10 13:06:20 -05:00
Andrew Tridgell
0928b1f5b6 r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile 2007-10-10 13:06:16 -05:00
Jelmer Vernooij
0d7bb2c40b r3737: - Get rid of the register_subsystem() and register_backend() functions.
- Re-disable tdbtool (it was building fine on my Debian box but other
					machines were having problems)
2007-10-10 13:05:48 -05:00
Jelmer Vernooij
7a8244761b r3586: Fix some of the issues with the module init functions.
Both subsystems and modules can now have init functions, which can be
specified in .mk files (INIT_FUNCTION = ...)

The build system will define :
 - SUBSYSTEM_init_static_modules that calls the init functions of all statically compiled modules. Failing to load will generate an error which is not fatal
 - BINARY_init_subsystems that calls the init functions (if defined) for the subsystems the binary depends on

This removes the hack with the "static bool Initialised = " and the
"lazy_init" functions
2007-10-10 13:05:36 -05:00
Andrew Tridgell
70d2090f6b r3464: split out registry.h, rap.h and ldap_server.h 2007-10-10 13:05:17 -05:00
Andrew Tridgell
b97e395c81 r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ioctl.h) 2007-10-10 13:05:17 -05:00
Jelmer Vernooij
f8e45e1430 r3374: Couple of bug fixes 2007-10-10 13:05:03 -05:00
Jelmer Vernooij
df952e95cd r3369: More registry updates
We now pass the RPC-WINREG torture test.
Also, constructions like the following work now:

regtree <-> smbd <-> NTUSER.DAT
2007-10-10 13:05:02 -05:00
Jelmer Vernooij
313034b10d r3368: Default to rpc backend with binding "ncalrpc:" if no backend was specified in the various registry tools.
Allow opening a remote registry to partly fail (I.e. if not all hives could be opened)
2007-10-10 13:05:02 -05:00
Jelmer Vernooij
c526273df2 r3367: More registry updates.
Add support flush_key and close_hive.
2007-10-10 13:05:02 -05:00
Jelmer Vernooij
a71d51dd3b r3348: More registry fixes and additions. The following functions work right now against samba 4, at least with a ldb backend:
winreg_Open*
winreg_OpenKey
winreg_EnumKey
winreg_DeleteKey
winreg_CreateKey
2007-10-10 13:04:58 -05:00
Jelmer Vernooij
da65a248c2 r3340: Various fixes in the registry code. Implement the EnumKey call
in the server.
2007-10-10 13:04:57 -05:00
Jelmer Vernooij
5086d6b249 r2913: - Don't print hive name if it is NULL (regtree)
- Initialise hive name (reg_interface)
- Fix LDB backend (enumerating keys works now!)
2007-10-10 12:59:47 -05:00
Jelmer Vernooij
f4860afc48 r2897: Fix double registration (of the registry subsystem) bug 2007-10-10 12:59:45 -05:00
Andrew Tridgell
015db2ed8c r2672: don't call a variable "dup" as that conflicts with a standard system call name 2007-10-10 12:59:20 -05:00
Andrew Tridgell
8dc23821c9 r2671: we're getting too many errors caused by the talloc_realloc() API not
taking a context (so when you pass a NULL pointer you end up with
memory in a top level context). Fixed it by changing the API to take a
context. The context is only used if the pointer you are reallocing is
NULL.
2007-10-10 12:59:20 -05:00
Jelmer Vernooij
2762ed3b9b r2518: Some long overdue changes:
- Samba4-style code in lib/registry (struct registry_key instead of REG_KEY, etc)
 - Use hives (like Windows has drives) instead of one root key (like a Unix FS)
 - usability fixes in the GTK utilities (autodetect the username,
	enable/disable options, etc)
 - fix gwsam compile
 - several bugfixes in the registry rpc code
 - do charset conversion in nt4 registry backend
2007-10-10 12:59:01 -05:00
Jelmer Vernooij
8056f4a9a7 r2254: Fix a couple of compiler warnings... 2007-10-10 12:58:35 -05:00
Andrew Tridgell
e35bb094c5 r1983: a completely new implementation of talloc
This version does the following:

  1) talloc_free(), talloc_realloc() and talloc_steal() lose their
     (redundent) first arguments

  2) you can use _any_ talloc pointer as a talloc context to allocate
     more memory. This allows you to create complex data structures
     where the top level structure is the logical parent of the next
     level down, and those are the parents of the level below
     that. Then destroy either the lot with a single talloc_free() or
     destroy any sub-part with a talloc_free() of that part

  3) you can name any pointer. Use talloc_named() which is just like
     talloc() but takes the printf style name argument as well as the
     parent context and the size.

The whole thing ends up being a very simple piece of code, although
some of the pointer walking gets hairy.

So far, I'm just using the new talloc() like the old one. The next
step is to actually take advantage of the new interface
properly. Expect some new commits soon that simplify some common
coding styles in samba4 by using the new talloc().
2007-10-10 12:58:14 -05:00
Jelmer Vernooij
456f97eed0 r1118: Read-only enumeration of keys in the LDB backend works now :-) 2007-10-10 12:56:38 -05:00
Jelmer Vernooij
3df8ff6cf1 r955: Update debian package rules... builds now 2007-10-10 12:56:22 -05:00
Stefan Metzmacher
0e5517d937 r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
2007-10-10 12:56:15 -05:00
Jelmer Vernooij
e4f6ca8522 r833: Compile error 2007-10-10 12:53:54 -05:00
Jelmer Vernooij
9228aeeafd r832: Only show menu items for backends if they're present 2007-10-10 12:53:54 -05:00
Jelmer Vernooij
25c27b176c r828: Some fixes in the core and regshell concerning hives and
unicode
2007-10-10 12:53:53 -05:00
Jelmer Vernooij
8cd1b6bc70 r825: - Introduce support for multiple roots (or 'hives')
- Clean up rpc backend (possible now that multiple hives are supported)
2007-10-10 12:53:53 -05:00
Stefan Metzmacher
c78a2ddb28 r665: merge over the new build system from my tmp branch
to the main SAMBA_4_0 tree.

NOTE: that it's not completely ready, but it's functional:-)

metze
2007-10-10 12:53:36 -05:00
Stefan Metzmacher
cd609eb2fe r425: add some comments to ugly code parts
we should take care of 'char *' and 'const char *' and DO NOT mix them!

Jelmer: please fix this

metze
2007-10-10 12:51:38 -05:00
Jelmer Vernooij
f832d6776c r187: RPC registry backend fixes 2007-10-10 12:51:15 -05:00
Jelmer Vernooij
88911bbcca r183: More bugfixes 2007-10-10 12:51:15 -05:00
Jelmer Vernooij
4d6ce64856 r181: Parsing windows '95 registry files now works (including values) 2007-10-10 12:51:15 -05:00
Jelmer Vernooij
aa739e8d3c r168: - Cleanups in rpc backend
- Small fixess in nt4 and dir backends
- Start on w95 file backend
2007-10-10 12:51:13 -05:00
Jelmer Vernooij
1a7de762c6 r166: Fix enumerating values in nt4 backend 2007-10-10 12:51:13 -05:00
Jelmer Vernooij
3adffa0217 r128: Another registry update. Changes:
- Start with the LDB backend
- The API is now more windows-like, which should make it easier to use
  in rpc_server
- Added a GTK+ front-end
- Added some more IDL

More updates will follow, especially in the RPC field..
2007-10-10 12:51:09 -05:00
Jelmer Vernooij
d85b8fb3b7 r36: - Start using memory pools in the registry library
- Remove obsolete file
2007-10-10 12:50:40 -05:00
Jelmer Vernooij
98224f5436 r31: More registry updates. regdiff/regpatch work now. 2007-10-10 12:50:40 -05:00