Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 495771c

Browse files
author
Liam Bennett
committed
Merge pull request voxpupuli#120 from jyaworski/add_pam_support
Add pam support to authentication
2 parents dd4c355 + 612b7c0 commit 495771c

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

manifests/params.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@
157157
'auth_users' => {},
158158
'file' => '/etc/rundeck/realm.properties'
159159
},
160+
'pam' => {
161+
'service' => 'sshd',
162+
'supplemental_roles' => 'user',
163+
'store_pass' => true,
164+
'clear_pass' => undef,
165+
'try_first_pass' => undef,
166+
'use_first_pass' => undef,
167+
'use_unix_groups' => undef,
168+
},
160169
'ldap' => {
161170
'server' => undef,
162171
'port' => '389',

templates/_auth_pam.erb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
org.rundeck.jaas.jetty.JettyPamLoginModule requisite
2+
debug="true"
3+
service="<%= @auth_config['pam']['service'] %>"
4+
supplementalRoles="<%= @auth_config['pam']['supplemental_roles'] %>"
5+
<%- if @auth_config['pam']['clear_pass'] != :undef -%>
6+
clearPass="<%= @auth_config['pam']['clear_pass'] %>"
7+
<%- end -%>
8+
<%- if @auth_config['pam']['try_first_pass'] != :undef -%>
9+
tryFirstPass="<%= @auth_config['pam']['try_first_pass'] %>"
10+
<%- end -%>
11+
<%- if @auth_config['pam']['use_first_pass'] != :undef -%>
12+
useFirstPass="<%= @auth_config['pam']['use_first_pass'] %>"
13+
<%- end -%>
14+
<%- if @auth_config['pam']['use_unix_groups'] != :undef -%>
15+
useUnixGroups="<%= @auth_config['pam']['use_unix_groups'] %>"
16+
<%- end -%>
17+
storePass="<%= @auth_config['pam']['store_pass'] %>";

templates/jaas-auth.conf.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ authentication {
66
<%= scope.function_template(['rundeck/_auth_ldap.erb']) %>
77
<%- when 'active_directory' -%>
88
<%= scope.function_template(['rundeck/_auth_ad.erb']) %>
9+
<%- when 'pam' -%>
10+
<%= scope.function_template(['rundeck/_auth_pam.erb']) %>
911
<%- when 'file' -%>
1012
<%= scope.function_template(['rundeck/_auth_file.erb']) %>
1113
<%- else

0 commit comments

Comments
 (0)