FROM rundeck/rundeck:5.6.0
ENV RDECK_BASE=/home/rundeck
ENV RUNDECK_LOGGING_STRATEGY=FILE \
RUNDECK_JAAS_MODULES_0=JettyCombinedLdapLoginModule \
RUNDECK_JAAS_LDAP_FLAG=optional \
RUNDECK_JAAS_LDAP_debug=true \
RUNDECK_JAAS_LDAP_contextFactory=com.sun.jndi.ldap.LdapCtxFactory \
RUNDECK_JAAS_LDAP_providerUrl=ldaps://ldapserver_address:636 \
RUNDECK_JAAS_LDAP_bindPassword=password \
RUNDECK_JAAS_LDAP_authenticationMethod=simple \
RUNDECK_JAAS_LDAP_forceBindingLogin=true \
RUNDECK_JAAS_LDAP_userBaseDn="OU=Branch Offices,DC=nh,DC=corp" \
RUNDECK_JAAS_LDAP_userRdnAttribute=cn \
RUNDECK_JAAS_LDAP_userIdAttribute=sAMAccountName \
RUNDECK_JAAS_LDAP_userPasswordAttribute=unicodePwd \
RUNDECK_JAAS_LDAP_userObjectClass=user \
RUNDECK_JAAS_LDAP_roleBaseDn="OU=Branch Offices,DC=nh,DC=corp" \
RUNDECK_JAAS_LDAP_roleNameAttribute=cn \
RUNDECK_JAAS_LDAP_roleMemberAttribute=member \
RUNDECK_JAAS_LDAP_roleObjectClass=group \
RUNDECK_JAAS_LDAP_cacheDurationMillis=300000 \
RUNDECK_JAAS_LDAP_supplementalRoles=user \
RUNDECK_JAAS_LDAP_reportStatistics=true \
RUNDECK_JAAS_LDAP_storePass=true \
RUNDECK_JAAS_MODULES_1=PropertyFileLoginModule \
RUNDECK_JAAS_FILE_FLAG=sufficient