permaculture playing cards*
The moose likes JForum and the fly likes Admin Control Panel & SSO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Admin Control Panel & SSO" Watch "Admin Control Panel & SSO" New topic

Admin Control Panel & SSO

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I configured my JForum as SSO to be integrated with Liferay Portal Server. The problem I'm facing now is how to access the admin control panel !!!

I could manage this in the SSO class by checking the username and if it's the admin user of the portal then try to put the session info for the admin user of JForum:

if (userName != null && userName.equals("")) {

System.out.println("LiferaySSO------>its admin--->");
session.setAttribute("user", "Admin"); // and email address (my username)
session.setAttribute("password", "admin"); // set correct password
session.setAttribute("sso.password.attribute", "admin");
ControllerUtils.addCookie("JforumSSO", "Admin"); //refresh
return "Admin";

Yet, it didn;t solve the problem!! every time I click on the control panel it redirects me to the login page but the login page is not enabled as long I'm using SSO ..

[originally posted on by Anonymous]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Using your dabase administration console, get the user_id, from jforum_users, of the user you want to allow access to the admin panel, and then insert its id in the table jforum_user_groups, relating it to the Administrators group (jforum_groups).

That's all.

[originally posted on by Rafael Steil]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424

could you please share with us the steps you had followed to integrate jforum wth liferay portlet. I am trying to convert jforum to a portlet and then to integrate it with liferay and i am facing few issues
with the integration

any help will be appreciated

[originally posted on by anilhk]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
For details on how to enable an SSO user to be the administrator look at this post: #18348
[originally posted on by monroe]
wood burning stoves
subject: Admin Control Panel & SSO
Similar Threads
hello, i'm a newbie to jforum. I have many questions to ask...
Admin User
Integrating Jforum with my web application
SSO-related question
Control Panel admin URL is missing