1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

selftest: Pass down the machine account name to provision_ad_member

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Andreas Schneider 2021-05-11 17:59:51 +02:00 committed by Jeremy Allison
parent 79b848fe59
commit fbe68dcbb7
2 changed files with 9 additions and 2 deletions

View File

@ -588,6 +588,7 @@ sub get_interface($)
addcsmb1 => 54,
lclnt4dc2smb1 => 55,
fipsdc => 56,
fipsadmember => 57,
rootdnsforwarder => 64,

View File

@ -646,6 +646,7 @@ sub provision_ad_member
{
my ($self,
$prefix,
$machine_account,
$dcvars,
$trustvars_f,
$trustvars_e,
@ -758,7 +759,7 @@ sub provision_ad_member
prefix => $prefix,
domain => $dcvars->{DOMAIN},
realm => $dcvars->{REALM},
server => "LOCALADMEMBER",
server => $machine_account,
password => "loCalMemberPass",
extra_options => $member_options,
resolv_conf => $dcvars->{RESOLV_CONF});
@ -873,7 +874,11 @@ sub setup_ad_member
print "PROVISIONING AD MEMBER...";
return $self->provision_ad_member($prefix, $dcvars, $trustvars_f, $trustvars_e);
return $self->provision_ad_member($prefix,
"LOCALADMEMBER",
$dcvars,
$trustvars_f,
$trustvars_e);
}
sub setup_ad_member_rfc2307
@ -1199,6 +1204,7 @@ sub setup_ad_member_fips
print "PROVISIONING AD FIPS MEMBER...";
return $self->provision_ad_member($prefix,
"FIPSADMEMBER",
$dcvars,
$trustvars_f,
$trustvars_e,