Natalie Wang wrote:
Hi,

We have to retrieve the userid of the remote user when
the user logs on. But request.getRemoteUser() is
returning null in Tomcat 6. Authentication is done
through LDAP.

It works fine in Tomcat 5 and 4.

Any suggestion?

Thanks,
Natalie

This me be an issue with the Web Framework your application might by using.
Try the following code:
           String r = request.getRemoteUser();
           if (r == null)
            {
                java.security.Principal pr =  request.getUserPrincipal();
               if (pr != null){
               r = pr.getName();
               }
           }

--
Regards

Gabe Wong
NGASI AppServer Manager
Application server installation and configuration AUTOMATION
http://www.ngasi.com


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to