Maximo,
I know Sergey already solved the issue (what a surprise!), and, although you probably already figured it out, I just wanted to add a little for the sake of completeness, and for future lurkers, because you mentioned something about not getting the second parameter (domain) and then the issue was forgotten, but you can also get the domain the same way you got the user name, as the second parameter also works fine
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges