I believe this riddle is the one refering to Gandalf trying to figure out what to say to get the back door of Moria to open.
The answer is: Friend
Fred