Queries the next matching client with the given condition in info argument. The search begins at the client with an id one greater than client field in info. If name or group field in info is not empty, the client name or the group name is compared. If a matching client is found, its attributes are stored on info and returns zero. Otherwise returns a negative error code.