Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
[originally posted on jforum.net by gregjhonson]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
You have to be odd to be #1 - Seuss. An odd little ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic