Theory of the near-wall conductivity