我有一個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
..也許我的數據庫無法訪問,即使表看行?
我添加了一個error_log(「IN executeSignin」)後跟一個die();在BasesfGuardAuthActions中,但我在日誌中獲得的是2月16日12:06:44 symfony [info] {sfGuardAuthActions}調用「sfGuardAuthActions-> executeSignin()」即。沒有調試.. – user1024064 2013-02-16 17:07:20