Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Admin Control Panel & SSO

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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("liferay.com.1")) {

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 jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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 jforum.net by anilhk]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For details on how to enable an SSO user to be the administrator look at this post:

http://www.coderanch.com/t/577654 #18348
[originally posted on jforum.net by monroe]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic