From 614cb1e9dbd2a46b1c684a1179710a66cc6591e8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 1 May 2007 03:28:12 +0000 Subject: 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) --- source4/selftest/Samba4.pm | 13 +++++++++++-- 1 file 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"); -- cgit