def find_by_name(name)
      if name.include?(',')
        name = name.split(',').map(&:strip).reverse.join(" ")
      end
      entries = search(base: "ou=People,o=Columbia University, c=US", filter: Net::LDAP::Filter.eq("cn", name))
      (entries.count == 1) ? entries.first : nil
    end
def find_by_name(name)
      if name.include?(',')
        name = name.split(',').map(&:strip).reverse.join(" ")
      end
      entries = search(base: "ou=People,o=Columbia University, c=US", filter: Net::LDAP::Filter.eq("cn", name))
      (entries.count == 1) ? entries.first : nil
    end
LDAP lookup based on name.

 @param [String] name
 @return [Cul::LDAP::Entry] containing the entry matching this name, if it is unique
 @return [nil] if record could not be found or if there is more than one match