summaryrefslogtreecommitdiff
path: root/source3/utils/net_idmap.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@us.ibm.com>2013-02-21 12:33:13 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-03-09 06:30:22 +0100
commitb75515248a641c1b1e1e3dad40eb323280658129 (patch)
tree06999e7f0858f69c761bbd09df2f8e99669dab6b /source3/utils/net_idmap.c
parent30b2f74ffc8f7c38e132eddede7884c5195b634a (diff)
downloadsamba-b75515248a641c1b1e1e3dad40eb323280658129.tar.gz
samba-b75515248a641c1b1e1e3dad40eb323280658129.tar.bz2
samba-b75515248a641c1b1e1e3dad40eb323280658129.zip
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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c
index bdc4879e88..fbeca3eeaa 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;
}