Expanding user authentication (internal users and LDAP)

I want to be able to have LDAP users and internal users in the same application (same user table).
Is there any way to implement a mixed login form authentication where FormLoginAuthenticator and form_login_ldap are used in sequence, validating the user through whichever method returns true first?
I hope I’ve explained it right.

See Double authentication method