WebSphere Application Server - Get username using request.getRemoteUser()

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > November 2007 > Get username using request.getRemoteUser()





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2007-11-28, 1:27 pm

My application is configured in the deployment descriptor web.xml in the following way:<br />
<br />
&lt;security-constraint&gt;<br />
&lt;display-name&gt;Client Certificate to autenticate on web sphere&lt;/display-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 that 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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com