From 31ec2a4093272c9881c5c014654825eb834905ae Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Sat, 14 Mar 2015 01:17:48 +0100 Subject: [PATCH] Add optional valid users --- templates/smb.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 9f66a55..df8bac8 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -53,6 +53,9 @@ {% endif %} path = {{ samba_shares_root }}/{{ share.name }} public = {{ share.public|default('no') }} + {% if share.valid_users is defined %} + valid users= {{ share.valid_users }} + {% endif %} {% if share.write_list is defined %} write list = {{ share.write_list }} {% endif %}