From b75515248a641c1b1e1e3dad40eb323280658129 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Thu, 21 Feb 2013 12:33:13 -0700 Subject: [PATCH] s3-net: Allow setting the ldap password for idmap_rfc2307 Reviewed-by: Andrew Bartlett --- source3/utils/net_idmap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c index bdc4879e889..fbeca3eeaa0 100644 --- a/source3/utils/net_idmap.c +++ b/source3/utils/net_idmap.c @@ -634,9 +634,11 @@ static int net_idmap_secret(struct net_context *c, int argc, const char **argv) backend = talloc_strdup(ctx, lp_parm_const_string(-1, opt, "backend", "tdb")); ALLOC_CHECK(backend); - if ( ( ! backend) || ( ! strequal(backend, "ldap"))) { + if ((!backend) || (!strequal(backend, "ldap") && + !strequal(backend, "rfc2307"))) { d_fprintf(stderr, - _("The only currently supported backend is LDAP\n")); + _("The only currently supported backend are LDAP " + "and rfc2307\n")); talloc_free(ctx); return -1; } -- 2.11.4.GIT