This repository was archived by the owner on Apr 20, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 157
157
' auth_users' => {},
158
158
' file' => ' /etc/rundeck/realm.properties'
159
159
},
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
+ },
160
169
' ldap' => {
161
170
' server' => undef ,
162
171
' port' => ' 389' ,
Original file line number Diff line number Diff line change
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'] %> ";
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ authentication {
6
6
<%= scope.function_template(['rundeck/_auth_ldap.erb']) %>
7
7
<%- when 'active_directory' -%>
8
8
<%= scope.function_template(['rundeck/_auth_ad.erb']) %>
9
+ <%- when 'pam' -%>
10
+ <%= scope.function_template(['rundeck/_auth_pam.erb']) %>
9
11
<%- when 'file' -%>
10
12
<%= scope.function_template(['rundeck/_auth_file.erb']) %>
11
13
<%- else
You can’t perform that action at this time.
0 commit comments