[PATCH] Allow ldbsearch -H private.ldb
Michael Adam
obnox at samba.org
Fri Nov 16 02:42:17 MST 2012
Looks good.
I am going to push it.
Michael
On 2012-11-16 at 14:33 +1100, Andrew Bartlett wrote:
> This patch allows ldbsearch -H private.ldb to work.
>
> Andrew Bartlett
> --
> Andrew Bartlett http://samba.org/~abartlet/
> Authentication Developer, Samba Team http://samba.org
>
> >From 428ed9d2c5e78cc2c7808c4debc16f8734b00d90 Mon Sep 17 00:00:00 2001
> From: Andrew Bartlett <abartlet at samba.org>
> Date: Wed, 12 Sep 2012 15:34:29 +0200
> Subject: [PATCH] dsdb: Make secrets_tdb_sync cope with -H secrets.ldb
>
> The issue was, without a / in the path, we did not cope.
>
> Andrew Bartlett
> ---
> source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c b/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c
> index c742d86..e90fc77 100644
> --- a/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c
> +++ b/source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c
> @@ -498,11 +498,12 @@ static int secrets_tdb_sync_init(struct ldb_module *module)
> p = strrchr(private_dir, '/');
> if (p) {
> *p = '\0';
> + secrets_init_path(private_dir);
> } else {
> - return ldb_operr(ldb);
> + secrets_init_path(".");
> }
>
> - secrets_init_path(private_dir);
> + TALLOC_FREE(private_dir);
>
> data->secrets_tdb = secrets_db_ctx();
>
> --
> 1.7.11.7
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20121116/8b319072/attachment.pgp>
More information about the samba-technical
mailing list