bug #3300: Fix oneuser login for ruby 1.8.7

(cherry picked from commit 43f66174c2ef4b757dc56b1d2a5b8401ed7db0f9)