1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

328 Commits

Author SHA1 Message Date
Jelmer Vernooij
7a1eec6358 r24667: Finally merge the registry improvements that Wilco Baan Hofman and I have
been working on for at least half a year now. Contains the following
improvements:

 * proper layering (finally!) for the registry library. Distinction is
   now made between 'real' backends (local, remote, wine, etc) and
   the low-level hive backends (regf, creg, ldb, ...) that are only used
   by the local registry backend
 * tests for all important hive and registry operations
 * re-enable RPC-WINREG tests (still needs more work though, as
							   some return values aren't checked yet)
 * write support for REGF files
 * dir backend now supports setting/reading values, creating keys
 * support for storing security descriptors
 * remove CREG backend as it was incomplete, didn't match the data model
   and wasn't used at all anyway
 * support for parsing ADM files as used by the policy editor (see lib/policy)
 * support for parsing PREG files (format used by .POL files)
 * new streaming interface for registry diffs (improves speed and memory usage
	for regdiff/regpatch significantly)

   ... and fixes a large number of bugs in the registry code
2007-10-10 15:02:34 -05:00
Stefan Metzmacher
84651aee81 r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
2007-10-10 15:02:15 -05:00
Stefan Metzmacher
82aad0e42c r24491: base_type() isn't supported anymore and the default for enums
is now uint16...

metze
2007-10-10 15:02:00 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
96ef5259c6 r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett
2007-10-10 14:53:26 -05:00
Jelmer Vernooij
a90202abca r22762: Some ldb_map changes:
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
e0e35965d1 r22404: more dependencies which should be private
metze
2007-10-10 14:51:14 -05:00
James Peach
0db4256a47 r22029: Make sure we respect $srcdir correctly for the srcdir != builddir case. 2007-10-10 14:49:42 -05:00
Jelmer Vernooij
dc4428553e r21837: Make dcerpc_mgmt a separate library again, as the linker leaves it out when it's part of dcerpc. 2007-10-10 14:49:35 -05:00
Jelmer Vernooij
7d10e192ca r21834: Remove unnecessary includes 2007-10-10 14:49:34 -05:00
Jelmer Vernooij
47a17a741a r21830: Fix header installation, remove proto header with a single prototype. 2007-10-10 14:49:33 -05:00
Jelmer Vernooij
02ae0b9cde r21828: Hardcode prototypes, as they're a public API. 2007-10-10 14:49:33 -05:00
Jelmer Vernooij
0ae6d18ebe r21685: Add some unit tests for the registry utility functions. 2007-10-10 14:49:11 -05:00
Jelmer Vernooij
02481df3e8 r21683: Remove the gconf registry backend.
It's already been disabled for a while, as it required some compile flags that broke other things.

While this backend was an interesting proof-of-concept, this module doesn't really add any value.
It's not possible to map between windows registry and gconf semantics and I can't think of
any reason why you would want to do so.
2007-10-10 14:49:10 -05:00
Jelmer Vernooij
4d755fb5d7 r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier. 2007-10-10 14:49:05 -05:00
Jelmer Vernooij
1ad0f99a43 r21433: Get rid of the COM support code - it's not used and unmaintained. We can
always bring it back if we need to. This code was getting in the way while
refactoring.

Add some tests for TDR.

Get rid of typedef in lib/registry/tdr_regf.idl and fix the
TDR code to be able to deal with it.
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
15a4b81ba0 r21386: Run all NDR tests in the buildfarm, import some functions from Samba3's IDL. 2007-10-10 14:48:24 -05:00
Jelmer Vernooij
e782035251 r21299: Fix the build for those that don't have talloc.h installed. 2007-10-10 14:48:05 -05:00
Jelmer Vernooij
07652f65ce r21297: Remove the GTK+ tools and library from the main repository. They are now maintained separately in bzr at http://people.samba.org/bzr/jelmer/samba-gtk
This also adds some more headers to the list that is installed and a couple of extra #include lines so these
headers can be used externally without problems.
2007-10-10 14:48:04 -05:00
Simo Sorce
3929c086d5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
2007-10-10 14:28:22 -05:00
Simo Sorce
a580c871d3 r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
2007-10-10 14:28:22 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
Simo Sorce
0fa5d4bc22 r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
2007-10-10 14:24:38 -05:00
Andrew Tridgell
d8af519c2d r19400: fixed a valgrind error in the directory registry backend (name was
used after closedir(), which invalidates the name)
2007-10-10 14:21:25 -05:00
Simo Sorce
6fad80bb09 r19299: Fix possible memleaks 2007-10-10 14:21:04 -05:00
Andrew Tridgell
6cce709d08 r18971: avoid strndup is a few places. Fixes a minor memory leak, and should
fix RPC-LSA on AIX.
2007-10-10 14:20:25 -05:00
Andrew Tridgell
1c0a3de398 r18584: found one of the fd leaks. The registry backend was using a
talloc(NULL, xxx) to allocate the registry context. That had two
consequences

1) it was a massive memory leak, as all winreg operations leaked their
   entire context (including an open ldb database) every time

2) event_context_find() never found the exsting event context, so we
   used a new event context each time, which called epoll_create()
   each time, which caused a fd to be allocated
2007-10-10 14:18:52 -05:00
Gerald Carter
694677dafe r18561: Fix [out] pointers in winreg IDL 2007-10-10 14:18:46 -05:00
Andrew Tridgell
8123046460 r18328: when we bail out early, set *offset to 0 2007-10-10 14:18:10 -05:00
Andrew Tridgell
08562d6ebe r18324: fixed a uninitialised variable 2007-10-10 14:18:09 -05:00
Andrew Tridgell
dee6551dc3 r18298: fixed mmap failure test 2007-10-10 14:18:04 -05:00
Stefan Metzmacher
135d096776 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
2007-10-10 14:17:50 -05:00
Andrew Tridgell
dc1369b2ad r18176: reg_util.c needs LIBREPLACE for strndup 2007-10-10 14:17:46 -05:00
Jelmer Vernooij
8b622c5ded r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available. 2007-10-10 14:17:45 -05:00
Andrew Tridgell
18542f184f r18130: the move to system/ in libreplace broke some things ... should be
happier now
2007-10-10 14:17:37 -05:00
Jelmer Vernooij
1adf65b4d7 r18121: Simplify m4 code, hopefully fix Samba4 build problems. 2007-10-10 14:17:35 -05:00
Andrew Tridgell
c079cedb08 r18117: first steps in making samba4 use libreplace 2007-10-10 14:17:34 -05:00
Jelmer Vernooij
f7afa1cb77 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
3953d3566e r17773: this macros are unsed, with compiler warnings
metze
2007-10-10 14:16:39 -05:00
Stefan Metzmacher
21142ad7a2 r17713: fix compiler warnings
metze
2007-10-10 14:16:30 -05:00
Simo Sorce
ad75cf8695 r17516: Change helper function names to make more clear what they are meant to do 2007-10-10 14:15:31 -05:00
Gerald Carter
26a2fa97e4 r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for correct grammar 2007-10-10 14:08:59 -05:00
Jelmer Vernooij
3a5d3eb62c r15878: Add explicit initialization to make the IBM checker happy. 2007-10-10 14:08:36 -05:00
Jelmer Vernooij
dd0b912fdd r15877: Fix error message - caught by the IBM checker 2007-10-10 14:08:36 -05:00
Andrew Tridgell
61c6100617 r15854: more talloc_set_destructor() typesafe fixes 2007-10-10 14:08:32 -05:00
Jelmer Vernooij
1354333fd1 r15810: Fix uninitialized variable error, caught by the IBM checker. 2007-10-10 14:08:26 -05:00
Jelmer Vernooij
2b65c490e4 r15807: Fix incorrect initialization. Very nice catch by the IBM Checker. 2007-10-10 14:08:25 -05:00
Jelmer Vernooij
2e1ce01899 r15806: Remove some unnecessary nesting making the function harder to read. 2007-10-10 14:08:25 -05:00
Jelmer Vernooij
bdc6dd3750 r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
dece573d47 r15659: Implement opening a key by name (significant better performance
in some situations). Patch by Wilco Baan Hofman.
2007-10-10 14:08:04 -05:00