You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/02/15 01:38:42 UTC

DO NOT REPLY [Bug 6219] - FORM authentication does not work when using AJP connector to IIS (tested in 4.0.1 and 4.0.2b2)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6219>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6219

FORM authentication does not work when using AJP connector to IIS (tested in 4.0.1 and 4.0.2b2)

jonathan_pierce@seagram.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



------- Additional Comments From jonathan_pierce@seagram.com  2002-02-15 00:38 -------
Thanks for finding this Marcin.

I've replaced the code with the following and it seems to fix the problem. This 
looks like the same bug as #5647 and this fix seems to fix both of them.

I'll post the fix to the news group so it gets tested and added by one of the 
committers.

Replace from line 115:

// String remoteUser = ajp.remoteUser().toString();
 // if(remoteUser != null)
 //   setUserPrincipal(new Ajp13Principal(remoteUser));

String remoteUser = ajp.remoteUser().toString();
if ((remoteUser != null) && (! remoteUser.equals ("")))
        {
            setUserPrincipal(new Ajp13Principal(remoteUser));
        }
        else
        {
		 setUserPrincipal(null);
	}

-Jonathan


*** This bug has been marked as a duplicate of 5647 ***

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>