From 55d862afb97f9f0d4f322cae708844e06f85a254 Mon Sep 17 00:00:00 2001 From: morbidick Date: Fri, 10 Mar 2017 19:06:10 +0100 Subject: [PATCH] make samba_guest_account optional --- templates/smb.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 templates/smb.conf.j2 diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 old mode 100644 new mode 100755 index 355344e..9e97b9c --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -23,7 +23,9 @@ security = {{ samba_security }} passdb backend = {{ samba_passdb_backend }} map to guest = {{ samba_map_to_guest }} +{% if samba_guest_account is defined %} guest account = {{ samba_guest_account }} +{% endif %} {% if samba_interfaces|length > 0 %} interfaces = {{ samba_interfaces }}