On 04/05/18 12:50, Randy Oun wrote:
> As an update, the override code worked. Thanks for the guidance.
>
> Here is the code we packaged in a jar and place in the server lib:
>
> package company.catalina.realm;
>
> import java.security.Principal;
> import org.apache.catalina.realm.GenericPrincipal;
> import org.apache.catalina.realm.NullRealm;
>
> public class NoAuthRealm extends NullRealm {
> @Override
> protected Principal getPrincipal(String username) {
> return new GenericPrincipal(username, null, null);
> }
> }
>
> It would be good for this information to be updated on the Tomcat Windows Authentication
How-To docs to help others along.
>
> I also think a Tomcat patch/feature to implement a new Realm for SPNEGO/CLIENT-CERT is
a good idea. +1
AuthenticatedUserRealm
Available in 9.0.9 onwards.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|