1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

selftest: extend setup_plugin_s4_dc to allow for not using nss_winbindd

Pair-Programmed-With: Guenther Deschner <gd@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Michael Adam 2015-03-05 13:22:07 +01:00
parent 79b927ac9e
commit 5ce6851425

View File

@ -2274,7 +2274,7 @@ sub setup_rodc($$$)
sub setup_plugin_s4_dc($$)
{
my ($self, $path) = @_;
my ($self, $path, $no_nss) = @_;
# If we didn't build with ADS, pretend this env was never available
if (not $self->{target3}->have_ads()) {
@ -2286,6 +2286,11 @@ sub setup_plugin_s4_dc($$)
return undef;
}
if (defined($no_nss) and $no_nss) {
$env->{NSS_WRAPPER_MODULE_SO_PATH} = undef;
$env->{NSS_WRAPPER_MODULE_FN_PREFIX} = undef;
}
$self->check_or_start($env, "single");
$self->wait_for_start($env);