| 1 |
Rocket.Chat |
| 2 |
=========== |
| 3 |
|
| 4 |
|image0| |
| 5 |
|
| 6 |
Presentation |
| 7 |
------------ |
| 8 |
|
| 9 |
`Rocket.Chat <https://www.rocket.chat//>`__ is an open source communications platform. |
| 10 |
|
| 11 |
This documentation explains how to interconnect LemonLDAP::NG and |
| 12 |
Rocket.Chat using SAML 2.0 protocol. |
| 13 |
|
| 14 |
Pre-requisites |
| 15 |
-------------- |
| 16 |
|
| 17 |
.. _rocketchat-1: |
| 18 |
|
| 19 |
|
| 20 |
Rocket.Chat |
| 21 |
~~~~~~~~~~~ |
| 22 |
|
| 23 |
Assuming you already have a rocketchat setup. |
| 24 |
|
| 25 |
Installing rocketchat chat software is documented on the `official Rocket.Chat documentation <https://docs.rocket.chat/quick-start/deploying-rocket.chat>`__. |
| 26 |
|
| 27 |
|
| 28 |
Rocket.Chat, SAML 2.0 configuration |
| 29 |
----------------------------------- |
| 30 |
|
| 31 |
Configuration of SAML 2.0 in Rocket.Chat is pretty straightforward once certificate are created. |
| 32 |
|
| 33 |
|
| 34 |
Create Certificate of Service provider for Rocket.Chat |
| 35 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 36 |
|
| 37 |
You will need private key and public key within a certificate to |
| 38 |
identify your SP in LL:NG Idp. |
| 39 |
|
| 40 |
Select a host with a secure filesystem as a secure random source since private keys are generated. |
| 41 |
|
| 42 |
To create a private key and self-sign a certificate for its public key |
| 43 |
|
| 44 |
please adapt to your country/state |
| 45 |
|
| 46 |
It is recommended to use rocketchat hostname for Common Name. |
| 47 |
|
| 48 |
:: |
| 49 |
|
| 50 |
certname=rocketchat_saml |
| 51 |
openssl req -new -newkey rsa:4096 -keyout $certname.key -nodes -out $certname.pem -x509 -days 3650 |
| 52 |
|
| 53 |
Country Name (2 letter code) [AU]:BTN |
| 54 |
State or Province Name (full name) [Some-State]:North |
| 55 |
Locality Name (eg, city) []:Thimphou |
| 56 |
Organization Name (eg, company) [Internet Widgits Pty Ltd]:NGO |
| 57 |
Organizational Unit Name (eg, section) []: |
| 58 |
Common Name (e.g. server FQDN or YOUR name) []:rocketchat.example.com |
| 59 |
Email Address []: |
| 60 |
|
| 61 |
Please note that once you have copied those in following process it is recommended to remove private |
| 62 |
key file from your system. |
| 63 |
|
| 64 |
Configure SAML within RocketChat |
| 65 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 66 |
|
| 67 |
SAML authentication that is documented on the `official Rocket.Chat SAML documentation |
| 68 |
<https://docs.rocket.chat/guides/administration/admin-panel/settings/saml/rocket.chat-server-settings>`__ |
| 69 |
|
| 70 |
Select a **Custom Provider** name that does not contain spaces. It will be |
| 71 |
used as part of metadata url **Custom Issuer** and as name of SAML service |
| 72 |
provider in further LL:NG configuration. |
| 73 |
|
| 74 |
Unfold **Certification** and fill with rocketchat_saml.key rocketchat_saml.pem |
| 75 |
content created previously. |
| 76 |
|
| 77 |
|
| 78 |
LL:NG, SAML 2.0 Service Provider configuration |
| 79 |
---------------------------------------------- |
| 80 |
|
| 81 |
You should have configured LL::NG as an :doc:`SAML Identity Provider<../idpsaml>`. |
| 82 |
|
| 83 |
We now have to define a service provider (e.g our rocketchat) in LL:NG. |
| 84 |
|
| 85 |
Go to "SAML service providers", click on "Add SAML SP". |
| 86 |
|
| 87 |
In the new subtree 'Rocket.Chat', open 'Metadata' and paste the content of |
| 88 |
your previously downloaded file (or upload the file from Custom Issuer url) |
| 89 |
|
| 90 |
Now go in "Exported attributes" and add the 'uid' and 'mail' |
| 91 |
|
| 92 |
'mail' is needed for rocketchat initial mail enrollment. |
| 93 |
|
| 94 |
Don't forget to save your configuration. |
| 95 |
|
| 96 |
You are now good to go, and you can add the application in |
| 97 |
:doc:`your menu<../portalmenu>` and |
| 98 |
:doc:`your virtual hosts<../configvhost>`. |
| 99 |
|
| 100 |
.. |image0| image:: /applications/rocketchat-logo.png |
| 101 |
:class: align-center |