<commit_before>com.dtolabs.rundeck.jetty.jaas.<%= @ldap_login_module %> <%= @ldap_auth_flag %>
  debug="true"
  contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
<%-
provider_url =
  if @auth_config['ldap']['url']
    @auth_config['ldap']['url']
  else
    server = @auth_config['ldap']['server']
    port = @auth_config['ldap']['port']
    "ldap://#{server}:#{port}"
  end
-%>
  providerUrl="<%= provider_url %>"
  authenticationMethod="simple"
  forceBindingLogin="<%= @auth_config['ldap']['force_binding'] %>"
<%- if @auth_config['ldap']['force_binding_use_root'] != :undef -%>
  forceBindingLoginUseRootContextForRoles="<%= @auth_config['ldap']['force_binding_use_root'] %>"
<%- end -%>
<%- if @auth_config['ldap']['bind_dn'] != :undef -%>
  bindDn="<%= @auth_config['ldap']['bind_dn']%>"
<%- end -%>
<%- if @auth_config['ldap']['bind_password'] != :undef -%>
  bindPassword="<%= @auth_config['ldap']['bind_password']%>"
<%- end -%>
  userBaseDn="<%= @auth_config['ldap']['user_base_dn'] %>"
  userRdnAttribute="<%= @auth_config['ldap']['user_rdn_attribute'] %>"
  userIdAttribute="<%= @auth_config['ldap']['user_id_attribute'] %>"
  userObjectClass="<%= @auth_config['ldap']['user_object_class'] %>"
  roleBaseDn="<%= @auth_config['ldap']['role_base_dn'] %>"
  roleNameAttribute="<%= @auth_config['ldap']['role_name_attribute'] %>"
<%- if @auth_config['ldap']['role_username_member_attribute'] -%>
  roleUsernameMemberAttribute="<%= @auth_config['ldap']['role_username_member_attribute'] %>"
<%- elsif @auth_config['ldap']['role_member_attribute'] -%>
  roleMemberAttribute="<%= @auth_config['ldap']['role_member_attribute'] %>"
<%- end -%>
  roleObjectClass="<%= @auth_config['ldap']['role_object_class'] %>"
<%- if @auth_config['ldap']['supplemental_roles'] != :undef -%>
  supplementalRoles="<%= @auth_config['ldap']['supplemental_roles'] %>"
<%- end -%>
<%- 
cache_duration_ms =
  if @auth_config['ldap']['cache_duration_millis']
    @auth_config['ldap']['cache_duration_millis']
  else
    "300000"
  end
-%><commit_msg>added userPasswordAttribute to ldap config, like AD config<commit_after>com.dtolabs.rundeck.jetty.jaas.<%= @ldap_login_module %> <%= @ldap_auth_flag %>
  debug="true"
  contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
<%-
provider_url =
  if @auth_config['ldap']['url']
    @auth_config['ldap']['url']
  else
    server = @auth_config['ldap']['server']
    port = @auth_config['ldap']['port']
    "ldap://#{server}:#{port}"
  end
-%>
  providerUrl="<%= provider_url %>"
  authenticationMethod="simple"
  forceBindingLogin="<%= @auth_config['ldap']['force_binding'] %>"
<%- if @auth_config['ldap']['force_binding_use_root'] != :undef -%>
  forceBindingLoginUseRootContextForRoles="<%= @auth_config['ldap']['force_binding_use_root'] %>"
<%- end -%>
<%- if @auth_config['ldap']['bind_dn'] != :undef -%>
  bindDn="<%= @auth_config['ldap']['bind_dn']%>"
<%- end -%>
<%- if @auth_config['ldap']['bind_password'] != :undef -%>
  bindPassword="<%= @auth_config['ldap']['bind_password']%>"
<%- end -%>
  userBaseDn="<%= @auth_config['ldap']['user_base_dn'] %>"
  userRdnAttribute="<%= @auth_config['ldap']['user_rdn_attribute'] %>"
  userIdAttribute="<%= @auth_config['ldap']['user_id_attribute'] %>"
  userPasswordAttribute="<%= @auth_config['ldap']['user_password_attribute'] %>" 
  userObjectClass="<%= @auth_config['ldap']['user_object_class'] %>"
  roleBaseDn="<%= @auth_config['ldap']['role_base_dn'] %>"
  roleNameAttribute="<%= @auth_config['ldap']['role_name_attribute'] %>"
<%- if @auth_config['ldap']['role_username_member_attribute'] -%>
  roleUsernameMemberAttribute="<%= @auth_config['ldap']['role_username_member_attribute'] %>"
<%- elsif @auth_config['ldap']['role_member_attribute'] -%>
  roleMemberAttribute="<%= @auth_config['ldap']['role_member_attribute'] %>"
<%- end -%>
  roleObjectClass="<%= @auth_config['ldap']['role_object_class'] %>"
<%- if @auth_config['ldap']['supplemental_roles'] != :undef -%>
  supplementalRoles="<%= @auth_config['ldap']['supplemental_roles'] %>"
<%- end -%>
<%- 
cache_duration_ms =
  if @auth_config['ldap']['cache_duration_millis']
    @auth_config['ldap']['cache_duration_millis']
  else
    "300000"
  end
-%>
{'fraction_non_alphanumeric': 0.24074516360162407, 'fraction_numerical': 0.002866013852400287, 'mean_word_length': 7.6887966804979255, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6241094', 'n_tokens_mistral': 1613, 'n_tokens_neox': 1544, 'n_words': 159}