Gandalf didn't go sneaking into Dol Guldur when he left the Dwarves in Mirkwood.
On that occasion he went to help the White Council drive Sauron out.
He was in Dol Guldur's dungeons many years before. That's where he found Thorin's father and got from him the map and the key to the side door of the Lonely Mountain.
.
|