File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Admin Control Panel & SSO" Watch "Admin Control Panel & SSO" New topic
Author

Admin Control Panel & SSO

Migrated From Jforum.net
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("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

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.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Admin Control Panel & SSO