lib/gollum/frontend/ldap_authentication.rb
# This is where LDAP jumps up and punches you in the face, all the while
# screaming "You never gunna get this, your wasting your time!".
This is where LDAP jumps up and punches you in the face, all the while
screaming "You never gunna get this, your wasting your time!".
This is where LDAP jumps up and punches you in the face all the while screaming " You never gunna get this your wasting your time! " .
def args_for(username, password)
      user_filter = "#{ LDAP[:username_attribute] }=#{ username }"
      args        = { :base     => LDAP[:base],
                      :filter   => "(#{ user_filter })",
                      :password => password }
      unless LDAP[:can_search_anonymously]
        user_dn = [user_filter, LDAP[:base]].join(',')
        args.merge({ :auth => { :username => user_dn, :password => password, :method => :simple } })
      end
      args
    end
def args_for ( username , password ) user_filter = "#{ LDAP[:username_attribute] }=#{ username }" args = { :base => LDAP [ :base ] , :filter => "(#{ user_filter })" , :password => password } unless LDAP [ :can_search_anonymously ] user_dn = [ user_filter , LDAP [ :base ] ] . join ( ',' ) args . merge ( { :auth => { :username => user_dn , :password => password , :method => :simple } } ) end args end
This is where LDAP jumps up and punches you in the face, all the while
screaming "You never gunna get this, your wasting your time!
This is where LDAP jumps up and punches you in the face all the while screaming " You never gunna get this your wasting your time!
# If you can't search your LDAP directory anonymously we'll try and # authenticate you with your user dn before we try and search for your # account (dn example. `uid=clowder,ou=People,dc=mycompany,dc=com`).
username
password