OpenFire – Formerly known as Wildfire server and Jive Messenger XMPP server(Extendible Messaging and Presence Protocol). Formerly known as the jabber protocol. Is written in Java.
Management has a WEB interface. Administrators can connect from any location and create/delete users, create and communicate conference rooms.
In this article we will install OpenFire 3.10.2 to FreeBSD 10.1 x64 server and configure witch PostgreSQL database. Also we will use users database from corporate Domain Controller. Before installation and configuration be sure FreeBSD ports are already updated.
Install OpenFire from ports:
[email protected]:~ # cd /usr/ports/net-im/openfire
[email protected]:/usr/ports/net-im/openfire # make config
[email protected]:/usr/ports/net-im/openfire # make -DBATCH install
Install PostgreSQL database from ports:
[email protected]:~ # cd /usr/ports/databases/postgresql94-server/
[email protected]:/usr/ports/databases/postgresql94-server # make config
[email protected]:/usr/ports/databases/postgresql94-server # make -DBATCH install
[email protected]:~ # /usr/local/etc/rc.d/postgresql initdb
Delete comment in /usr/local/pgsql/data/postgresql.conf file from the following line:
listen_addresses = ‘localhost’
In the /usr/local/pgsql/data/pg_hba.conf file change host all all 127.0.0.1/32 trust line as follows:
host all all 127.0.0.1/32 md5
Set the password for pgsql user:
[email protected]:~ # passwd pgsql
Changing local password for pgsql
New Password: password
Retype New Password: repeat_password
Login as pgsql and create user, pass and database for openfire connection:
[email protected]:~ # su pgsql
$ createuser -sdrP openfire
Enter password for new role: password
Enter it again: repeat_password
$ createdb openfire –owner=openfire
Exit from console:
Restart the PostgreSQL daemon:
[email protected]:~ # service postgresql restart
Ready! Open any web browser and go to the http://server_IP:9090/ link. You will see page as follows(Select English and click Continue button):
To connect to Active Directory, write Distinguished Name for domain.lan and Distinguished Name for Administrator account with his password. Don’t forget choose LDAP port 3268 and click Test Settings button:
DC name: domain.lan
Group name for filter: CN=openfireUsers,OU=OpSO Groups,DC=domain,DC=lan
Domain Administrator: CN=Administrator,CN=Users,DC=domain,DC=lan
For group filter click Advanced Settings and write filter syntax for openfireUsers group. This means only users from openfireUsers group can login to our OpenFire server(click Test Settings button):
Then click Continue button.
For test between users read the article OpenFire Jitsi as Skype(desktop sharing) and Temviewer(remote control).