You cannot obtain a Light Ball legitimately in Pokémon Diamond or Pearl. The Light Ball was introduced in Pokémon Black and White and was not available in previous generations.
While glitches or external tools might allow you to acquire one, these methods are considered cheating and are not recommended for legitimate gameplay.
For accurate item locations in Diamond or Pearl, consult a reliable guide or Pokédex specific to those games.