1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r6571: create a simple smb.conf by provision.pl

metze
(This used to be commit af16ecb7ac)
This commit is contained in:
Stefan Metzmacher 2005-05-02 12:34:44 +00:00 committed by Gerald (Jerry) Carter
parent 34a70b80da
commit b686e0b926
2 changed files with 14 additions and 0 deletions

View File

@ -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
";

View File

@ -0,0 +1,4 @@
[globals]
netbios name = ${HOSTNAME}
workgroup = ${DOMAIN}
realm = ${REALM}