]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/samba.cgi
samba: Add support for custom configuration changes
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / samba.cgi
index ec41adc5dd0506b986897074567989902e2b8fc5..6a61300a2ae93b23006f99091048445c7f8336dd 100644 (file)
@@ -835,6 +835,18 @@ if ($sambasettings{'ENCRYPTION'} =~ m/(desired|required)/) {
        print FILE "smb encrypt = $1\n";
 }
 
+# Include smb.conf.local
+if (-e "${General::swroot}/samba/smb.conf.local") {
+       open(LOCAL, "<${General::swroot}/samba/smb.conf.local");
+
+       # Copy content line by line
+       while (<LOCAL>) {
+               print FILE $_;
+       }
+
+       close(LOCAL);
+}
+
 print FILE <<END;
 # Export all printers
 [printers]