The discrepancy between card text and the official glossary is a classic Star Wars Miniatures headache.
In Star Wars Miniatures, the Glossary (and Errata) typically takes precedence over card text to ensure game balance.
Nickname's May 2010 Final & Complete WotC Glossary defines "Damage Reduction [#]" universally, it effectively "patches" the text on the cards.
Regardless of the card text on the AT-AT or Mudhorn, the ability functions as Damage Reduction 20 using the Glossary definition. This means it does work against adjacent enemies, unless they have a lightsaber.
If DR20 only worked against non-adjacent enemies (per the AT-AT card text), Weak Spots 10 would be useless.
The existence of Weak Spots 10 on the AT-AT and Mudhorn proves that the designers intended for DR20 to function against adjacent enemies.
"Enemies with Lightsabers" vs. "Attacks with Lightsabers"
The AT-AT's card text ("Enemies with lightsabers") is an early-set wording quirk. Per the 2010 Glossary, it is the attack that matters. If a character like Guri (who does not have a lightsaber) uses an ability that makes her attack count as a lightsaber attack, she ignores DR20. Conversely, if a Jedi makes an attack that does not count as a lightsaber attack (rare, but possible via certain Force powers), DR20 would apply.
To play these characters correctly today, ignore the card text and use the universal rule:
DR20: Reduce all damage by 20.
Ignore if: The attacker is adjacent AND has a lightsaber, or uses Lightsaber Throw.
Weak Spots 10: If the attacker is adjacent and doesn't have a lightsaber, the reduction is capped at 10.