summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-01 03:28:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:54 -0500
commit614cb1e9dbd2a46b1c684a1179710a66cc6591e8 (patch)
tree9d53a4963adff3cd23725f12a2026849cc64c4bc /source4/selftest
parentd67c96504c3d285703e3839608f4e08cd1349797 (diff)
downloadsamba-614cb1e9dbd2a46b1c684a1179710a66cc6591e8.tar.gz
samba-614cb1e9dbd2a46b1c684a1179710a66cc6591e8.tar.bz2
samba-614cb1e9dbd2a46b1c684a1179710a66cc6591e8.zip
r22624: - configure other auth methods for the member server
- use the netbiosname as domain and realm for the provision of the member server metze (This used to be commit fdb08a5b9cd00f8ad5bfd753733a9b390a870853)
Diffstat (limited to 'source4/selftest')
-rw-r--r--source4/selftest/Samba4.pm13
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/selftest/Samba4.pm b/source4/selftest/Samba4.pm
index 3764751e6a..23476754ce 100644
--- a/source4/selftest/Samba4.pm
+++ b/source4/selftest/Samba4.pm
@@ -485,6 +485,14 @@ sub provision($$$$$$)
mkdir($_, 0777) foreach ($privatedir, $etcdir, $piddir, $ncalrpcdir, $lockdir,
$tmpdir);
+ my $auth_methods = "anonymous sam_ignoredomain";
+ $auth_methods = "anonymous sam winbind" if $server_role eq "member server";
+
+ my $localdomain = $domain;
+ $localdomain = $netbiosname if $server_role eq "member server";
+ my $localrealm = $realm;
+ $localrealm = $netbiosname if $server_role eq "member server";
+
open(CONFFILE, ">$conffile");
print CONFFILE "
[global]
@@ -505,6 +513,7 @@ sub provision($$$$$$)
panic action = $srcdir/script/gdb_backtrace \%PID% \%PROG%
wins support = yes
server role = $server_role
+ auth methods = $auth_methods
max xmit = 32K
server max protocol = SMB2
notify:inotify = false
@@ -596,8 +605,8 @@ sub provision($$$$$$)
push (@provision_options, "--host-name=$netbiosname");
push (@provision_options, "--host-ip=$ifaceipv4");
push (@provision_options, "--quiet");
- push (@provision_options, "--domain $domain");
- push (@provision_options, "--realm $realm");
+ push (@provision_options, "--domain $localdomain");
+ push (@provision_options, "--realm $localrealm");
push (@provision_options, "--adminpass $password");
push (@provision_options, "--krbtgtpass krbtgt$password");
push (@provision_options, "--machinepass machine$password");