summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-05-02 12:34:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:26 -0500
commitb686e0b9266c0e6029d9f87f187e56c8d2429586 (patch)
tree079130343c98f35d244c0c51686eba1a81ffbbe2 /source4
parent34a70b80dad53af17f7ed161f309dd1676e0254a (diff)
downloadsamba-b686e0b9266c0e6029d9f87f187e56c8d2429586.tar.gz
samba-b686e0b9266c0e6029d9f87f187e56c8d2429586.tar.bz2
samba-b686e0b9266c0e6029d9f87f187e56c8d2429586.zip
r6571: create a simple smb.conf by provision.pl
metze (This used to be commit af16ecb7ac6015b2f7fa70fc73e1ab69776c8079)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/setup/provision.pl10
-rw-r--r--source4/setup/provision.smb.conf4
2 files changed, 14 insertions, 0 deletions
diff --git a/source4/setup/provision.pl b/source4/setup/provision.pl
index b515a5a9eb..a87f2aef54 100755
--- a/source4/setup/provision.pl
+++ b/source4/setup/provision.pl
@@ -440,6 +440,14 @@ $opt_quiet or print "saving dns zone to $newdb/$dnsdomain.zone ...\n";
FileSave("$newdb/$dnsdomain.zone", $res);
+$data = FileLoad("setup/provision.smb.conf") || die "Unable to load provision.smb.conf\n";
+
+$res = apply_substitutions($data);
+
+$opt_quiet or print "saving smb.conf to $newdb/smb.conf ...\n";
+
+FileSave("$newdb/smb.conf", $res);
+
$opt_quiet or print "creating $newdb/hklm.ldb ... \n";
system("ldbadd -H $newdb/hklm.ldb setup/hklm.ldif") == 0 || die "Failed to create hklm.ldb\n";
@@ -449,5 +457,7 @@ $opt_quiet or print "
Installation:
- Please move $newdb/*.ldb to the private/ directory of your
Samba4 installation
+- Please move $newdb/smb.conf to the lib/ directory of your
+ Samba4 installation
- Please use $newdb/$dnsdomain.zone in BIND on your dns server
";
diff --git a/source4/setup/provision.smb.conf b/source4/setup/provision.smb.conf
new file mode 100644
index 0000000000..21b250a671
--- /dev/null
+++ b/source4/setup/provision.smb.conf
@@ -0,0 +1,4 @@
+[globals]
+ netbios name = ${HOSTNAME}
+ workgroup = ${DOMAIN}
+ realm = ${REALM}