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 request.getRemoteUser() returns null. (Sun App Server 8.1) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "request.getRemoteUser() returns null. (Sun App Server 8.1)" Watch "request.getRemoteUser() returns null. (Sun App Server 8.1)" New topic
Author

request.getRemoteUser() returns null. (Sun App Server 8.1)

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,

I am trying to implement SSO using JForum. In my case, Users are already logged into a specific domain.(Windows) And then, when they try to access JForum, they should be automatically logged in with the domain user ID.

I have changed the SystemGlobals.properties file : authentication.type = sso

But in the RemoteUserSSO.java, the function request.getRemoteUser() returns null.

Based on some previous post, I could see that this function will return some value if the authenticated user is available in the request object. There are few pointers to change certain settings for this in Tomcat. But I am using Sun Java System Application Server 8.1 to deploy Jforum web app.

Please let me know if there are any settings to be done in Sun App server so that the authenticated windows logged in user id is returned in the request.

PLEASE HELP...
[originally posted on jforum.net by Sanjana]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
hi
[originally posted on jforum.net by gregjhonson]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
request.getRemoteUser() will return null if there is no "upstream" security agent. E.g., Apache front ending with an .htaccess rule or a J2EE security constraint in the web.xml file.

The Sun application server will support the J2EE security constraints in the web.xml (see Specs for details). It MAY support doing such constraints across web-apps, but this is not part of the spec. You'll have to check your app server docs.
[originally posted on jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request.getRemoteUser() returns null. (Sun App Server 8.1)