I want to get the username from the basic user authentication dialog that
pops up on a secured URL. I thought this would do it:
log("Remote user = " + req.getRemoteUser().toUpperCase());
However, it seems to return null. Does this not work? The user is
authenticated by the standard dialog box from the web server on the URL and
I would think this would get the name in the dialog box.
I have also tried:
String enc = req.getHeader("Authorization");
I did the routine with base64 encoding but it also seems to return null. Any
ideas here?
Thanks,
Gary L. Formanek
Engineering Systems
Deere Power Systems Group
Phone (319) 292-5310
Fax (319) 292-8813
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html