Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Commit 5994766

Browse files
author
Barry de Graaff
committed
update readme with new features
1 parent b12f804 commit 5994766

File tree

1 file changed

+58
-55
lines changed

1 file changed

+58
-55
lines changed

README.md

Lines changed: 58 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Zimbra Rocket
22
In this Repository you will find a simple Zimlet to connect Zimbra Collaboration with Rocket Chat, and make an amazing integration with both inside the Zimbra Web Client, it will look like:
33

4-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/zimbra-rocket-ui.png)
4+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/zimbra-rocket-ui.png)
55

66
# Instructions
77
## How to install Rocket Chat
@@ -14,77 +14,81 @@ Rocket Chat it's also designed to be deployed on Docker or Ubuntu Snap, which is
1414
* https://rocket.chat/docs/installation/docker-containers/
1515
* https://rocket.chat/docs/installation/manual-installation/ubuntu/snaps/
1616

17-
## How to Configure Rocket Chat with Zimbra LDAP
17+
## This Zimlet supports optional auto-login to Rocket using the Rocket API
18+
This Zimlet can automatically log your users on to Rocket chat and even automatically create new users on Rocket chat. That way you only need to maintain the user accounts on Zimbra (full integration). Or you can maintain your Rocket accounts via LDAP or manually, but still log them on automatically (logon-only integration). Or you can just deploy only the Zimlet and let the user decide on the authentication (basic integration).
19+
1. **Full integration**
20+
For this you need to set-up the Java server extension copy it from https://github.com/Zimbra-Community/zimbra-rocket/raw/master/extension/out/artifacts/extension_jar/extension.jar to /opt/zimbra/lib/ext/rocket/extension.jar then create a text file /opt/zimbra/lib/ext/rocket/config.properties with the contents:
21+
22+
adminuser=adminUsername
23+
adminpassword=adminPassword
24+
rocketurl=https://rocket.example.org
25+
loginurl=https://mail.example.org
26+
27+
This adminuser and password you should have created when you first installed Rocket. The loginurl is the place where we point users to that have not yet authenticated. This can be your SSO login page or the Zimbra login page. Don't forget `zmmailboxdctl restart`.
28+
29+
You must also configure Rocket chat like so:
30+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/zimbra-rocket-iframe.png)
31+
Be careful, as you can easily lock yourself out if something does not work.
32+
33+
Also enable the full iframe integration like so:
34+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/zimbra-rocket-iframe2.png?1)
35+
36+
You must also configure and deploy the Zimlet:
37+
Get a com_zimbra_rocket.zip (from Github releases) and as Zimbra user:
38+
39+
zmzimletctl deploy com_zimbra_rocket.zip
40+
41+
To configure the rocketurl in the Zimlet
42+
43+
zmzimletctl getConfigTemplate /opt/zimbra/zimlets/com_zimbra_rocket > /tmp/config_template.xml.tmp
44+
45+
Edit the /tmp/config_template.xml.tmp file according to your needs. Import the new configuration file by the running following command:
46+
47+
zmzimletctl configure /tmp/config_template.xml.tmp
48+
49+
2. **Logon-only integration**
50+
Follow the same steps as under `Full integration` except when configuring the Zimlet set `createRocketAccount` to `false`. You may also want to configure Rocket to use Zimbra LDAP. See steps below.
51+
52+
3. **Basic integration**
53+
You must configure and deploy the Zimlet:
54+
Get a com_zimbra_rocket.zip (from Github releases) and as Zimbra user:
55+
56+
57+
zmzimletctl deploy com_zimbra_rocket.zip
58+
59+
Configure the `rocketurl` in the Zimlet and set `createRocketAccount` to `false`
60+
61+
zmzimletctl getConfigTemplate /opt/zimbra/zimlets/com_zimbra_rocket > /tmp/config_template.xml.tmp
62+
63+
Edit the /tmp/config_template.xml.tmp file according to your needs. Import the new configuration file by the running following command:
64+
65+
zmzimletctl configure /tmp/config_template.xml.tmp
66+
67+
## How to Configure Rocket Chat with Zimbra LDAP (optional)
1868
Configure Rocket Chat with the Zimbra LDAP is really easy, and you must follow the next steps:
1969

2070
Go to Administration and then LDAP, and enable the LDAP option, mark the option as shown, change the LDAP hostname with your Zimbra one (the Rocket and the Zimbra must have Network visibility)
21-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-001.png)
71+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/rocket-001.png)
2272

2373
On the *Domain Base* add the next, change it with your domain: *ou=people,dc=zimbra,dc=io*
2474
On the *Domain Search User* select the next: *uid=zimbra,cn=admins,cn=zimbra*
2575
On the *Domain Search Password* add your LDAP Password, you can retrieve on the Zimbra server with *zmlocalconfig -s zimbra_ldap_password*
26-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-002.png)
76+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/rocket-002.png)
2777

2878
On the next fields, please fill them as shown:
29-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-003.png)
79+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/rocket-003.png)
3080

3181
On the latest fields, fill them as shown and finally click on test, and Sync users, and Save
32-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-004.png)
33-
34-
# How to Download and Deploy the Zimbra Rocket Zimlet
35-
Please download the .zip file, or clone this repo, you must edit the file called *com_zimbra_rocket.js* with your details like:
36-
* Name for the Tab on the next:
37-
```bash
38-
this.ZimbraRocketTab = this.createApp("Rocket", "", "Rocket");
39-
```
40-
And the Rocket Chat URL (https://YOUR-ROCHET-CHAT\) and the size of the iFrame if needed:
41-
```php
42-
app.setContent('<div style="position: fixed; left:0; width:100%; height:89%; border:0px;"><iframe id="ZimbraRocketFrame" style="z-index:2; left:0; width:100%; height:100%; border:0px;" src=\"https://YOUR-ROCHET-CHAT\"></div>');
43-
```
44-
Then create a .zip file with the files, *important* not a zip with a folder and inside the files, just files, in Linux or Mac if you are in the Folder with the files run:
45-
```bash
46-
zip -r com_zimbra_rocket.zip .
47-
adding: .DS_Store (deflated 97%)
48-
adding: com_zimbra_rocket.css (deflated 16%)
49-
adding: com_zimbra_rocket.js (deflated 63%)
50-
adding: com_zimbra_rocket.xml (deflated 55%)
51-
adding: README.md (deflated 32%)
52-
adding: rocket.png (stored 0%)
53-
```
54-
55-
Then, you are ready to add the .zip to your Admin Console as usual:
56-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-005.png)
57-
58-
If everything went okay, you will see the next message
59-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-006.png)
60-
61-
Then you need to enable the Zimlet in the Class of Service you want:
62-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-007.png)
63-
64-
And finally, the users will see it on their Tabs, and they need to introduce the credentials again, this will be fixed soon:
65-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-008.png)
82+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/rocket-004.png)
6683

6784
# Special Bonus, Zimbra Talk Integration and Zimbra Rocket
6885
Zimbra Rocket doesn't end into an amazing look-a-like Slack experience, and you can even integrate your Zimbra Talk to make video calls between users, one-to-one and one-to-many, follow the next steps to enable it:
6986

7087
Go to Administration > Videoconference and add your Zimbra Talk FQDN, and the Zimbra Talk Chrome ID for the Share Screen Feature:
71-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-009.png)
88+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/rocket-009.png)
7289

7390
Then the users will be able to call each other, or to groups by using the camera icon:
74-
![Zimbra Rocket](https://github.com/jorgedlcruz/zimbra-zimlets/raw/master/img/rocket-010.png)
75-
76-
## ToDo
77-
- [ ] Add a way to store the LDAP user and Password within the Zimlet
78-
- [ ] Make the vertical-right features bar from Rocket on all Zimbra Web Client, so keep it there static
79-
80-
## Auto-login extension
81-
Work in progress
82-
83-
config.properties
84-
adminuser=rocketAdminAccount
85-
adminpassword=rocketAdminAccountPassword
86-
rocketurl=https://yourrocket.org
87-
loginurl=https://yourZimbraOrSSOLoginUrl.org
91+
![Zimbra Rocket](https://raw.githubusercontent.com/Zimbra-Community/zimbra-rocket/master/img/rocket-010.png)
8892

8993

9094
========================================================================
@@ -108,4 +112,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108112
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109113
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
110114
THE SOFTWARE.
111-

0 commit comments

Comments
 (0)