• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
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,

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
mooooooo ..... tiny ad ....
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic