Developers Documentation

×

Warning

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

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 10:11 (external edit)

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3Akb_howtos_ejabberd&1710828333