Class: Ddr::Auth::LdapGateway
- Inherits:
-
Object
- Object
- Ddr::Auth::LdapGateway
- Defined in:
- lib/ddr/auth/ldap_gateway.rb
Defined Under Namespace
Classes: Result
Constant Summary collapse
- SCOPE =
Net::LDAP::SearchScope_SingleLevel
Instance Attribute Summary collapse
-
#ldap ⇒ Object
readonly
Returns the value of attribute ldap.
Class Method Summary collapse
Instance Method Summary collapse
- #find(user_key) ⇒ Object
-
#initialize ⇒ LdapGateway
constructor
A new instance of LdapGateway.
Constructor Details
#initialize ⇒ LdapGateway
Returns a new instance of LdapGateway.
17 18 19 |
# File 'lib/ddr/auth/ldap_gateway.rb', line 17 def initialize @ldap = Net::LDAP.new(config) end |
Instance Attribute Details
#ldap ⇒ Object (readonly)
Returns the value of attribute ldap.
11 12 13 |
# File 'lib/ddr/auth/ldap_gateway.rb', line 11 def ldap @ldap end |
Class Method Details
.find(user_key) ⇒ Object
13 14 15 |
# File 'lib/ddr/auth/ldap_gateway.rb', line 13 def self.find(user_key) new.find(user_key) end |