Hi every: I try to build my own logic with sfGuard for LDAP authentication because the code in the Wiki doesn't work for me. I'm based on this two posts from Sensio Labs:
http://www.symfonylab.com/extra-questions-and-solutions-for-sfguardplugin/ http://www.symfonylab.com/extending-sfguardplugin-part-2/ My code look like this: <?php require_once(dirname(__FILE__).'/../../../../../plugins/sfGuardPlugin/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php'); class sfGuardAuthActions extends BasesfGuardAuthActions { public function executeSignin(sfWebRequest $request) { if ($request->getParameter('type') == 'ldap') { echo 'Logging over domain UCI.CU'; } else if ($request->getParameter('type') == 'local') { $user = $this->getUser(); if ($user->isAuthenticated()) { return $this->redirect('@homepage'); } $class = sfConfig::get('app_sf_guard_plugin_signin_form', 'sfGuardFormSignin'); $this->form = new $class(); if ($request->isMethod('post')) { $this->form->bind($request->getParameter('signin')); if ($this->form->isValid()) { $values = $this->form->getValues(); $this->getUser()->signin($values['user'], array_key_exists('remember', $values) ? $values['remember'] : false); $signinUrl = sfConfig::get('app_sf_guard_plugin_success_signin_url', $user->getReferer('@homepage')); return $this->redirect($signinUrl); } } else { if ($request->isXmlHttpRequest()) { $this->getResponse()->setHeaderOnly(true); $this->getResponse()->setStatusCode(401); return sfView::NONE; } $user->setReferer($this->getContext()->getActionStack()->getSize() > 1 ? $request->getUri() : $request->getReferer()); $module = sfConfig::get('sf_login_module'); if ($this->getModuleName() != $module) { return $this->redirect($module.'/'.sfConfig::get('sf_login_action')); } $this->getResponse()->setStatusCode(401); } } } } ?> But when I try to execute I get this error: Strict standards: Declaration of sfGuardAuthActions::executeSignin() should be compatible with that of BasesfGuardAuthActions::executeSignin() in D:\Server\www\residencia\apps\frontend\modules\sfGuardAuth\actions\actions.class.php on line 11 Why? Cheers and thanks in advance Ing. Reynier Pérez Mira --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---