Class: UCB::LDAP::Namespace
Overview
Class for accessing the Namespace/Name part of LDAP.
Constant Summary
Constants inherited from Entry
Class Method Summary collapse
-
.find_by_cn(cn) ⇒ Object
Returns Namespace instance for cn.
-
.find_by_uid(uid) ⇒ Object
Returns an
Array
of Namespace for uid.
Instance Method Summary collapse
- #name ⇒ Object
-
#services ⇒ Object
Returns
Array
of services. - #uid ⇒ Object
Methods inherited from Entry
#assigned_attributes, #attributes, canonical, #canonical, combine_filters, create, create!, #dn, entity_name, filter_in, find_by_dn, #initialize, make_search_filter, #method_missing, net_ldap, #net_ldap, object_classes, required_attributes, required_schema_attributes, schema_attribute, schema_attributes_array, schema_attributes_hash, search, set_schema_attributes, tree_base, tree_base=, unique_object_class
Constructor Details
This class inherits a constructor from UCB::LDAP::Entry
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class UCB::LDAP::Entry
Class Method Details
.find_by_cn(cn) ⇒ Object
Returns Namespace instance for cn.
36 37 38 39 |
# File 'lib/ucb_ldap/namespace.rb', line 36 def self.find_by_cn(cn) warn "DEPRECATED: Namespaces are no longer supported by LDAP. This method always returns an empty Array" [] end |
.find_by_uid(uid) ⇒ Object
Returns an Array
of Namespace for uid.
28 29 30 31 |
# File 'lib/ucb_ldap/namespace.rb', line 28 def self.find_by_uid(uid) warn "DEPRECATED: Namespaces are no longer supported by LDAP. This method always returns an empty Array" [] end |
Instance Method Details
#name ⇒ Object
10 11 12 |
# File 'lib/ucb_ldap/namespace.rb', line 10 def name cn.first end |
#services ⇒ Object
Returns Array
of services
17 18 19 |
# File 'lib/ucb_ldap/namespace.rb', line 17 def services berkeleyEduServices end |
#uid ⇒ Object
21 22 23 |
# File 'lib/ucb_ldap/namespace.rb', line 21 def uid super.first end |