we are about to build several UI test with selenium-rc and the java client

the app itself is a classic asp web application that uses integrated security to retrieve the user's permissions from a database, and then, according to those permissions, displays a menu with the appropiate options.

we'd like to automate that test, something like

if the logged user is domain/user\_test then optionx shoulb be enabled
...

is there some way to programatically impersonate a domain account, so that selenimum-rc, at the server, could "run" the browser with a specified user?

or should I hack a way around so as to pass the user to the app by (for example) the querystring?

how do you handle these kind of tests?

thanks a lot...