diff options
author | Christof Schmitt <christof.schmitt@us.ibm.com> | 2013-02-21 12:33:13 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-03-09 06:30:22 +0100 |
commit | b75515248a641c1b1e1e3dad40eb323280658129 (patch) | |
tree | 06999e7f0858f69c761bbd09df2f8e99669dab6b /source3/utils/net_idmap.c | |
parent | 30b2f74ffc8f7c38e132eddede7884c5195b634a (diff) | |
download | samba-b75515248a641c1b1e1e3dad40eb323280658129.tar.gz |
s3-net: Allow setting the ldap password for idmap_rfc2307
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/utils/net_idmap.c')
-rw-r--r-- | source3/utils/net_idmap.c | 6 |
1 files 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; } |