Good point, I have moved the admin users to an encrypted data bag
The LDAP implementation in ejabberd doesn't support SASL authentication. From the docs:
I was considering using different files for the vhosts, but then I could not find a way to define the hosts all at once (https://docs.ejabberd.im/admin/configuration/#host-names), so it didn't seem to make much sense to split the config. I'm going to look into what's possible
I agree that everything should be locked down (and the LDAP server should only be accessible by servers that need access) once we have added these features to akkounts. However I think the changes for akkounts should go in another issue. For now we need users to be able to change their passwords.
I agree, here's a filtered role example (for the 5apps XMPP config): kosmos/chef#123 (comment)