Browse Source

Merge pull request #13 from westurner/add-UseDNS-option

Add a UseDNS option
master
Forrest 10 years ago
parent
commit
813c28e633
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      openssh/files/sshd_config
  2. +1
    -0
      pillar.example

+ 3
- 0
openssh/files/sshd_config View File

# and ChallengeResponseAuthentication to 'no'. # and ChallengeResponseAuthentication to 'no'.
{{ option_default_uncommented('UsePAM', 'yes') }} {{ option_default_uncommented('UsePAM', 'yes') }}


# DNS resolve and map remote IP addresses
{{ option('UseDNS', 'yes') }}

{# Handling unknown in salt template options #} {# Handling unknown in salt template options #}
{%- for keyword, argument in sshd_config.iteritems() %} {%- for keyword, argument in sshd_config.iteritems() %}
{%- if not keyword in processed_options -%} {%- if not keyword in processed_options -%}

+ 1
- 0
pillar.example View File

AcceptEnv: "LANG LC_*" AcceptEnv: "LANG LC_*"
Subsystem: "sftp /usr/lib/openssh/sftp-server" Subsystem: "sftp /usr/lib/openssh/sftp-server"
UsePAM: 'yes' UsePAM: 'yes'
UseDNS: 'yes'


openssh: openssh:
auth: auth:

Loading…
Cancel
Save