1

I have a Symfony 1.4 app working on Linux using sfDoctrineGuardPlugin. Everything's fine. I am porting this to W2008 MSSQL and am really close BUT cannot get past the 401 Unauthorized error. The app starts up at frontend_dev.php and then because i'm not logged in, redirects to the plugin. I then get this in the symfony log:

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"

I guess I can add error_log statements into the executeSignin.. maybe my DB is not accessible even though the tables look ok ??

4

1 回答 1

1

IIS 上的这个错误已于去年修复: http: //trac.symfony-project.org/ticket/4557

你能检查一下你有最新版本的 symfony 和 sfDoctrineGuardPlugin 吗?另外,检查您是否没有在应用程序中扩展登录操作,401 状态仍然可以。

于 2013-02-17T08:49:01.207 回答