LDAP and/or freeIPA with Discourse?

Is it possible to use LDAP or specifically a freeIPA server to authenticate users on Discourse?
Is there a use case and some guidance?

Thanks