Local DB for "guests" and LDAP for regular users

Is it possible to have LDAP configured for primary users and then allow Local DB authentication and self registration for guest users?

I have seen one thread about a hack allowing this (like 5 years ago), but this is certainly not the recommended nor supported variant.