Greetings all -- I'm using Symfony 1.4.4
I followed some example blog code provided here: http://blog.honnecke.us/2010/01/using-sfdoctrineguardusers-external-authentication/ And I have in my custom authentication class the following attached code. I hit 2 different LDAP servers based upon the symfony app (frontend or backend) the user is logging into. My problem is that after login the user hitting frontend login is being redirected to a url at backend_dev.php/sfguard/user for example. Is there an sfDoctrineGuard login success redirect path I need to set for each apps routing? I'm confused how successful login at frontend redirects the user to the backend application ... ### attached code sample <?php class svCustomAuth { protected static $port = 389; #SSL 636 public static function authenticate($u,$p) { $app = sfContext::getInstance()->getConfiguration()- >getApplication(); switch ($app) { case 'frontend': # # contact campus-wide directory and validate user. # $conn = @ldap_connect('campus.edu', self::$port); @ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3); @ldap_set_option($conn, LDAP_OPT_REFERRALS, 0); $dn = "uid=$u,o=campus,campusaffiliation=employee"; return @ldap_bind($conn,$dn,$p); break; case 'backend': # # contact my dept only directory and validate help-desk user. # $conn = @ldap_connect('directory.my_department.campus.edu', self::$port); @ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3); @ldap_set_option($conn, LDAP_OPT_REFERRALS, 0); $dn = "uid=$u,cn=foo,dc=bar,dc=baz,dc=meta,dc=alpha"; return @ldap_bind($conn,$dn,$p); break; default: break; } } } ?> -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
