Add support for disabling WINs

This commit is contained in:
Ben Tomasik 2017-08-06 17:25:33 -05:00
parent b63ca1385e
commit 8c56bc0b35
3 changed files with 13 additions and 4 deletions

View File

@ -51,6 +51,10 @@ No specific requirements
| `samba_users` | [] | List of dicts defining users that can access shares. | | `samba_users` | [] | List of dicts defining users that can access shares. |
| `samba_workgroup` | `WORKGROUP` | Name of the server workgroup. | | `samba_workgroup` | `WORKGROUP` | Name of the server workgroup. |
| `samba_guest_account` | - | Guest account for unknown users | | `samba_guest_account` | - | Guest account for unknown users |
| `samba_wins_support` | true | When true, Samba will act as a WINS server |
| `samba_local_master` | true | When true, nmbd will try & become local master of the subnet |
| `samba_domain_master` | true | When true, smbd enables WAN-wide browse list collation |
| `samba_preferred_master` | true | When true, indicates nmbd is a preferred master browser for workgroup |
### Defining users ### Defining users

View File

@ -14,3 +14,8 @@ samba_create_varwww_symlinks: false
samba_shares_root: '/srv/shares' samba_shares_root: '/srv/shares'
samba_shares: [] samba_shares: []
samba_users: [] samba_users: []
samba_wins_support: yes
samba_local_master: yes
samba_domain_master: yes
samba_preferred_master: yes

View File

@ -32,10 +32,10 @@
{% endif %} {% endif %}
# Name resolution: make sure \\NETBIOS_NAME\ works # Name resolution: make sure \\NETBIOS_NAME\ works
wins support = yes wins support = {{ samba_wins_support | ternary('yes', 'no') }}
local master = yes local master = {{ samba_local_master | ternary('yes', 'no') }}
domain master = yes domain master = {{ samba_domain_master | ternary('yes', 'no') }}
preferred master = yes preferred master = {{ samba_preferred_master | ternary('yes', 'no') }}
{% if not samba_load_printers %} {% if not samba_load_printers %}
# Don't load printers # Don't load printers