mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3-net: Allow setting the ldap password for idmap_rfc2307
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
30b2f74ffc
commit
b75515248a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user