It's all about the answers!

Ask a question

User can not register to RAM


pan tianming (4765644) | asked Mar 03 '11, 2:23 a.m.
We run the following codes to add user to RAM:
RAMUser user = session.getUser(email);
user.setName(name);
user.setEmail(email);

session.put(user, new RAMStatusMonitor());

The above codes run successfully, then we use following codes to check if user is registered:
RAMUser user = session.getUser(email);
if(user.isRegistered()) {
...
}

The check of user.isRegistered() return true. But the problem is this user still can not login to RAM. When he visit RAM, it always ask him to register RAM. The user must click "register" button to visit RAM.

Is this check for registered user not correct? Thanks.

5 answers



permanent link
Rich Kulp (3.6k38) | answered Mar 03 '11, 1:38 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,

Registering user does not prevent the screen from coming up. The first
time the user logs in that screen always shows up to allow the user to
configure their preferences.


--
Rich Kulp
Rational Asset Manager developer

permanent link
Rich Kulp (3.6k38) | answered Mar 03 '11, 1:53 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
On 3/3/2011 1:33 PM, Rich Kulp wrote:
One more thing:

RAMUser user =
session.getUser(email);
user.setName(name);
user.setEmail(email);

session.put(user, new RAMStatusMonitor());


will only work correctly if email is your Userid field. This is
different than login field. USERID is the field in LDAP that is
configured to be unique identification of the user. LOGINID is the field
in LDAP that the user uses to login. They are not necessarily the same
fields.

Is your system configured so that email is the USERID.

If they were configured differently then your code would create a user
that has a userid of email, but when the user actually logs in they
would create a userid of their userid, not their email.

If they were configured to be the same, then there isn't a problem.

--
Rich Kulp
Rational Asset Manager developer

permanent link
pan tianming (4765644) | answered Mar 03 '11, 9:07 p.m.
Hi Rich,

When we do the set email to user, this email id is the same one which registered in the LDAP, so I think it should be work well. But after the code run well, it still show us the page to register this user, this seems strange for me.

Thanks.

permanent link
Rich Kulp (3.6k38) | answered Mar 04 '11, 12:23 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,

Like I said this page ALWAYS shows up the first time the user ever logs
in. It is there to allow the user to customize their preferences.

All programmatic registration does is to create the appropriate user
entry in the database.

--
Rich Kulp
Rational Asset Manager developer

permanent link
pan tianming (4765644) | answered Mar 15 '11, 10:13 p.m.
Hi Rich,

Thank you for your information, we will check it.
Hi,

Like I said this page ALWAYS shows up the first time the user ever logs
in. It is there to allow the user to customize their preferences.

All programmatic registration does is to create the appropriate user
entry in the database.

--
Rich Kulp
Rational Asset Manager developer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.