Add samba_server_max_protocol parameter

This commit is contained in:
Jonathan G. Underwood 2018-04-02 22:25:51 +01:00
parent 4add05ac71
commit fda9ec8452
2 changed files with 7 additions and 1 deletions

View File

@ -46,6 +46,7 @@ No specific requirements
| `samba_passdb_backend` | `tdbsam` | Password database backend. | | `samba_passdb_backend` | `tdbsam` | Password database backend. |
| `samba_realm` | - | Realm domain name | | `samba_realm` | - | Realm domain name |
| `samba_security` | `user` | Samba security setting | | `samba_security` | `user` | Samba security setting |
| `samba_server_max_protocol` | - | Specify a maximum protocol version offered by the server. |
| `samba_server_string` | `fileserver %m` | Comment string for the server. | | `samba_server_string` | `fileserver %m` | Comment string for the server. |
| `samba_shares` | [] | List of dicts containing share definitions. See below for details. | | `samba_shares` | [] | List of dicts containing share definitions. See below for details. |
| `samba_shares_root` | `/srv/shares` | Directories for the shares are created under this directory. | | `samba_shares_root` | `/srv/shares` | Directories for the shares are created under this directory. |

View File

@ -30,6 +30,11 @@ server string = {{ samba_server_string }}
guest account = {{ samba_guest_account }} guest account = {{ samba_guest_account }}
{% endif %} {% endif %}
{% if samba_server_max_protocol is defined %}
# Maximum protocol version offered by the server
server max protocol = {{ samba_server_max_protocol }}
{% endif %}
{% if samba_interfaces|length > 0 %} {% if samba_interfaces|length > 0 %}
interfaces = {{ samba_interfaces }} interfaces = {{ samba_interfaces }}
{% endif %} {% endif %}