2013-02-16 134 views
1

我有一個Symfony 1.4應用程序在Linux上使用sfDoctrineGuardPlugin。一切安好。我正在將此移植到W2008 MSSQL中,並且非常接近,但無法通過401未經授權的錯誤。 該應用程序啓動在frontend_dev.php,然後因爲我沒有登錄,重定向到插件。然後我在symfony的日誌得到這樣的:sfDoctrineGuardPlugin windows 2008 401未授權

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" 

我想我可以添加的error_log語句到executeSignin ..也許我的數據庫無法訪問,即使表看行?

+0

我添加了一個error_log(「IN executeSignin」)後跟一個die();在BasesfGuardAuthActions中,但我在日誌中獲得的是2月16日12:06:44 symfony [info] {sfGuardAuthActions}調用「sfGuardAuthActions-> executeSignin()」即。沒有調試.. – user1024064 2013-02-16 17:07:20

回答

1

錯誤在IIS去年已經定:http://trac.symfony-project.org/ticket/4557

你可以檢查你有一個高達symfony的& sfDoctrineGuardPlugin的最新版本?另外,請檢查您的應用程序中是否還擴展了登錄操作,401狀態仍可以。

+0

謝謝jOk,我會嘗試.. – user1024064 2013-02-18 03:48:43