intridea/omniauth-ldap — pull request #11 by poshboytl (2012-01-06 13:53:41+00:00)
Title: Move Adaptor instance initializtion in callback phase

Which can make setup phase work correctly. And also do some indentation fix.

provider :ldap, :setup => lambda {|env|
env['omniauth.strategy'].options[:host] = env['rack.session'][:host]
env['omniauth.strategy'].options[:port] = env['rack.session'][:port]
}