diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi
index ec41adc5d..4b57c1add 100644
--- a/html/cgi-bin/samba.cgi
+++ b/html/cgi-bin/samba.cgi
@@ -835,7 +835,16 @@ if ($sambasettings{'ENCRYPTION'} =~ m/(desired|required)/) {
 	print FILE "smb encrypt = $1\n";
 }
 
+if ($sambasettings{'SERVER_MIN_PROTOCOL'} ne "" ) {
+	print FILE "server min protocol = $sambasettings{'SERVER_MIN_PROTOCOL'}\n";
+}
+
+if ($sambasettings{'SERVER_MAX_PROTOCOL'} ne "" ) {
+	print FILE "server max protocol = $sambasettings{'SERVER_MAX_PROTOCOL'}\n";
+}
+
 print FILE <<END;
+
 # Export all printers
 [printers]
 path = /var/spool/samba/
