summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2021-10-18 20:44:54 +1300
committerStefan Metzmacher <metze@samba.org>2021-10-26 12:00:28 +0000
commite4e9f671d0349540e80c197e7e4a0e49ffcac0d3 (patch)
treed0bb4aaac88987650cbdea2fdc3b6aa33701f420
parent93ea095a260f45d27b69b08a323d093c0dea1cde (diff)
downloadsamba-e4e9f671d0349540e80c197e7e4a0e49ffcac0d3.tar.gz
selftest: Remove duplicate setup of $base_dn and $ldbmodify
These are already set up to the same values above for the full DC and correct values for the (strange) s4member environment. By not setting $base_dn again we avoid an error once we start checking for them. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881 (cherry picked from commit 2c0658d408f17af2abc223b0cb18d8d33e0ecd1a)
-rwxr-xr-xselftest/target/Samba4.pm4
1 files changed, 0 insertions, 4 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index f58190706b1..09cedcb05f1 100755
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -1108,10 +1108,6 @@ servicePrincipalName: http/testupnspn.$ctx->{dnsname}
}
# Change the userPrincipalName for jane
- $ldbmodify = ${cmd_env};
- $ldbmodify .= Samba::bindir_path($self, "ldbmodify");
- $ldbmodify .= " --configfile=$ctx->{smb_conf}";
- $base_dn = "DC=".join(",DC=", split(/\./, $ctx->{realm}));
$user_dn = "cn=jane,cn=users,$base_dn";
open(LDIF, "|$ldbmodify -H $ctx->{privatedir}/sam.ldb");