Class: UCB::LDAP::Namespace
Overview
Class for accessing the Namespace/Name part of LDAP.
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
Returns name.
-
#services ⇒ Object
Returns
Array
of services. -
#uid ⇒ Object
Returns uid.
Methods inherited from Entry
#assigned_attributes, #attributes, canonical, #canonical, combine_filters, create, create!, #delete, #delete!, #dn, entity_name, find_by_dn, #initialize, make_search_filter, #method_missing, #modify, #modify_operations, #net_ldap, net_ldap, object_classes, required_attributes, required_schema_attributes, schema_attribute, schema_attributes_array, schema_attributes_hash, search, set_schema_attributes, #setter_method?, tree_base, tree_base=, unique_object_class, #update_attributes, #update_attributes!, #value_getter, #value_setter
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.
43 44 45 |
# File 'lib/ucb_ldap_namespace.rb', line 43 def find_by_cn(cn) search(:filter => "cn=#{cn}").first end |
.find_by_uid(uid) ⇒ Object
Returns an Array
of Namespace for uid.
36 37 38 |
# File 'lib/ucb_ldap_namespace.rb', line 36 def find_by_uid(uid) search(:filter => "uid=#{uid}") end |
Instance Method Details
#name ⇒ Object
Returns name
14 15 16 |
# File 'lib/ucb_ldap_namespace.rb', line 14 def name cn.first end |
#services ⇒ Object
Returns Array
of services
21 22 23 |
# File 'lib/ucb_ldap_namespace.rb', line 21 def services berkeleyEduServices end |
#uid ⇒ Object
Returns uid
28 29 30 |
# File 'lib/ucb_ldap_namespace.rb', line 28 def uid super.first end |