mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
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)
This commit is contained in:
parent
d67c96504c
commit
614cb1e9db
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user