• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Admin Control Panel & SSO

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For details on how to enable an SSO user to be the administrator look at this post:

https://coderanch.com/t/577654 #18348
[originally posted on jforum.net by monroe]
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic