Get username using request.getRemoteUser()
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > Get username using request.getRemoteUser()




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Get username using request.getRemoteUser()  
pararede.nuno@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-28-07 06:27 PM

My application is configured in the deployment descriptor web.xml in the fol
lowing way:<br />
<br />
&lt;security-constraint&gt;<br />
&lt;display-name&gt;Client Certificate to autenticate on web sphere&lt;/disp
lay-name&gt;<br />
&lt;web-resource-collection&gt;<br />
&lt;web-resource-name&gt;Protected Area&lt;/web-resource-name&gt;<br />
&lt;!-- Define the context-relative URL(s) to be protected --&gt;<br />
&lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br />
&lt;/web-resource-collection&gt;<br />
&lt;/security-constraint&gt;<br />
<br />
&lt;login-config&gt;<br />
&lt;auth-method&gt;BASIC&lt;/auth-method&gt;<br />
&lt;/login-config&gt;<br />
<br />
I was hoping that the request.getRemoteUser() return the name of the user th
at is assign in the email field of the certificate but returns me null!<br /
>
<br />
Is necessary to configured something in WebSphere Application Server ND? And
 in the Web Server configurations?<br />
<br />
<br />
<br />
Thanks,<br />
Nuno





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:28 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register