The wiki indicates that if you have the sun domain, you'll do positive and fire damage to undead if they cannot be commanded. However, I've never dealt damage with the sun domain to undead.
For context, my character is a NG cleric of Lathander with the Healing and Sun domains (in that order) and improved turning, 16 charisma.