Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Rundeck profile from LDAP user attributes for official docker image #4995

Merged
merged 2 commits into from Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions docker/official/remco/templates/jaas-loginmodule.conf
Expand Up @@ -40,6 +40,16 @@
{% if exists("/rundeck/jaas/ldap/tryfirstpass") -%}
tryFirstPass={{ getv("/rundeck/jaas/ldap/tryfirstpass") }}
{% endif %}
{% if exists("/rundeck/jaas/ldap/userlastnameattribute") -%}
userLastNameAttribute={{ getv("/rundeck/jaas/ldap/userlastnameattribute") }}
{% endif %}
{% if exists("/rundeck/jaas/ldap/userfirstnameattribute") -%}
userFirstNameAttribute={{ getv("/rundeck/jaas/ldap/userfirstnameattribute") }}
{% endif %}
{% if exists("/rundeck/jaas/ldap/useremailattribute") -%}
userEmailAttribute={{ getv("/rundeck/jaas/ldap/useremailattribute") }}
{% endif %}

;
{% endmacro %}

Expand Down
6 changes: 6 additions & 0 deletions docker/official/remco/templates/rundeck-config.properties
Expand Up @@ -36,6 +36,10 @@ rundeck.security.authorization.preauthenticated.userRolesHeader={{ getv("/rundec
rundeck.security.authorization.preauthenticated.redirectLogout={{ getv("/rundeck/preauth/redirect/logout", "false") }}
rundeck.security.authorization.preauthenticated.redirectUrl={{ getv("/rundeck/preauth/redirect/url", "/oauth2/sign_in") }}

{% if exists("/rundeck/security/syncldapuser") %}
rundeck.security.syncLdapUser={{ getv("/rundeck/security/syncldapuser") }}
{% endif %}

rundeck.api.tokens.duration.max={{ getv("/rundeck/api/tokens/duration/max", "30d") }}

rundeck.log4j.config.file=/home/rundeck/server/config/log4j.properties
Expand All @@ -54,3 +58,5 @@ rundeck.feature.repository.enabled={{ getv("/rundeck/feature/repository/enabled"
{% set enabled = printf("/rundeck/features/%s/enabled", c) -%}
rundeck.features.{{ c }}.enabled={{ getv(enabled, "false") }}
{% endfor %}