1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
Commit Graph

284 Commits

Author SHA1 Message Date
Jelmer Vernooij
a29c24f180 r3367: More registry updates.
Add support flush_key and close_hive.
(This used to be commit c526273df2)
2007-10-10 13:05:02 -05:00
Jelmer Vernooij
7ce7137ad4 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
(This used to be commit a71d51dd3b)
2007-10-10 13:04:58 -05:00
Jelmer Vernooij
479bf22c81 r3340: Various fixes in the registry code. Implement the EnumKey call
in the server.
(This used to be commit da65a248c2)
2007-10-10 13:04:57 -05:00
Andrew Tridgell
a6ae640313 r3323: more warning reductions
(This used to be commit 5921587ec2)
2007-10-10 13:04:55 -05:00
Jelmer Vernooij
b9956de1b1 r3164: Look up ncalrpc identifiers using the EPMAPPER. ncalrpc now works nicely :-)
The various interface that support ncalrpc work nicely when tested
with smbtorture and ncalrpc.

Running RPC-SAMR against local smbd here is slightly faster using ncalrpc:
ncalrpc: 		1.8 sec
ncacn_ip_tcp:	1.9 sec
ncacn_np:		2.5 sec
(This used to be commit 2cfc8f24ce)
2007-10-10 13:02:28 -05:00
Jelmer Vernooij
fe8aaa5d07 r2914: ... and support enumerating values (data is not handled yet, only the names)
(This used to be commit b3bc055ac7)
2007-10-10 12:59:47 -05:00
Jelmer Vernooij
aed95ba66f r2913: - Don't print hive name if it is NULL (regtree)
- Initialise hive name (reg_interface)
- Fix LDB backend (enumerating keys works now!)
(This used to be commit 5086d6b249)
2007-10-10 12:59:47 -05:00
Jelmer Vernooij
6df5d77c89 r2911: Fix bug in opening relative keys
(This used to be commit e7c256a92c)
2007-10-10 12:59:47 -05:00
Jelmer Vernooij
e2a4771909 r2898: - Support enumerating remote registry values
- Some LDB updates
(This used to be commit 4b5bf739f5)
2007-10-10 12:59:45 -05:00
Jelmer Vernooij
ffa0cf3af0 r2897: Fix double registration (of the registry subsystem) bug
(This used to be commit f4860afc48)
2007-10-10 12:59:45 -05:00
Andrew Tridgell
7d32679e96 r2857: this commit gets rid of smb_ucs2_t, wpstring and fpstring, plus lots of associated functions.
The motivation for this change was to avoid having to convert to/from
ucs2 strings for so many operations. Doing that was slow, used many
static buffers, and was also incorrect as it didn't cope properly with
unicode codepoints above 65536 (which could not be represented
correctly as smb_ucs2_t chars)

The two core functions that allowed this change are next_codepoint()
and push_codepoint(). These functions allow you to correctly walk a
arbitrary multi-byte string a character at a time without converting
the whole string to ucs2.

While doing this cleanup I also fixed several ucs2 string handling
bugs. See the commit for details.

The following code (which counts the number of occuraces of 'c' in a
string) shows how to use the new interface:

size_t count_chars(const char *s, char c)
{
	size_t count = 0;

	while (*s) {
		size_t size;
		codepoint_t c2 = next_codepoint(s, &size);
		if (c2 == c) count++;
		s += size;
	}

	return count;
}
(This used to be commit 814881f0e5)
2007-10-10 12:59:39 -05:00
Stefan Metzmacher
f63e3ae1f7 r2686: remove unused gtk+ check
metze
(This used to be commit d1e8b340a9)
2007-10-10 12:59:22 -05:00
Andrew Tridgell
d13bbcf9e3 r2672: don't call a variable "dup" as that conflicts with a standard system call name
(This used to be commit 015db2ed8c)
2007-10-10 12:59:20 -05:00
Andrew Tridgell
5b44130afa 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.
(This used to be commit 8dc23821c9)
2007-10-10 12:59:20 -05:00
Andrew Tridgell
368802bc86 r2623: don't do pointer arithmetic on void*, as it doesn't work with non-GNU compilers
(This used to be commit c2be7b696c)
2007-10-10 12:59:13 -05:00
Jelmer Vernooij
369a5d64e4 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
(This used to be commit 2762ed3b9b)
2007-10-10 12:59:01 -05:00
Jelmer Vernooij
93454ff3d8 r2257: Tab completion support in regshell (complete command names and key names
in the current key)
(This used to be commit 83f9f8eaa4)
2007-10-10 12:58:35 -05:00
Jelmer Vernooij
9c69fe6522 r2254: Fix a couple of compiler warnings...
(This used to be commit 8056f4a9a7)
2007-10-10 12:58:35 -05:00
Andrew Bartlett
dcd43a4cbe r1990: Fix breakage caused by the recent talloc changes. (Failure to process
an SPNEGO login from WinXP at least).

talloc_asprintf_append() lost an argument, but because TALLOC_CTX is
now a void*, this was not picked up by the compiler.

I've tested the login (asn1), but not the registry/gtk changes.

Andrew Bartlett
(This used to be commit 4294be4405)
2007-10-10 12:58:15 -05:00
Andrew Tridgell
b83ba93eae 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().
(This used to be commit e35bb094c5)
2007-10-10 12:58:14 -05:00
Volker Lendecke
664f50e81c r1894: Convert // to /* */
(This used to be commit 5dc793b2b4)
2007-10-10 12:58:09 -05:00
Jelmer Vernooij
e3fd2d0492 r1432: - Move the various Gtk-specific parts from the registry code into a directory gtk/
- Move common "Samba-Gtk" code into gtk/common/ ("Connect to RPC pipe"-dialog, etc)
- Add a new utility 'gwcrontab' that can currently list, delete and add 'atsvc' jobs. It still displays times and dates as integers though, will fix that later.

Some screenshots available at:
 http://samba.org/~jelmer/gwcrontab/
(This used to be commit d321cf20f1)
2007-10-10 12:56:55 -05:00
Jelmer Vernooij
0b817ae851 r1147: Support enumerating values
(This used to be commit 3af8419fa4)
2007-10-10 12:56:41 -05:00
Jelmer Vernooij
8dcb4aa084 r1119: Saner keyboard shortcuts
(This used to be commit 971941acc7)
2007-10-10 12:56:38 -05:00
Jelmer Vernooij
9503af8d64 r1118: Read-only enumeration of keys in the LDB backend works now :-)
(This used to be commit 456f97eed0)
2007-10-10 12:56:38 -05:00
Andrew Tridgell
7ea6a0b1fc r1040: make sure main() doesn't get auto-prototyped
(This used to be commit 7c2279e4bc)
2007-10-10 12:56:33 -05:00
Jelmer Vernooij
39e465a096 r1035: Support shared modules again
(This used to be commit 7949dc25ab)
2007-10-10 12:56:31 -05:00
Jelmer Vernooij
fe3bcd4588 r1032: Fix RPC backend segfault
(This used to be commit db902bff3c)
2007-10-10 12:56:31 -05:00
Stefan Metzmacher
fa2e9ec311 r960: convert 'unsigned int' to uint_t in the most places
metze
(This used to be commit 18062d2ed9)
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
b88fc7a391 r959: - a static WERROR function should return a WERROR:-)
- some minor format fixes

metze
(This used to be commit 72d9c70fdd)
2007-10-10 12:56:23 -05:00
Jelmer Vernooij
9fba08b621 r955: Update debian package rules... builds now
(This used to be commit 3df8ff6cf1)
2007-10-10 12:56:22 -05:00
Stefan Metzmacher
45e93c19ef r943: change samba4 to use 'uint8_t' instead of 'unsigned char'
metze
(This used to be commit b5378803fd)
2007-10-10 12:56:21 -05:00
Andrew Tridgell
47864891ff r893: a few more _t conversions
(This used to be commit 66eb46dbb1)
2007-10-10 12:56:18 -05:00
Stefan Metzmacher
fcd718c7d8 r890: convert samba4 to use [u]int8_t instead of [u]int8
metze
(This used to be commit 2986c5f08c)
2007-10-10 12:56:16 -05:00
Stefan Metzmacher
f9d8f8843d r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
(This used to be commit 0e5517d937)
2007-10-10 12:56:15 -05:00
Andrew Tridgell
579c13da43 r873: converted samba4 to use real 64 bit integers instead of
structures. This was suggested by metze recently.

I checked on the build farm and all the machines we have support 64
bit ints, and support the LL suffix for 64 bit constants. I suspect
some won't support strtoll() and related functions, so we will
probably need replacements for those.
(This used to be commit 9a9244a1c6)
2007-10-10 12:56:14 -05:00
Stefan Metzmacher
69e40486f9 r857: fix the build of gregedit (typo:-)
metze
(This used to be commit 44de741038)
2007-10-10 12:56:12 -05:00
Stefan Metzmacher
d17ca56aed r851: convert lib/registry/ to a config.mk file
metze
(This used to be commit b556760146)
2007-10-10 12:56:12 -05:00
Jelmer Vernooij
25ed82e7ee r834: Fix gconf and dir backends
(This used to be commit fe5166ee88)
2007-10-10 12:53:54 -05:00
Jelmer Vernooij
f0d7ae39c0 r833: Compile error
(This used to be commit e4f6ca8522)
2007-10-10 12:53:54 -05:00
Jelmer Vernooij
b4c23f5a52 r832: Only show menu items for backends if they're present
(This used to be commit 9228aeeafd)
2007-10-10 12:53:54 -05:00
Jelmer Vernooij
a64be8dbdd r830: Use pull_ucs2_talloc() instead of acnv_u2ux() and fix a memory leak.
(This used to be commit ad88561bec)
2007-10-10 12:53:53 -05:00
Jelmer Vernooij
4a137a7cf1 r829: Implement 'hive' command
(This used to be commit 2a87981bd0)
2007-10-10 12:53:53 -05:00
Jelmer Vernooij
f371d24542 r828: Some fixes in the core and regshell concerning hives and
unicode
(This used to be commit 25c27b176c)
2007-10-10 12:53:53 -05:00
Jelmer Vernooij
bf52e242f5 r825: - Introduce support for multiple roots (or 'hives')
- Clean up rpc backend (possible now that multiple hives are supported)
(This used to be commit 8cd1b6bc70)
2007-10-10 12:53:53 -05:00
Jelmer Vernooij
1ca75ec3bb r819: Fix seg fault in rpc backend, found by Andrew Bartlett
(This used to be commit d4cc4b3d68)
2007-10-10 12:53:52 -05:00
Jelmer Vernooij
53f2f8254b r734: Fix crash bug
(This used to be commit 178cd902fc)
2007-10-10 12:53:45 -05:00
Stefan Metzmacher
77c30ebe9e r700: fix SMB_LIBRARY() to disable the lib by default
metze
(This used to be commit b6ac3021f2)
2007-10-10 12:53:43 -05:00
Jelmer Vernooij
072ef868c3 r693: Make static
(This used to be commit 30d3915c76)
2007-10-10 12:53:43 -05:00
Jelmer Vernooij
76d50e0d26 r692: Add libwinregistry
(This used to be commit 0ace3bf289)
2007-10-10 12:53:43 -05:00
Jelmer Vernooij
0048335d9e r686: - Add SMB_EXT_LIB_FROM_PKGCONFIG()
- Build gregedit and registry_gconf again if the required libs are found (gconf and gtk)
(This used to be commit a63b704c36)
2007-10-10 12:53:42 -05:00
Stefan Metzmacher
14832874ee r681: don't init r.out.result.v
metze
(This used to be commit f7ded36699)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
0b7f81e0f6 r673: disable registry_gconf for now
metze
(This used to be commit 5bbf0c2407)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
0a690c12a1 r672: disable gregedit for now
metze
(This used to be commit 63600a2a9b)
2007-10-10 12:53:41 -05:00
Stefan Metzmacher
9c4a451463 r668: fix the build
metze
(This used to be commit ba5e71f59e)
2007-10-10 12:53:40 -05:00
Stefan Metzmacher
f236700ef6 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
(This used to be commit c78a2ddb28)
2007-10-10 12:53:36 -05:00
Jelmer Vernooij
b2d1f78907 r655: Fix if() logic
(This used to be commit 09096cfc3e)
2007-10-10 12:51:56 -05:00
Stefan Metzmacher
6a8355a628 r467: hopefully get the buildfarm compiling fine now...
metze
(This used to be commit d15f0e18bb)
2007-10-10 12:51:44 -05:00
Stefan Metzmacher
4c991c6edd 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
(This used to be commit cd609eb2fe)
2007-10-10 12:51:38 -05:00
Tim Potter
f3d3b3c809 r355: Fix a bunch of compiler warnings in the registry code.
(This used to be commit 0be7a866dc)
2007-10-10 12:51:34 -05:00
Jelmer Vernooij
6de32ddc2d r274: Be somewhat more POSIX compatible
(This used to be commit c98a234d02)
2007-10-10 12:51:18 -05:00
Herb Lewis
c7a60a178f r200: fix compile errors
(This used to be commit c64132ddc6)
2007-10-10 12:51:16 -05:00
Jelmer Vernooij
2199a6ffa9 r199: More registry rpc updates
(This used to be commit 02ddf78e55)
2007-10-10 12:51:16 -05:00
Jelmer Vernooij
17ddb68b54 r190: More RPC updates
(This used to be commit 0a67057e96)
2007-10-10 12:51:16 -05:00
Jelmer Vernooij
198a92cb77 r187: RPC registry backend fixes
(This used to be commit f832d6776c)
2007-10-10 12:51:15 -05:00
Jelmer Vernooij
b4d6cbd380 r183: More bugfixes
(This used to be commit 88911bbcca)
2007-10-10 12:51:15 -05:00
Jelmer Vernooij
4019324f76 r182: Fix a couple of segfaults
(This used to be commit db5d7062e6)
2007-10-10 12:51:15 -05:00
Jelmer Vernooij
49d54f0298 r181: Parsing windows '95 registry files now works (including values)
(This used to be commit 4d6ce64856)
2007-10-10 12:51:15 -05:00
Jelmer Vernooij
24cd656ab0 r174: Win95 registry files (like USER.DAT) can now be partially parsed
(This used to be commit dd31d3bcbf)
2007-10-10 12:51:15 -05:00
Jelmer Vernooij
9d6a284567 r169: Fix gregedit
(This used to be commit 32036375de)
2007-10-10 12:51:13 -05:00
Jelmer Vernooij
639afabf40 r168: - Cleanups in rpc backend
- Small fixess in nt4 and dir backends
- Start on w95 file backend
(This used to be commit aa739e8d3c)
2007-10-10 12:51:13 -05:00
Jelmer Vernooij
c60c5ebb91 r166: Fix enumerating values in nt4 backend
(This used to be commit 1a7de762c6)
2007-10-10 12:51:13 -05:00
Jelmer Vernooij
07afafd45d r165: Add support for viewing registry values in gregedit
(This used to be commit 1d8a6d762a)
2007-10-10 12:51:13 -05:00
Jelmer Vernooij
6df152f964 r164: Viewing remote registries with gregedit works now
(This used to be commit 697560a117)
2007-10-10 12:51:13 -05:00
Jelmer Vernooij
491ce98cc4 r162: Minor bugfixes:
- Don't keep windows open after errors
 - Don't build ldb backend by default
(This used to be commit 1bb64782c6)
2007-10-10 12:51:12 -05:00
Andrew Tridgell
42889e5e1e r134: - added ldb to the build of smbd
- fixed build of the ldb registry backend
(This used to be commit 0b66590330)
2007-10-10 12:51:10 -05:00
Jelmer Vernooij
9cbbf2d552 r129: Convert other utilities to new API
(This used to be commit 95c9852b16)
2007-10-10 12:51:09 -05:00
Jelmer Vernooij
aebfb3b9f4 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..
(This used to be commit 3adffa0217)
2007-10-10 12:51:09 -05:00
Stefan Metzmacher
509bbf4383 r125: use AC_CONFIG_FILES() instead of AC_OUTPUT()
we should have only one AC_OUTPUT() at the end of configure.in

metze
(This used to be commit 60aa14d463)
2007-10-10 12:51:09 -05:00
Jelmer Vernooij
b96025eb15 r61: - Implement first call in the winreg rpc server
- Add some initial implementation of the ldb backend
- More checks in the winreg torture test
(This used to be commit ae2b63b6f1)
2007-10-10 12:50:41 -05:00
Jelmer Vernooij
2542ed0ac7 r46: Add CreateKey function (still working on it)
(This used to be commit 9f13b7c60c)
2007-10-10 12:50:40 -05:00
Jelmer Vernooij
5c49a23a29 r36: - Start using memory pools in the registry library
- Remove obsolete file
(This used to be commit d85b8fb3b7)
2007-10-10 12:50:40 -05:00
Jelmer Vernooij
69c19afb62 r31: More registry updates. regdiff/regpatch work now.
(This used to be commit 98224f5436)
2007-10-10 12:50:40 -05:00
Jelmer Vernooij
c424c2b857 r20: Add the registry library. Still needs a lot of work,
see source/lib/registry/TODO for details.
(This used to be commit 7cab3a00d7)
2007-10-10 12:50:33 -05:00