无法在linux上使用tomcat实现华夫格身份验证。javax.security.auth.login.LoginException:
我在linux上使用tomcat,尝试使用华夫格对用户进行身份验证 我的META_INF/context.xml是无法在linux上使用tomcat实现华夫格身份验证。javax.security.auth.login.LoginException:,java,linux,tomcat,tomcat7,waffle,Java,Linux,Tomcat,Tomcat7,Waffle,我在linux上使用tomcat,尝试使用华夫格对用户进行身份验证 我的META_INF/context.xml是 <?xml version='1.0' encoding='utf-8'?> <Context> <Realm className="org.apache.catalina.realm.JAASRealm" appName="Jaas" userClassNames="waffle.jaas.UserPrincipal"
<?xml version='1.0' encoding='utf-8'?>
<Context>
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="Jaas"
userClassNames="waffle.jaas.UserPrincipal"
roleClassNames="waffle.jaas.RolePrincipal"
useContextClassLoader="false"
debug="true" />
</Context>
在我的web.xml中,我给出了
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Jaas</realm-name>
</login-config>
<security-role>
<role-name>Everyone</role-name>
</security-role>
<security-constraint>
<display-name>Waffle Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Everyone</role-name>
</auth-constraint>
</security-constraint>
基本的
Jaas
每个人
华夫格安全约束
保护区
/*
每个人
我认为错误在于我如何启动tomcat并使用它,我没有任何.policy文件经过长期研究,我发现华夫格在任何*nix系统上都不起作用。经过长期研究,我发现华夫格在任何*nix系统上都不起作用。经过长期研究,我发现华夫格在任何*nix系统上都不起作用。经过长期研究,我发现华夫格格在任何*nix系统上都不起作用系统。没错。。我也面临同样的问题。但是我们可以使用kerberos来实现Linux吗?这是真的。。我也面临同样的问题。但是我们可以使用kerberos来实现Linux吗?这是真的。。我也面临同样的问题。但是我们可以使用kerberos来实现Linux吗?这是真的。。我也面临同样的问题。但是我们可以使用kerberos来实现Linux吗?
Jaas {
waffle.jaas.WindowsLoginModule sufficient debug=false;
};
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Jaas</realm-name>
</login-config>
<security-role>
<role-name>Everyone</role-name>
</security-role>
<security-constraint>
<display-name>Waffle Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Everyone</role-name>
</auth-constraint>
</security-constraint>