我有一个为表单身份验证配置的 SQL Server Reporting Services 2008 工作生产环境。我一直在尝试设置一个使用相同自定义授权扩展 dll 的新环境。不幸的是,它不起作用。 dll 和环境配置的原始创建者不可用。
我已验证扩展 DLL 中的 LogonUser 方法对于有效凭据返回 true,对于无效凭据返回 false。所以我知道 DLL 正在工作并且配置为可以正确访问数据库。
登录页面从 Reporting Services 中的 LogonUser Web 服务方法成功返回,Fiddler 显示它具有 authCookie,并且它被重定向到 http://myurl/ReportManager/Pages/Folder.aspx 正如我认为应该的那样。但是当重定向到此页面时,Fiddler 向我显示浏览器没有发回 authCookie。如果没有身份验证 cookie,Reporting Services 将直接返回到自定义登录页面。同一工作站和同一浏览器在访问工作旧实例时不会表现出此行为。
我纠结这应该放在这里还是服务器故障上。我最初选择ServerFault是因为扩展dll在另一个环境中工作,并且我所有的测试都表明问题不在dll中。这使我得出结论:该问题是 Reporting Services 配置问题。然而,SF 上完全缺乏回应(并且视图很少),并且我的 IT 部门完全缺乏有关表单身份验证的知识,导致我重新考虑并将问题发布在 SO 上。
预先感谢,
吉姆
编辑
我安装了 Firefox 和几个插件,然后重新运行测试。表面上观察到的行为与 IE 相同。但是,Fiddler 显示 Firefox 在重定向到 /ReportManager/Pages/Folder.aspx 时正在发送身份验证 cookie(如前所述,IE 不会执行此操作)。但 Reporting Services 似乎忽略了它,仍然重定向到登录页面。 cookie 编辑器插件表示 cookie 的名称为“authCookie”,站点为“my domain.com”。
对我来说,这似乎都是正确的,除了 RS 不断重定向到登录页面这一事实。为什么?
I have a working production environment of SQL Server Reporting Services 2008 that is configured for Forms Authentication. I have been trying to setup a new environment that uses the same custom authorization extension dll. Unfortunately, it is not working. The original creators of the dll and environment configuration are not available.
I have verified that the LogonUser method in the extension DLL return true for valid credential and false for invalid credentials. So I know that the DLL is working and configured to access the database correctly.
The logon page is getting a successful return from the LogonUser web service method in Reporting Services, Fiddler shows that it has the authCookie, and it is being redirected to http://myurl/ReportManager/Pages/Folder.aspx as I beleive it should. But when redirected to this page Fiddler shows me that the authCookie is not being sentback out by the browser. Without the auth cookie, Reporting Services goes right back to the custom login page. The same workstation and same browser does not exhibit this behavior when it accesses the working legacy instance.
I struggled over whether this should be here or on Server Fault. I originally chose Server Fault because the extension dll is working in another environment and all of my testing shows that the problem is not in the dll. That lead me to the conslusion that the issue is a Reporting Services configuration issue. However, the complete lack of response on SF (and very few views), and the complete lack of knowledge about forms authentication by my IT department has caused me to reconsider and post the question here on SO.
Thanks in advance,
Jim
Edit
I installed Firefox and a couple of add-ins, then reran my tests. The observed behavior on the surface is identical to IE. However, Fiddler shows that Firefox is sending the auth cookie when it redirects to /ReportManager/Pages/Folder.aspx(as mentioned earlier IE does not do this). But Reporting Services appears to be ignoring it and still redirects to the login page. The cookie editor addin says that the cookie has the name 'authCookie' and the site is "my domain.com".
To me this seems to all be correct except for the fact that RS keeps redirecting to the login page. Why?
发布评论