Domanda

I'm using Symfony2 as framework but up until now I was using my own code for authentication and authorization. I decided to give Symfony's security system a try and after following the tutorial on its website I'm now able to login using my database.

But... I need to authenticate against a Radius server and an Active Directory if the authentication against the database fails.

Can these multiple methods of authentication be combined? how would I do that?

È stato utile?

Soluzione

The solution was to create my own user authentication provider. You only need to extend UserAuthenticationProvider and do your own thing in the checkAuthentication method

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top