Skip to content

Commit fbb1951

Browse files
committed
Register gss_spnego when requiring 'net/ldap'
1 parent 86e4ba1 commit fbb1951

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/net/ldap.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ class LDAP
3030
require 'net/ldap/auth_adapter'
3131
require 'net/ldap/auth_adapter/simple'
3232
require 'net/ldap/auth_adapter/sasl'
33+
require 'net/ldap/auth_adapter/gss_spnego'
3334

3435
Net::LDAP::AuthAdapter.register([:simple, :anon, :anonymous], Net::LDAP::AuthAdapter::Simple)
3536
Net::LDAP::AuthAdapter.register(:sasl, Net::LDAP::AuthAdapter::Sasl)
37+
Net::LDAP::AuthAdapter.register(:gss_spnego, Net::LDAP::AuthAdapter::Sasl)
3638

3739
# == Quick-start for the Impatient
3840
# === Quick Example of a user-authentication against an LDAP directory:

0 commit comments

Comments
 (0)