def find_user(user, exact = false)
      raise JSS::NoSuchItemError, 'LDAPServer not yet saved in the JSS' unless @in_jss
      raw = api.get_rsrc("#{RSRC_BASE}/id/#{@id}/user/#{user}")[:ldap_users]
      exact ? raw.select { |u| u[:username] == user } : raw
    end
def find_user(user, exact = false)
      raise JSS::NoSuchItemError, 'LDAPServer not yet saved in the JSS' unless @in_jss
      raw = api.get_rsrc("#{RSRC_BASE}/id/#{@id}/user/#{user}")[:ldap_users]
      exact ? raw.select { |u| u[:username] == user } : raw
    end
Constructor


 See JSS::APIObject#initialize

 Public Instance Methods

 Search for a user in this ldap server

 @param user[String] the username to search for

 @param exact[Boolean] if true, force an exact match, otherwise use wildcards

 @return [Array<Hash>] The mapped LDAP data for all usernames matching the query