]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Remove duplicate setup of $base_dn and $ldbmodify
authorAndrew Bartlett <abartlet@samba.org>
Mon, 18 Oct 2021 07:44:54 +0000 (20:44 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Oct 2021 12:02:33 +0000 (12:02 +0000)
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>
selftest/target/Samba4.pm

index a4f1043ec51d628835072b9f8db644e014ea8dbb..abb387b7527c89b60ce7b8e338088591d70fd741 100755 (executable)
@@ -1116,10 +1116,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");