Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mr. Addis Walter O'Connor
base
Commits
33067747
Commit
33067747
authored
9 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
handle case where pam_duo is true and we only want GSSAP root logins
parent
8e274164
No related branches found
Branches containing commit
Tags
release/005.005
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/ssh/config/sshd.pp
+3
-0
3 additions, 0 deletions
manifests/ssh/config/sshd.pp
templates/ssh/sshd_config.erb
+8
-0
8 additions, 0 deletions
templates/ssh/sshd_config.erb
with
11 additions
and
0 deletions
manifests/ssh/config/sshd.pp
+
3
−
0
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'
,
...
...
This diff is collapsed.
Click to expand it.
templates/ssh/sshd_config.erb
+
8
−
0
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
-%>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment