Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why request.getRemoteUser() returning null  RSS feed

 
Baiju Varugese
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why request.getRemoteUser() returning -- > null
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Baiju,
getRemoteUser() returns null when the user is not authenticated. Maybe you do not have security enabled?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There can also be some server specific behaviour.
For example, WebSphere will only return the user name in resources requiring authentication. If the resource doesn't require authentication and the user is logged in, it will still return null :roll:
 
Baiju Varugese
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you, but the user is logged using nt authentication and the system has environment variable username which has the user name value also, the user is authenticated in the domain
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getRemoteUser() has nothing to do with Windows authentication.
[ August 16, 2005: Message edited by: Bear Bibeault ]
 
Rob Jose
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would you get the user that is logged into Windows? I have looked everywhere, but can't find it.

Thanks
Rob
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's becasue it can't be done -- at least not via the standard Java APIs. You'd need to interface to some Windows-specific mechanism.
[ August 24, 2005: Message edited by: Bear Bibeault ]
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this page.

-Yuriy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!