Module: Another::Ldap::Proxy::ScopeConverter
- Defined in:
- lib/another/ldap/proxy/scope_converter.rb
Class Method Summary collapse
Class Method Details
.from_server_to_client(scope) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/another/ldap/proxy/scope_converter.rb', line 10 def self.from_server_to_client(scope) case scope when LDAP::Server::BaseObject Net::LDAP::SearchScope_BaseObject when LDAP::Server::SingleLevel Net::LDAP::SearchScope_SingleLevel when LDAP::Server::WholeSubtree Net::LDAP::SearchScope_WholeSubtree else raise "Unsupported server scope: #{scope}" end end |