summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-01 22:19:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-01 22:19:44 +0000
commit58ef253941a439f8c880bc9bffd83790e6eccd21 (patch)
tree9f2efadd02b7dea07d5c7f9a07f0bc48319d3bf2 /perl-install/network
parenta6f8275a74dd684e2b35010b0ba28a1d3b9cca23 (diff)
downloaddrakx-backup-do-not-use-58ef253941a439f8c880bc9bffd83790e6eccd21.tar
drakx-backup-do-not-use-58ef253941a439f8c880bc9bffd83790e6eccd21.tar.gz
drakx-backup-do-not-use-58ef253941a439f8c880bc9bffd83790e6eccd21.tar.bz2
drakx-backup-do-not-use-58ef253941a439f8c880bc9bffd83790e6eccd21.tar.xz
drakx-backup-do-not-use-58ef253941a439f8c880bc9bffd83790e6eccd21.zip
- move write_smb_conf() from install_any to network::smb
- rename setAuthentication() to set_authentication() - move the work of set_authentication() from install_any to any - move the per-authentification kind questions from install_steps_interactive::setRootPassword() to any::ask_authentification_parameters() - various cleanup in code prompting authentification questions - call install_any::set_authentication() in install_steps::setRootPassword() instead of waiting for the installPackages step to be done (since setRootPassword occurs *after* packages installation) - don't call set_authentification() in install_steps::addUser() (why was this done there??) => these changes will allow drakauth
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/smb.pm32
1 files changed, 32 insertions, 0 deletions
diff --git a/perl-install/network/smb.pm b/perl-install/network/smb.pm
index 6215e3150..d8c3024fd 100644
--- a/perl-install/network/smb.pm
+++ b/perl-install/network/smb.pm
@@ -146,4 +146,36 @@ sub read_credentials {
put_in_hash($server, read_credentials_raw(to_credentials($server->{name}, $username)));
}
+
+sub write_smb_conf {
+ my ($domain) = @_;
+
+ #- was going to just have a canned config in samba-winbind
+ #- and replace the domain, but sylvestre/buchan didn't bless it yet
+
+ my $f = "$::prefix/etc/samba/smb.conf";
+ rename $f, "$f.orig";
+ output($f, "
+[global]
+ workgroup = $domain
+ server string = Samba Server %v
+ security = domain
+ encrypt passwords = Yes
+ password server = *
+ log file = /var/log/samba/log.%m
+ max log size = 50
+ socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
+ character set = ISO8859-15
+ os level = 18
+ local master = No
+ dns proxy = No
+ winbind uid = 10000-20000
+ winbind gid = 10000-20000
+ winbind separator = +
+ template homedir = /home/%D/%U
+ template shell = /bin/bash
+ winbind use default domain = yes
+");
+}
+
1;