<application-policy name = "ynnssb">以及表单认证和这的关系原

  • 主题发起人 主题发起人 liumingabc
  • 开始时间 开始时间
L

liumingabc

Unregistered / Unconfirmed
GUEST, unregistred user!
&amp;lt;application-policy name = &amp;quot;ynnssb&amp;quot;&amp;gt;以及表单认证和这的关系原理是什么? ( 积分: 50 )<br /> &amp;lt;application-policy name = &quot;ynnssb&quot;&amp;gt;
&amp;lt;authen
tication&amp;gt;
&amp;lt;login-module code = &quot;org.jboss.security.auth.spi.DatabaseServerLoginModule&quot;
flag = &quot;required&quot;&amp;gt;
&amp;lt;module-option name=&quot;dsJndiName&quot;&amp;gt;java:/electax&amp;lt;/module-option&amp;gt;
&amp;lt;module-option name=&quot;principalsQuery&quot;&amp;gt;select Password from dj_nsrmm where rtrim(nsrsbh)=? and isvalid='1'&amp;lt;/module-option&amp;gt;
&amp;lt;module-option name=&quot;rolesQuery&quot;&amp;gt;select 'USERS' as Role, 'Roles' as RoleGroup from dj_nsrmm where rtrim(nsrsbh)=?&amp;lt;/module-option&amp;gt;
&amp;lt;/login-module&amp;gt;
&amp;lt;/authen
tication&amp;gt;
&amp;lt;/application-policy&amp;gt;
以下表单认证
&amp;lt;form method=&quot;POST&quot;
action=&quot;j_security_check&quot;
name=form1&amp;gt;
&amp;lt;TR&amp;gt;
&amp;lt;TD class=TopLighNav2 height=30 align=center&amp;gt;

用户名:&amp;lt;input type=&quot;text&quot;
name=&quot;j_username&quot;
onkeydown=&quot;setFocus()&quot;&amp;gt;
&amp;lt;br&amp;gt;
密&amp;nbsp;&amp;nbsp;码:&amp;lt;input type=&quot;password&quot;
name=&quot;j_password&quot;
onkeydown=&quot;setFocus()&quot;&amp;gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;input type=&quot;submit&quot;
name=&quot;login&quot;
value=&quot;
确 定 &quot;
class=&quot;buttonx3&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;input type=&quot;button&quot;
name=&quot;login&quot;
value=&quot;
退 出 &quot;
onclick=&quot;closeme()&quot;
class=&quot;buttonx3&quot;&amp;gt;

&amp;lt;/TD&amp;gt;
&amp;lt;/TR&amp;gt;
&amp;lt;/form&amp;gt;
 
&amp;lt;application-policy name = &quot;ynnssb&quot;&amp;gt;
&amp;lt;authen
tication&amp;gt;
&amp;lt;login-module code = &quot;org.jboss.security.auth.spi.DatabaseServerLoginModule&quot;
flag = &quot;required&quot;&amp;gt;
&amp;lt;module-option name=&quot;dsJndiName&quot;&amp;gt;java:/electax&amp;lt;/module-option&amp;gt;
&amp;lt;module-option name=&quot;principalsQuery&quot;&amp;gt;select Password from dj_nsrmm where rtrim(nsrsbh)=? and isvalid='1'&amp;lt;/module-option&amp;gt;
&amp;lt;module-option name=&quot;rolesQuery&quot;&amp;gt;select 'USERS' as Role, 'Roles' as RoleGroup from dj_nsrmm where rtrim(nsrsbh)=?&amp;lt;/module-option&amp;gt;
&amp;lt;/login-module&amp;gt;
&amp;lt;/authen
tication&amp;gt;
&amp;lt;/application-policy&amp;gt;
以下表单认证
&amp;lt;form method=&quot;POST&quot;
action=&quot;j_security_check&quot;
name=form1&amp;gt;
&amp;lt;TR&amp;gt;
&amp;lt;TD class=TopLighNav2 height=30 align=center&amp;gt;

用户名:&amp;lt;input type=&quot;text&quot;
name=&quot;j_username&quot;
onkeydown=&quot;setFocus()&quot;&amp;gt;
&amp;lt;br&amp;gt;
密&amp;nbsp;&amp;nbsp;码:&amp;lt;input type=&quot;password&quot;
name=&quot;j_password&quot;
onkeydown=&quot;setFocus()&quot;&amp;gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;input type=&quot;submit&quot;
name=&quot;login&quot;
value=&quot;
确 定 &quot;
class=&quot;buttonx3&quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;lt;input type=&quot;button&quot;
name=&quot;login&quot;
value=&quot;
退 出 &quot;
onclick=&quot;closeme()&quot;
class=&quot;buttonx3&quot;&amp;gt;

&amp;lt;/TD&amp;gt;
&amp;lt;/TR&amp;gt;
&amp;lt;/form&amp;gt;
 
后退
顶部