Enable LDAP for the XMPP 5apps.com vhost #132

Manually merged
raucao merged 7 commits from feature/123-ejabberd_5apps into master 2020-02-17 14:41:05 +00:00
Owner
  • Refactor the ejabberd config file to remove hardcoded values about the vhosts
  • Move each vhost's config to its own file

Refs #123

* Refactor the ejabberd config file to remove hardcoded values about the vhosts * Move each vhost's config to its own file Refs #123
raucao requested changes 2020-02-13 23:42:38 +00:00
@ -81,0 +125,4 @@
admin_users = [
"greg@5apps.com",
"sebastian@5apps.com",
"garret@5apps.com",
Owner

I don't think any other pro customer would have their users get global admin accounts for the entire Kosmos XMPP server.

I also think that these should come from an encrypted data bag, because I don't see any benefits to publishing admin account data, but only drawbacks.

I don't think any other pro customer would have their users get global admin accounts for the entire Kosmos XMPP server. I also think that these should come from an encrypted data bag, because I don't see any benefits to publishing admin account data, but only drawbacks.
Author
Owner

Good point, I have moved the admin users to an encrypted data bag

Good point, I have moved the admin users to an encrypted data bag
@ -26,0 +28,4 @@
ldap_base: "ou=<%= host[:name] %>,<%= @ldap_base %>"
ldap_filter: "(nsRole=cn=xmpp_role,ou=<%= host[:name] %>,<%= @ldap_base %>)"
<% end -%>
<% end -%>
Owner

Why should we add content to the main config file instead of adding separate files for every vhost?

Why should we add content to the main config file instead of adding separate files for every vhost?
Author
Owner

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 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
Owner

So just because of a single additional line per host it doesn't make sense to split out all the rest?

I don't quite follow to be honest.

So just because of a single additional line per host it doesn't make sense to split out all the rest? I don't quite follow to be honest.
Author
Owner

I have moved each vhost's config to its own file

I have moved each vhost's config to its own file
greg changed title from WIP: Enable LDAP on the XMPP 5apps.com vhost to Enable LDAP on the XMPP 5apps.com vhost 2020-02-17 13:37:51 +00:00
Author
Owner

This has been executed on andromeda, ready to merge

This has been executed on andromeda, ready to merge
greg changed title from Enable LDAP on the XMPP 5apps.com vhost to WIP: Enable LDAP on the XMPP 5apps.com vhost 2020-02-17 13:59:16 +00:00
Author
Owner

Do not merge for now, I found an issue in my VM

Edit: fixed the issue in the last commit

Do not merge for now, I found an issue in my VM Edit: fixed the issue in the last commit
greg changed title from WIP: Enable LDAP on the XMPP 5apps.com vhost to Enable LDAP on the XMPP 5apps.com vhost 2020-02-17 14:12:48 +00:00
raucao changed title from Enable LDAP on the XMPP 5apps.com vhost to Enable LDAP for the XMPP 5apps.com vhost 2020-02-17 14:40:46 +00:00
raucao closed this pull request 2020-02-17 14:41:04 +00:00
raucao closed this pull request 2020-02-17 14:41:05 +00:00
raucao deleted branch feature/123-ejabberd_5apps 2020-02-17 14:41:29 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/chef#132
No description provided.