Hi,
I managed to make Ejabberd work with Pleroma for user authentication. And I wanted to share with everyone. I created a public repo here: https://github.com/alirizakeles/ejabberd-pleroma-auth
This PR basically a copy of mongoose.im document to describe how to do that.
Thanks.