Adapter for GSS-SPNEGO authentication in net-ldap gem
Add this line to your application's Gemfile:
gem 'net-ldap-gss-spnego'
And then execute:
$ bundle
Or install it yourself as:
$ gem install net-ldap-gss-spnego
require 'net/ldap/auth_adapter/gss_spnego'
ldap = Net::LDAP.new(
auth: {
method: :gss_spnego,
username: 'administrator',
password: 'Pa$$w0rd'
}
)