  A result of Barnea and Isaacs states that if $L$ is a finite dimensional
nilpotent Lie algebra with exactly two distinct centralizer dimensions, then
nilpotency class of $L$ is either $2$ or $3$. In this article, we classify all
such finite dimensional $3$-step nilpotent Lie algebras over a finite field.
