Symfony provides many methods conventions to authenticate users (basic, ldap,) and to load external user sources (ldap, database). The method presented .