<commit_before># Yogo Authorization Module
# Copyright (c) 2009 Montana State University
#
# FILE: user_session.rb
# AuthLogic's user session object.
class YogoAuthz::UserSession < Authlogic::Session::Base
  # specify configuration here such as:
  # logout_on_timeout true
  # ... See the authlogic doc.
  
  # TODO: Make this configurable from somewhere else.
  # Users shouldn't have to touch this plug in to make it work.
  
  authenticate_with User
  find_by_login_method :find_by_login
  
  ldap_host 'ds.montana.edu'
  ldap_port 636
  ldap_login_format 'uid=%s,ou=People,dc=montana,dc=edu'
  find_by_ldap_login_method :find_by_ldap_login
  ldap_use_encryption true
  ldap_create_in_database true
  ldap_search_base 'ou=People,dc=montana,dc=edu'
  
  ldap_login_field :login
  ldap_password_field :password
  
  ldap_search_local_database_first true
  find_by_login_method :find_by_login
end<commit_msg>LDAP is no longer configured by default.<commit_after># Yogo Authorization Module
# Copyright (c) 2009 Montana State University
#
# FILE: user_session.rb
# AuthLogic's user session object.
class YogoAuthz::UserSession < Authlogic::Session::Base
  # specify configuration here such as:
  # logout_on_timeout true
  # ... See the authlogic doc.
  
  # TODO: Make this configurable from somewhere else.
  # Users shouldn't have to touch this plug in to make it work.
  
  authenticate_with User
  find_by_login_method :find_by_login


  ## Should be commented out for right now.
  # ldap_host 'ds.montana.edu'
  # ldap_port 636
  # ldap_login_format 'uid=%s,ou=People,dc=montana,dc=edu'
  # find_by_ldap_login_method :find_by_ldap_login
  # ldap_use_encryption true
  # ldap_create_in_database true
  # ldap_search_base 'ou=People,dc=montana,dc=edu'
  # 
  # ldap_login_field :login
  # ldap_password_field :password
  # 
  # ldap_search_local_database_first true
  # find_by_login_method :find_by_login
end
{'fraction_non_alphanumeric': 0.07269874476987448, 'fraction_numerical': 0.007322175732217573, 'mean_word_length': 4.886153846153846, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '350370', 'n_tokens_mistral': 686, 'n_tokens_neox': 655, 'n_words': 164}