summaryrefslogtreecommitdiffstats
path: root/perl-install/network/smb.pm
diff options
context:
space:
mode:
authorVicent Guardiola <vguardiola@mandriva.com>2004-07-19 09:27:38 +0000
committerVicent Guardiola <vguardiola@mandriva.com>2004-07-19 09:27:38 +0000
commit8da1e377ab895bd8607f74a89c79d326b65aac6f (patch)
tree79da42aca6a9bd52034c26d314cd2fb56b6b080c /perl-install/network/smb.pm
parentdea649afc27976e6e5951f90672cc7e2dc1b4e2d (diff)
downloaddrakx-8da1e377ab895bd8607f74a89c79d326b65aac6f.tar
drakx-8da1e377ab895bd8607f74a89c79d326b65aac6f.tar.gz
drakx-8da1e377ab895bd8607f74a89c79d326b65aac6f.tar.bz2
drakx-8da1e377ab895bd8607f74a89c79d326b65aac6f.tar.xz
drakx-8da1e377ab895bd8607f74a89c79d326b65aac6f.zip
Add function write_smb_ads_conf
Diffstat (limited to 'perl-install/network/smb.pm')
-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 00b676725..a10ab429b 100644
--- a/perl-install/network/smb.pm
+++ b/perl-install/network/smb.pm
@@ -176,6 +176,38 @@ sub write_smb_conf {
template shell = /bin/bash
winbind use default domain = yes
");
+
+sub write_smb_ads_conf {
+ my ($domain,$realm) = @_;
+
+ #- 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
+ realm = $realm
+ server string = Samba Member %v
+ security = ads
+ 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
+ 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;