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 SSO prohibits Registration,login for all - How admin can access Admin control panel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "SSO prohibits Registration,login for all - How admin can access Admin control panel" Watch "SSO prohibits Registration,login for all - How admin can access Admin control panel" New topic
Author

SSO prohibits Registration,login for all - How admin can access Admin control panel

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,

I imeplemented SSO using Monroe SSOCookie and though the cookie is coming as null in Forum,the user is considered as anonymous and login,registration pages are not shown to the user.

Now if admin wants to access admincontrolpanel, he has to login to the Jforum which is not possible because of SSO. I tried to copy paste the admin control panel url(http://localhost:8080/satyam/admBase/login.page) in browser and then the system shows Registration of new users is disabled. error message

http://localhost:8080/MyOwnBriefcase/jforum.page

Please let me know how to handle this scenario? Jforum is integrated with my main application where the user logs in actually. I can go to database and create a record for user admin such that he can login to main application but when he comes to forum using Cookie, how Jforum identifies him as admin and shows him admin control panel?



Thanks
Greg
[originally posted on jforum.net by gregjhonson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This is basically a logic problem.. The SSO user can not be added to the administrators group until it exists in the jForum tables. But it won't exist there until the SSO user can log on with the SSO function turn on. But if you turn on SSO, the default admin account can't log in and grant the new SSO user rights....

So, the solution for granting SSO users admin rights would be to do the following:

1) Turn on SSO and log in as the ID you want to be an admin user (creates the JForum_Users entry)

2) Turn off SSO (modify config info) and log in as default admin user (created during install)

3) Add the new SSO admin user to the administrators group

4) Turn SSO back on.
[originally posted on jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SSO prohibits Registration,login for all - How admin can access Admin control panel