ClearOS Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=ec4374b9ca34170de1e532b714c1fdb5

User Tools

Site Tools


Setup eJabber

ejabber is a FOSS XMPP server. http://www.ejabberd.im/

This procedure doesn't take into account any Firewall rules. It assumes that ClearOS is in standalone mode.

Download

Download the Linux installer from http://www.process-one.net/en/ejabberd/downloads

Install
chmod +x ejabberd-2.1.8-linux-x86-installer.bin
./ejabberd-2.1.8-linux-x86-installer.bin
Start
cd /opt/ejabberd-2.1.8/
bin/ejabberdctl start
Web management interface

http://example.com:5280/admin/

Here, you can create some accounts.

Get a jabber client

http://xmpp.org/xmpp-software/clients/

(You can test with the main admin account)

If you don't know which one to take?

Configure LDAP

Change the /opt/ejabberd-2.1.8/conf/ejabberd.cfg

[root@clearos ejabberd-2.1.8]# diff conf/ejabberd.orig.cfg conf/ejabberd.cfg
196c196
< {auth_method, internal}.
---
> %%%%{auth_method, internal}.
220c220
< %%{auth_method, ldap}.
---
> {auth_method, [internal, ldap]}.
223c223
< %%{ldap_servers, ["tikisuite.org"]}.    
---
> {ldap_servers, ["tikisuite.org"]}.    
226c226
< %%{ldap_uids, [{"mail", "%u@mail.example.org"}]}. 
---
> {ldap_uids, [{"mail", "%u@tikisuite.org"}]}. 
229c229
< %%{ldap_base, "dc=example,dc=com"}. 
---
> {ldap_base, "dc=tikisuite,dc=org"}. 
232c232
< %%{ldap_rootdn, "dc=example,dc=com"}. 
---
> {ldap_rootdn, "cn=manager,cn=internal,dc=tikisuite,dc=org"}. 
235c235
< %%{ldap_password, "******"}. 
---
> {ldap_password, "Put Your Password here"}.
Restart
cd /opt/ejabberd-2.1.8/
bin/ejabberdctl restart
Security

This needs to be documented.

Known issues

* Jitsi is not connecting (but Miranda is if you uncheck TLS from default XMPP settings)

ClearOS6

1) Install ejabberd on a ClearOS 6 beta:

yum --enablerepo=epel install ejabberd

2) Enable PAM in /etc/ejabberd/ejabberd.cfg

< %% {auth_method, internal}.
---
> {auth_method, internal}.
238,239c238
< {auth_method, pam}.
< {pam_service, "system-auth"}.
---
> %%{auth_method, pam}.
content/en_us/kb_howtos_ejabberd.txt · Last modified: 2015/02/11 17:11 (external edit)