Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lonlone Lee
base
Commits
33067747
Commit
33067747
authored
Nov 06, 2015
by
Adam Lewenberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
manifests/ssh/config/sshd.pp
manifests/ssh/config/sshd.pp
+3
-0
templates/ssh/sshd_config.erb
templates/ssh/sshd_config.erb
+8
-0
No files found.
manifests/ssh/config/sshd.pp
View file @
33067747
...
...
@@ -20,6 +20,9 @@
#
# If you want to require Duo on login, set pam_duo to true (defaults to
# false).
#
# If $rootloginwithpswd is set to 'no' then we allow root logins using
# GSSAPI only.
define
base::ssh::config::sshd
(
$ensure
=
'present'
,
...
...
templates/ssh/sshd_config.erb
View file @
33067747
...
...
@@ -105,3 +105,11 @@ Subsystem sftp /usr/lib/openssh/sftp-server
Match User gitolite
ForceCommand /usr/share/gitolite/gitolite-wrapper
<%
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