2

我正在旧的 EJB 1.1/webwork/jboss 应用程序上实现 Active Directory 身份验证,并且我已经用 AD 的 API 方法替换了此代码,现在应用程序在我登录后立即超时。这是下面的代码。

广告之前:

AuthenticationManager securityMgr = (AuthenticationManager) securityCtx.lookup("securityMgr");
  SimplePrincipal principal = new SimplePrincipal(_username);
  char[] passwordChars = null;
     if (_password != null)
         passwordChars = _password.toCharArray();
  securityMgr.isValid(principal, passwordChars);

广告之后:

UserInfo userInfo = com.authenticate.SingleSignOn.userAuthentication ("https://urllink/webservice.asmx/userAuthentication", _username, _password, "appname", "DEV", isNotExternal);

所以一旦我登录并且我被重定向到具有以下代码的页面

 <META HTTP-EQUIV="Refresh" CONTENT="0; URL=/app/login.begin.action">

这反过来又把我带到下面的java代码

if (!getRequest().getSession().isNew()) {
            getRequest().getSession().invalidate();
}
return SUCCESS:  ( In webwork it will take to waht ever page you put for success in properties file here it is login page)

问题是,一旦我使用 AD 登录,它就会将我重定向到登录页面。我想知道我是否在这里遗漏了什么,请指出正确的方向。

4

1 回答 1

0

我发现问题出在我项目中的其他库之一

于 2013-07-22T16:11:51.790 回答