Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lonlone Lee
base
Commits
33067747
Commit
33067747
authored
Nov 06, 2015
by
Adam Lewenberg
Browse files
handle case where pam_duo is true and we only want GSSAP root logins
parent
8e274164
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/ssh/config/sshd.pp
View file @
33067747
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
#
#
# If you want to require Duo on login, set pam_duo to true (defaults to
# If you want to require Duo on login, set pam_duo to true (defaults to
# false).
# false).
#
# If $rootloginwithpswd is set to 'no' then we allow root logins using
# GSSAPI only.
define
base::ssh::config::sshd
(
define
base::ssh::config::sshd
(
$ensure
=
'present'
,
$ensure
=
'present'
,
...
...
templates/ssh/sshd_config.erb
View file @
33067747
...
@@ -105,3 +105,11 @@ Subsystem sftp /usr/lib/openssh/sftp-server
...
@@ -105,3 +105,11 @@ Subsystem sftp /usr/lib/openssh/sftp-server
Match User gitolite
Match User gitolite
ForceCommand /usr/share/gitolite/gitolite-wrapper
ForceCommand /usr/share/gitolite/gitolite-wrapper
<%
end
-%>
<%
end
-%>
<%
if
(
@pam_duo
)
and
(
@rootloginwithpswd
==
'no'
)
then
-%>
# Because we are enabling Duo but root logins cannot use Duo (yet),
# we have to configure the authentications for root separately.
Match User root
AuthenticationMethods gssapi-with-mic
MaxSessions 3
<%
end
-%>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment