summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-08-26 13:23:41 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-13 15:38:02 +1000
commit8c33036a374b6f61677965dbb357d6ae7216cbfb (patch)
tree690c282f32fee564c89f9eeea0a7feb71905f63c /selftest
parent60150323be045bf6612fcde18eaea5bbc0d2e818 (diff)
downloadsamba-8c33036a374b6f61677965dbb357d6ae7216cbfb.tar.gz
samba-8c33036a374b6f61677965dbb357d6ae7216cbfb.tar.bz2
samba-8c33036a374b6f61677965dbb357d6ae7216cbfb.zip
s4-subdomain more work on sub-domain join
we can now create a subdomain of an existing windows domain using: samba-tool domain join sub.domain.dns.name subdomain The ordering of the creation of the key records is quite tricky, especially for the NTDSDSA object Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba4.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index ff8f5ee84b..b356048869 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -1647,7 +1647,7 @@ sub setup_subdom_dc($$$)
$cmd .= " KRB5_CONFIG=\"$env->{KRB5_CONFIG}\"";
$cmd .= " $samba_tool drs kcc $env->{DC_SERVER}";
$cmd .= " $env->{CONFIGURATION}";
- $cmd .= " -U$dc_vars->{DC_USERNAME}\%$dc_vars->{DC_PASSWORD}";
+ $cmd .= " -U$dc_vars->{DC_USERNAME}\%$dc_vars->{DC_PASSWORD} --realm=$dc_vars->{DC_REALM}";
unless (system($cmd) == 0) {
warn("Failed to exec kcc\n$cmd");
return undef;
@@ -1661,7 +1661,7 @@ sub setup_subdom_dc($$$)
$cmd .= " KRB5_CONFIG=\"$env->{KRB5_CONFIG}\"";
$cmd .= " $samba_tool drs replicate $env->{DC_SERVER} $env->{SUBDOM_DC_SERVER}";
$cmd .= " $dc_vars->{CONFIGURATION}";
- $cmd .= " -U$dc_vars->{DC_USERNAME}\%$dc_vars->{DC_PASSWORD}";
+ $cmd .= " -U$dc_vars->{DC_USERNAME}\%$dc_vars->{DC_PASSWORD} --realm=$dc_vars->{DC_REALM}";
# replicate Configuration NC
my $cmd_repl = "$cmd \"$config_dn\"";
unless(system($cmd_repl) == 0) {