lib/account_manager/directory.rb
#
# Return the first value of the specified attribute for the specified
# uid.
#
Return the first value of the specified attribute for the specified
uid.
Return the first value of the specified attribute for the specified uid .
def first(uid, attr)
        first = nil
        search "(uid=#{uid})" do |entry|
          first = entry[attr].first
        end
        first
      end
def first ( uid , attr ) first = nil search "(uid=#{uid})" do | entry | first = entry [ attr ] . first end first end
Return the first value of the specified attribute for the specified
uid.
Return the first value of the specified attribute for the specified uid .
uid
<not_specific>
attr
<not_specific>