ldap: Fallback to the database

If LDAP authentication fails, try the SQL
backend.