我正在旧的EJB 1.1 / webwork / jboss应用程序上实现Active Directory身份验证,我已经用AD的API方法替换了此代码,现在我的登录时应用程序超时了。这是下面的代码。
在AD之前:
AuthenticationManager securityMgr = (AuthenticationManager) securityCtx.lookup("securityMgr");
SimplePrincipal principal = new SimplePrincipal(_username);
char[] passwordChars = null;
if (_password != null)
passwordChars = _password.toCharArray();
securityMgr.isValid(principal, passwordChars);
AD之后:
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登录,就会将我重定向到登录页面。我想知道我是否遗漏了一些东西,请指出我正确的方向。
答案 0 :(得分:0)
我发现项目中的其他库之一存在问题