Given a (unital associative) ring $R$ and $a,b \in R, a\neq 0, b\neq 0, ab=0$, can we show that there exists an element $e \in R$ such that $e^2=e, e\ne 0, e\ne 1$?
If this is not so, does this change if we further require $R$ to be a real algebra?
Given a (unital associative) ring $R$ and $a,b \in R, a\neq 0, b\neq 0, ab=0$, can we show that there exists an element $e \in R$ such that $e^2=e, e\ne 0, e\ne 1$?
If this is not so, does this change if we further require $R$ to be a real algebra?
The ring $\mathbb R[X]/(X^2)$ is a real algebra with zero divisor and just trivial idempotents.
A commutative ring with only trivial idempotents is called connected, and there are lots of connected rings that aren't domains.
Most of the ones appearing in the search query can be taken to be $\mathbb R$ algebras. Many of them are simply local rings that aren't domains (including the one that matches Mariano's example.)
If you're still willing to consider things that aren't $\mathbb R$ algebras, then notice the one $\mathbb Z[x]/(x^2-1)$, which has no nontrivial idempotents, isn't local, and isn't a domain.