我有一个使用sfDoctrineGuardPlugin
在Linux上运行的Symfony 1.4应用程序。一切安好。我正在将其移植到W2008 MSSQL并且非常接近但是无法通过401 Unauthorized错误。
该应用程序在frontend_dev.php启动,然后因为我没有登录,重定向到该插件。然后我在symfony日志中得到这个:
Feb 16 11:05:34 symfony [info] {sfBasicSecurityFilter} Action "default/login" requires authentication, forwarding to "sfGuardAuth/signin"
Feb 16 11:05:34 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
Feb 16 11:05:34 symfony [info] {sfFilterChain} Executing filter "sfGuardRememberMeFilter"
Feb 16 11:05:34 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
Feb 16 11:05:34 symfony [info] {sfGuardAuthActions} Call "sfGuardAuthActions->executeSignin()"
Feb 16 11:05:34 symfony [info] {sfPHPView} Render "C:/inetpub/wwwroot/appFROMGMCSAPP/plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/templates/signinSuccess.php"
Feb 16 11:05:34 symfony [info] {sfPartialView} Render "C:/inetpub/wwwroot/appFROMGMCSAPP/plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/templates/_signin_form.php"
Feb 16 11:05:34 symfony [info] {sfPHPView} Decorate content with "C:\inetpub\wwwroot\appFROMGMCSAPP\apps\frontend\templates/layout.php"
Feb 16 11:05:34 symfony [info] {sfPHPView} Render "C:\inetpub\wwwroot\appFROMGMCSAPP\apps\frontend\templates/layout.php"
Feb 16 11:05:34 symfony [info] {sfWebResponse} Send status "HTTP/1.1 401 Unauthorized"
我想我可以在executeSignin
中添加error_log语句..也许我的数据库无法访问,即使表格看起来不错?
答案 0 :(得分:1)
IIS上的 bug 已于去年修复:http://trac.symfony-project.org/ticket/4557
你能检查一下你有最新版的symfony& sfDoctrineGuardPlugin?另外,请检查您的应用程序内是否有扩展登录操作,401状态仍然可以。