obnox/samba-ctdb.git
12 years agov3-6-ctdb: bump vendor level to 22 3.6.0-ctdb-22
Christian Ambach [Thu, 25 Aug 2011 11:52:04 +0000 (13:52 +0200)]
v3-6-ctdb: bump vendor level to 22

12 years agos3:winbindd fix a return code check
Christian Ambach [Wed, 24 Aug 2011 14:21:37 +0000 (16:21 +0200)]
s3:winbindd fix a return code check

talloc_traverse_dict will return with -1 in case of an error and
might return positive values that indicate the count of found
entries

12 years agos3:smbcontrol: let smbd pass the idmap msg to its children for convenience
Gregor Beck [Wed, 24 Aug 2011 08:52:01 +0000 (10:52 +0200)]
s3:smbcontrol: let smbd pass the idmap msg to its children for convenience

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:registry: fix the v2_to_v3 upgrade code so that it does not create value list...
Michael Adam [Tue, 23 Aug 2011 23:14:22 +0000 (01:14 +0200)]
s3:registry: fix the v2_to_v3 upgrade code so that it does not create value list security records for the INFO/version key ...

12 years agos3:registry: fix the v1_to_v2 upgrade code so that it does not normalize the INFO...
Michael Adam [Tue, 23 Aug 2011 23:13:47 +0000 (01:13 +0200)]
s3:registry: fix the v1_to_v2 upgrade code so that it does not normalize the INFO/version key ...

12 years agos3:registry: define a constant REGDB_VERSION_KEYNAME for the key INFO/version (and...
Michael Adam [Tue, 23 Aug 2011 23:12:28 +0000 (01:12 +0200)]
s3:registry: define a constant REGDB_VERSION_KEYNAME for the key INFO/version (and use it)

12 years agos3:registry: hand db context in to v2_to_v3 upgrade code via private_data
Michael Adam [Thu, 25 Aug 2011 15:18:12 +0000 (17:18 +0200)]
s3:registry: hand db context in to v2_to_v3 upgrade code via private_data

This also fixes the earlier faulty handing in of a useless stackframe
memory context via private_data.

12 years agos3:registry: fix broken use of dbwrap store record in v1_to_v2 upgrade code
Michael Adam [Thu, 25 Aug 2011 15:12:33 +0000 (17:12 +0200)]
s3:registry: fix broken use of dbwrap store record in v1_to_v2 upgrade code

This also fixes broken private_data parameter for the traverse function
(making use of it): Originally a memory context was handed in but was not used.

12 years agos3:net let "net registry check" be a little more verbose
Gregor Beck [Thu, 25 Aug 2011 14:32:50 +0000 (16:32 +0200)]
s3:net let "net registry check" be a little more verbose

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:net fix commandline help of "net registry check"
Gregor Beck [Thu, 25 Aug 2011 14:28:16 +0000 (16:28 +0200)]
s3:net fix commandline help of "net registry check"

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:doc manpage for "net registry check"
Gregor Beck [Thu, 25 Aug 2011 14:26:25 +0000 (16:26 +0200)]
s3:doc manpage for "net registry check"

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:net: registry check ignore __db_sequence_number__ records
Gregor Beck [Tue, 23 Aug 2011 17:10:43 +0000 (19:10 +0200)]
s3:net: registry check ignore __db_sequence_number__ records

12 years agos3:net: registry check handle INFO records
Gregor Beck [Tue, 23 Aug 2011 17:09:33 +0000 (19:09 +0200)]
s3:net: registry check handle INFO records

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:net: check return value of check_ctx_create()
Gregor Beck [Tue, 23 Aug 2011 16:31:08 +0000 (18:31 +0200)]
s3:net: check return value of check_ctx_create()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agov3-6-ctdb: VERSION: Bump the ctdb vendor patch level to 21 3.6.0-ctdb-21
Michael Adam [Tue, 23 Aug 2011 12:36:52 +0000 (14:36 +0200)]
v3-6-ctdb: VERSION: Bump the ctdb vendor patch level to 21

12 years agos3:net add command "registry check"
Gregor Beck [Thu, 30 Jun 2011 10:08:16 +0000 (12:08 +0200)]
s3:net add command "registry check"

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:net: factor out interact_edit()
Gregor Beck [Thu, 18 Aug 2011 12:13:28 +0000 (14:13 +0200)]
s3:net: factor out interact_edit()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:utils change data_blob_dup_talloc() to take a DATA_BLOB by value
Gregor Beck [Thu, 7 Jul 2011 12:50:47 +0000 (14:50 +0200)]
s3:utils change data_blob_dup_talloc() to take a DATA_BLOB by value

12 years agos3:registry add function srprs_hive()
Gregor Beck [Tue, 12 Jul 2011 11:04:37 +0000 (13:04 +0200)]
s3:registry add function srprs_hive()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: fix db_rbt_traverse() to return the record count on success
Gregor Beck [Wed, 17 Aug 2011 09:44:12 +0000 (11:44 +0200)]
s3:dbwrap: fix db_rbt_traverse() to return the record count on success

this makes it consistent with documented behaviour of tdb_traverse()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_rbt
Gregor Beck [Tue, 16 Aug 2011 12:55:30 +0000 (14:55 +0200)]
s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_rbt

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_tdb
Gregor Beck [Tue, 16 Aug 2011 12:43:29 +0000 (14:43 +0200)]
s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_tdb

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add function dbwrap_wipe()
Gregor Beck [Tue, 16 Aug 2011 12:39:19 +0000 (14:39 +0200)]
s3:dbwrap: add function dbwrap_wipe()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_exists implementation to dbwrap_rbt
Gregor Beck [Mon, 4 Jul 2011 08:22:46 +0000 (10:22 +0200)]
s3:dbwrap: add specific dbwrap_exists implementation to dbwrap_rbt

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: factor out db_rpt_search_internal
Gregor Beck [Mon, 4 Jul 2011 07:54:31 +0000 (09:54 +0200)]
s3:dbwrap: factor out db_rpt_search_internal

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add specific dbwrap_exists implementation to dbwrap_tdb
Gregor Beck [Mon, 4 Jul 2011 08:27:17 +0000 (10:27 +0200)]
s3:dbwrap: add specific dbwrap_exists implementation to dbwrap_tdb

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:dbwrap: add function dbwrap_exists()
Gregor Beck [Mon, 4 Jul 2011 08:15:44 +0000 (10:15 +0200)]
s3:dbwrap: add function dbwrap_exists()

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:smbcacls fix leaking talloc stackframce on tcon failure
Gregor Beck [Tue, 14 Jun 2011 11:19:59 +0000 (13:19 +0200)]
s3:smbcacls fix leaking talloc stackframce on tcon failure

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:smbcacls fix possible SEGFAULT
Gregor Beck [Tue, 14 Jun 2011 11:56:22 +0000 (13:56 +0200)]
s3:smbcacls fix possible SEGFAULT

sddl_encode returns NULL on failure

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:smbcacls add option domain-sid
Gregor Beck [Thu, 9 Jun 2011 13:29:32 +0000 (15:29 +0200)]
s3:smbcacls add option domain-sid

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:smbcacls get_domain_sid for sddl parsing/formating from lsarpc
Gregor Beck [Thu, 9 Jun 2011 12:32:27 +0000 (14:32 +0200)]
s3:smbcacls get_domain_sid for sddl parsing/formating from lsarpc

get_global_sid panics if we are not root and may give the wrong answer anyway.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:smbcacls pretty print acl control field
Gregor Beck [Tue, 7 Jun 2011 08:54:16 +0000 (10:54 +0200)]
s3:smbcacls pretty print acl control field

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agov3-6-ctdb: VERSION: Bump the ctdb vendor patch level to 20 3.6.0-ctdb-20
Michael Adam [Mon, 15 Aug 2011 15:40:21 +0000 (17:40 +0200)]
v3-6-ctdb: VERSION: Bump the ctdb vendor patch level to 20

12 years agov3-6-ctdb: VERSION bump vendor patch level to 19
Volker Lendecke [Tue, 9 Aug 2011 14:54:46 +0000 (16:54 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 19

12 years agov3-6-ctdb: VERSION bump vendor patch level to 18
Volker Lendecke [Tue, 9 Aug 2011 08:46:42 +0000 (10:46 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 18

12 years agov3-6-ctdb: bump vendor patch level to 17
Volker Lendecke [Wed, 3 Aug 2011 09:26:26 +0000 (11:26 +0200)]
v3-6-ctdb: bump vendor patch level to 17

12 years agov3-6-ctdb: VERSION: Bump vendor patch level to 16
Michael Adam [Wed, 27 Jul 2011 11:07:56 +0000 (13:07 +0200)]
v3-6-ctdb: VERSION: Bump vendor patch level to 16

12 years agov3-6-ctdb: bump vendor patch level to 15
Michael Adam [Tue, 21 Jun 2011 15:45:49 +0000 (17:45 +0200)]
v3-6-ctdb: bump vendor patch level to 15

12 years agov3-6-ctdb: bump vendor patch level to 14
Michael Adam [Tue, 21 Jun 2011 15:45:49 +0000 (17:45 +0200)]
v3-6-ctdb: bump vendor patch level to 14

12 years agov3-6-ctdb: VERSION bump vendor patch level to 13
Michael Adam [Thu, 9 Jun 2011 15:16:53 +0000 (17:16 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 13

12 years agov3-6-ctdb: VERSION bump vendor patch level to 12
Michael Adam [Wed, 30 Mar 2011 14:40:48 +0000 (16:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 12

12 years agov3-6-ctdb: VERSION bump vendor patch level to 11
Volker Lendecke [Mon, 16 May 2011 09:40:46 +0000 (11:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 11

12 years agov3-6-ctdb: VERSION bump vendor patch level to 10
Volker Lendecke [Wed, 27 Apr 2011 12:23:51 +0000 (14:23 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 10

12 years agov3-6-ctdb: VERSION bump vendor patch level to 9
Volker Lendecke [Mon, 18 Apr 2011 09:44:13 +0000 (11:44 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 9

12 years agov3-6-ctdb: packaging(RHEL-CTDB): package the gpfs_prefetch vfs module
Volker Lendecke [Fri, 5 Mar 2010 15:10:49 +0000 (16:10 +0100)]
v3-6-ctdb: packaging(RHEL-CTDB): package the gpfs_prefetch vfs module

12 years agov3-6-ctdb: s3:vfs: Add a gpfs_prefetch module.
Volker Lendecke [Fri, 21 Jan 2011 13:07:15 +0000 (14:07 +0100)]
v3-6-ctdb: s3:vfs: Add a gpfs_prefetch module.

This can not go upstream yet because it uses the gpfs_fcntl call
from the non-GPL libgpfs.

12 years agov3-6-ctdb: VERSION bump vendor patch level to 8
Michael Adam [Wed, 30 Mar 2011 14:40:48 +0000 (16:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 8

12 years agov3-6-ctdb: VERSION bump vendor patch level to 7
Volker Lendecke [Wed, 30 Mar 2011 14:40:48 +0000 (16:40 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 7

12 years agov3-6-ctdb: VERSION bump vendor patch level to 6
Volker Lendecke [Tue, 29 Mar 2011 10:49:40 +0000 (12:49 +0200)]
v3-6-ctdb: VERSION bump vendor patch level to 6

12 years agov3-6-ctdb: VERSION bump vendor patch level to 5
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 5

12 years agov3-6-ctdb: VERSION bump vendor patch level to 4
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 4

12 years agov3-6-ctdb: VERSION bump vendor patch level to 3
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 3

12 years agov3-6-ctdb: VERSION bump vendor patch level to 2
Michael Adam [Wed, 9 Feb 2011 23:37:30 +0000 (00:37 +0100)]
v3-6-ctdb: VERSION bump vendor patch level to 2

12 years agov3-6-ctdb: s3: Add the "net groupfilter" command
Volker Lendecke [Sun, 14 Dec 2008 23:16:56 +0000 (00:16 +0100)]
v3-6-ctdb: s3: Add the "net groupfilter" command

This is the start of a bad hack for even worse systems: Many Unix systems still
have the NGROUPS problem: A user can not be member of more than a very limited
number of groups. Solaris for example limits this to 16 by default. Many
Windows environments have a *LOT* more groups per user, some even go to
hundreds. Whether that is efficient is debatable, but it's there.

This patch implements the

"net groupfilter"

command with the "addsid", "delsid" and "list" subcommands. If any SIDs are
present according to "net groupfilter list" (they are stored in secrets.tdb),
then only the SIDs in that list are converted to GIDs for a user at login time.

This gives the Administrator the possibility to define a set of groups that are
used on the Unix box, making sure that no user is in more than NGROUPS of those
at a time.

This patch is incomplete in the sense that winbind is not aware of this, only
smbd. So it is kind of an emergency hack for smbd-only machines.

Volker

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agov3-6-ctdb: apply patch from v3-0-ctdb to special case root in libnss_winbind
Andrew Tridgell [Mon, 21 Apr 2008 16:41:32 +0000 (18:41 +0200)]
v3-6-ctdb: apply patch from v3-0-ctdb to special case root in libnss_winbind

This is needed to ensure the administrator can login to a node even
when ctdbd and winbindd are stuck

12 years agov3-6-ctdb: add README.v3-6-ctdb
Michael Adam [Tue, 18 Jan 2011 12:19:55 +0000 (13:19 +0100)]
v3-6-ctdb: add README.v3-6-ctdb

12 years agov3-6-ctdb: VERSION: add vendor-suffix "ctdb" and vendor-patch level "1"
Michael Adam [Tue, 23 Jun 2009 14:41:38 +0000 (16:41 +0200)]
v3-6-ctdb: VERSION: add vendor-suffix "ctdb" and vendor-patch level "1"

Michael

following the versioning scheme of the v3-2-ctdb branch

Michael

12 years agopackaging(RHEL-CTDB): the ldbtools manpages have been removed. adapt the spec file
Michael Adam [Wed, 27 Jul 2011 12:39:54 +0000 (14:39 +0200)]
packaging(RHEL-CTDB): the ldbtools manpages have been removed. adapt the spec file

12 years agopackaging(RHEL-CTDB): Revert "add BuildRequires to ctdb-devel >= 1.2.25"
Michael Adam [Fri, 27 May 2011 10:35:49 +0000 (12:35 +0200)]
packaging(RHEL-CTDB): Revert "add BuildRequires to ctdb-devel >= 1.2.25"

This reverts commit a16520b6939cb6d87f5818db0ac3ded228053cee.

There is also a 1.0.114 based branch that has the required capabilities.
If building against an insufficient version, the configure will fail.

12 years agopackaging(RHEL-CTDB): align configure.rpm to the spec file
Christian Ambach [Thu, 19 May 2011 16:58:25 +0000 (18:58 +0200)]
packaging(RHEL-CTDB): align configure.rpm to the spec file

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agopackaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh
Michael Adam [Wed, 18 May 2011 08:35:42 +0000 (10:35 +0200)]
packaging(RHEL-CTDB): honour rpm build target options handed in to makerpms.sh

This allows to call e.g. "makerpms.sh -bs" to only build the source rpm.

12 years agopackaging(RHEL-CTDB): adapt configure.rpm
Michael Adam [Fri, 6 May 2011 15:22:06 +0000 (17:22 +0200)]
packaging(RHEL-CTDB): adapt configure.rpm

12 years agopackaging(RHEL-CTDB): enforce building of libtdb and libtalloc
Michael Adam [Fri, 6 May 2011 15:21:10 +0000 (17:21 +0200)]
packaging(RHEL-CTDB): enforce building of libtdb and libtalloc

12 years agopackaging(RHEL-CTDB): build libtdb and libtalloc packages ourselves
Michael Adam [Fri, 6 May 2011 10:29:10 +0000 (12:29 +0200)]
packaging(RHEL-CTDB): build libtdb and libtalloc packages ourselves

and add appropriate dependencies to the samba-common package.
It should also be possible to run with appropriate system talloc
and tdb packages.

12 years agopackaging(RHEL-CTDB): update configure.rpm (--disable-smbtorture4)
Michael Adam [Fri, 6 May 2011 16:36:38 +0000 (18:36 +0200)]
packaging(RHEL-CTDB): update configure.rpm (--disable-smbtorture4)

12 years agopackaging(RHEL-CTDB): disable smbtorture4 in the rpm build
Michael Adam [Fri, 6 May 2011 16:35:55 +0000 (18:35 +0200)]
packaging(RHEL-CTDB): disable smbtorture4 in the rpm build

12 years agopackaging(RHEL-CTDB): Remove the packaging of the winbind-32bit compat package
Michael Adam [Fri, 6 May 2011 10:03:52 +0000 (12:03 +0200)]
packaging(RHEL-CTDB): Remove the packaging of the winbind-32bit compat package

12 years agopackaging(RHEL-CTDB): create the rpm directories
Volker Lendecke [Wed, 27 Apr 2011 08:25:05 +0000 (10:25 +0200)]
packaging(RHEL-CTDB): create the rpm directories

In RHEL6, rpms are built in /root/rpmbuild, and those directories do not
necessarily exist.

12 years agos3:registry: enhance debugging of deletekey_recursive
Michael Adam [Sun, 14 Aug 2011 21:48:41 +0000 (23:48 +0200)]
s3:registry: enhance debugging of deletekey_recursive

12 years agos3:dbwrap_ctdb: improve transaction start/commit/cancel debugging
Michael Adam [Sun, 14 Aug 2011 21:47:47 +0000 (23:47 +0200)]
s3:dbwrap_ctdb: improve transaction start/commit/cancel debugging

* also log nesting transaction start/commit/cancel
* unify transaction log messages slightly

12 years agos3:lib: fix a comment in tdb_unpack()
Michael Adam [Mon, 15 Aug 2011 11:34:42 +0000 (13:34 +0200)]
s3:lib: fix a comment in tdb_unpack()

12 years agos3:registry: fix regdb_key_exists: the record has to contain at least the 4-byte...
Michael Adam [Sun, 14 Aug 2011 23:30:32 +0000 (01:30 +0200)]
s3:registry: fix regdb_key_exists: the record has to contain at least the 4-byte subkey counter

More precisley, we return false if the record does not match the required
structure of a leading 4-byte subkey counter followed by the corresponding
number zero-terminated strings.

12 years agos3: avoid reading past the end of buffer in tdb_unpack 'f' if zero termination is...
Gregor Beck [Tue, 5 Jul 2011 09:55:34 +0000 (11:55 +0200)]
s3: avoid reading past the end of buffer in tdb_unpack 'f' if zero termination is missing

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3: avoid reading past the end of buffer in tdb_unpack 'P' if zero termination is...
Gregor Beck [Tue, 5 Jul 2011 09:54:58 +0000 (11:54 +0200)]
s3: avoid reading past the end of buffer in tdb_unpack 'P' if zero termination is missing

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:build(autoconf): fix bug #8369: remove irritating "." targets when recent system...
Michael Adam [Thu, 11 Aug 2011 08:49:30 +0000 (10:49 +0200)]
s3:build(autoconf): fix bug #8369: remove irritating "." targets when recent system libs exist

12 years agos3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" with...
Michael Adam [Wed, 10 Aug 2011 11:41:14 +0000 (13:41 +0200)]
s3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" with NULL

this fixes the fallback to the deprecated spelling idmap:script

12 years agos3-net: Fixed typo in net conf
Vicentiu Ciorbaru [Wed, 3 Aug 2011 20:24:09 +0000 (23:24 +0300)]
s3-net: Fixed typo in net conf

There was a missing ']' in net conf addshare usage message.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:smbconf let drop leave the smbconf key in place to match a virgin registry.tdb
Gregor Beck [Tue, 2 Aug 2011 12:52:12 +0000 (14:52 +0200)]
s3:smbconf let drop leave the smbconf key in place to match a virgin registry.tdb

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:registry avoid updating keys which are going to be deleted in
Gregor Beck [Mon, 1 Aug 2011 13:27:46 +0000 (15:27 +0200)]
s3:registry avoid updating keys which are going to be deleted in
reg_deletekey_recursive

this changes the complexity from O(n^2) to O(n) and reduces the time of
a 'net conf drop' with 10000 shares from 6min to 1.5s

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3:registry avoid pruning the sequencenumber while flushing the regsubkey_ctr
Gregor Beck [Wed, 13 Jul 2011 14:51:54 +0000 (16:51 +0200)]
s3:registry avoid pruning the sequencenumber while flushing the regsubkey_ctr

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 15 08:34:47 CEST 2011 on sn-devel-104
(cherry picked from commit 5049e3e142977a4c3d0f5a0fd9c06429f4d85bed)

12 years agos3:registry avoid leaking an old regsubkey_ctr on regsubkey_ctr_init
Gregor Beck [Thu, 14 Jul 2011 10:19:01 +0000 (12:19 +0200)]
s3:registry avoid leaking an old regsubkey_ctr on regsubkey_ctr_init

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 7e3d7505ddf2bdcf0d66273d9b96058969e2459b)

12 years agos3:registry: update copyright for the registry db implementation
Michael Adam [Wed, 6 Jul 2011 10:09:52 +0000 (12:09 +0200)]
s3:registry: update copyright for the registry db implementation
(cherry picked from commit 8b37443c2ddc40e8a077c2d70867a2e82a5e19be)

12 years agos3:registry: remove unused function regdb_key_is_base_key()
Michael Adam [Mon, 4 Jul 2011 15:45:30 +0000 (17:45 +0200)]
s3:registry: remove unused function regdb_key_is_base_key()

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Jul  4 21:11:32 CEST 2011 on sn-devel-104
(cherry picked from commit 399c0dba01b4337f5483bf03c99d28a3486e7981)

12 years agos3:registry: replace use of deprecated talloc_destroy by talloc_free.
Michael Adam [Mon, 4 Jul 2011 15:22:01 +0000 (17:22 +0200)]
s3:registry: replace use of deprecated talloc_destroy by talloc_free.
(cherry picked from commit 86f8eb98fe76b4b65f903e1792cdb2eb9b195ee5)

12 years agos3:registry: remove superfluous check for success of talloc_stackframe()
Michael Adam [Mon, 4 Jul 2011 15:21:23 +0000 (17:21 +0200)]
s3:registry: remove superfluous check for success of talloc_stackframe()
(cherry picked from commit 17b091b7c7f57a041c5e90c653f1ee46572d4668)

12 years agos3:registry: add debug-level-10 verbosity to regdb_upgrade_v2_v3_fn()
Michael Adam [Mon, 4 Jul 2011 15:20:28 +0000 (17:20 +0200)]
s3:registry: add debug-level-10 verbosity to regdb_upgrade_v2_v3_fn()
(cherry picked from commit cc384c15969cdc395bfd3fcee10b5c04233df290)

12 years agos3:registry: adapt a debug message to be more systematic
Michael Adam [Mon, 4 Jul 2011 15:13:58 +0000 (17:13 +0200)]
s3:registry: adapt a debug message to be more systematic
(cherry picked from commit 340be35b9b068360b5fec5a0ea43dc8a3b294ba4)

12 years agos3:registry: set registry version to 3 and add upgrade code
Michael Adam [Mon, 4 Jul 2011 14:23:08 +0000 (16:23 +0200)]
s3:registry: set registry version to 3 and add upgrade code

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit c8c5d8c89e3cf9b71a917de83ad68d4d3c18b117)

12 years agos3:registry: add db_context argument to regdb_upgrade_v1_to_v2()
Michael Adam [Mon, 4 Jul 2011 14:21:26 +0000 (16:21 +0200)]
s3:registry: add db_context argument to regdb_upgrade_v1_to_v2()
(cherry picked from commit f36ee63df28a2c49e8661a28237b97fe60f872c4)

12 years agos3:registry: wrap the whole db upgrade in one transaction
Michael Adam [Mon, 4 Jul 2011 14:15:11 +0000 (16:15 +0200)]
s3:registry: wrap the whole db upgrade in one transaction

The purpose of this is to prepare for multiple upgrade steps
to be performed in a single transaction, so that no change
at all is made to that database if one step fails.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit 1621aab139f0104cb2c7183c28c52cb6605abb09)

12 years agos3:registry: change regdb_store_regdb_version() to take db_context argument.
Michael Adam [Mon, 4 Jul 2011 14:09:33 +0000 (16:09 +0200)]
s3:registry: change regdb_store_regdb_version() to take db_context argument.
(cherry picked from commit caf9c9996952e72e61f9c9f0efd27936f38eefda)

12 years agos3:registry: fix a comment typo
Michael Adam [Mon, 4 Jul 2011 13:23:39 +0000 (15:23 +0200)]
s3:registry: fix a comment typo
(cherry picked from commit 2273650ca89c4042d073257383d0e5d28a8a555f)

12 years agos3:registry: remove unused regdb_delete_sorted_subkeys()
Michael Adam [Fri, 1 Jul 2011 11:49:12 +0000 (13:49 +0200)]
s3:registry: remove unused regdb_delete_sorted_subkeys()

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit a8360712e1356a347f49a5208c1388dc5ab96d31)

12 years agos3:registry: don't delete the unused subkeys cache record any more
Michael Adam [Fri, 1 Jul 2011 11:48:16 +0000 (13:48 +0200)]
s3:registry: don't delete the unused subkeys cache record any more

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit a0f83ecbb9697d4aa9c47b7b61001996a934ecee)

12 years agos3:registry: remove the code to create and search the sorted subkeys cache records
Michael Adam [Fri, 1 Jul 2011 11:37:41 +0000 (13:37 +0200)]
s3:registry: remove the code to create and search the sorted subkeys cache records

This is not needed any more.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

12 years agos3:registry: adapt the comment explaining the definition of the existence of a key.
Michael Adam [Fri, 1 Jul 2011 11:33:44 +0000 (13:33 +0200)]
s3:registry: adapt the comment explaining the definition of the existence of a key.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit 18973fa109132bab8cb22a6757dbe4a206ea1a33)

12 years agos3:registry: regdb_key_exists now checks only for the list-of-subkeys-record
Michael Adam [Fri, 1 Jul 2011 11:18:51 +0000 (13:18 +0200)]
s3:registry: regdb_key_exists now checks only for the list-of-subkeys-record

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit a25563035823e720a068c3021e01b0556feb7f18)

12 years agos3:registry: rewrite init_registry_key_internal
Michael Adam [Mon, 4 Jul 2011 11:19:13 +0000 (13:19 +0200)]
s3:registry: rewrite init_registry_key_internal

This rewrites init_registry_key_internal() to correctly also create
base keys. It makes use of the existing create functions instead of
duplicating the code.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit 9e2b2c1fcc6d0bd852df715fdae7854b3ae77027)

12 years agos3:registry: add regdb_create_basekey()
Michael Adam [Mon, 4 Jul 2011 11:14:43 +0000 (13:14 +0200)]
s3:registry: add regdb_create_basekey()

Function to create a base key in the registry db, i.e. one that
has no parent key.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit 747c67cf309a5127e78bd78f0d17e3fc094115d2)

12 years agos3:registry: add regdb_create_subkey_internal() taking additional db context argument
Michael Adam [Mon, 4 Jul 2011 11:09:31 +0000 (13:09 +0200)]
s3:registry: add regdb_create_subkey_internal() taking additional db context argument

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit 144c8d77d8dcde0b85cef28b6515360aa0c55b85)