def ldap_member_of(cn)
      return [] if service.nil?
      entry = service.search(base: tree,
                                filter: Net::LDAP::Filter.equals('cn', cn),
                                attributes: ['memberof']).first
      if entry.nil?
        []
      else
        entry['memberof'].collect { |mo| mo.split(',').first.split('=')[1] }
      end
    end
def ldap_member_of(cn)
      return [] if service.nil?
      entry = service.search(base: tree,
                                filter: Net::LDAP::Filter.equals('cn', cn),
                                attributes: ['memberof']).first
      if entry.nil?
        []
      else
        entry['memberof'].collect { |mo| mo.split(',').first.split('=')[1] }
      end
    end
Searches (without recursion) LDAP groups
 @param [String] cn the group or user to search by
 @return [Array] LDAP groups for cn, one level deep, unsorted