Openfire Server Installation and Configuration

Openfire Server Installation And Configuration

Openfire is a messaging collaboration server licensed under the open source Apache foundation.  It uses open protocol called XMPP (Jabber) which is widely used for Instant messaging system, the features supported (Text Chat , Voice Chat , Files sharing , Desktop sharing & archive). Let us see the steps of Openfire server installation and configuration.

Openfire Support on Windows and Linux platform

Server :  Openfire
Client  :  Spark and other

Openfire server installation and configuration guide has prepare on following platform and services.

Operating System : CentOS release 6.4 (Final) 64bit
Openfire               : openfire-3.8.1-1.i386.rpm
JDK                       : java version “java version “1.7.0_45″” 64bit(jdk-6u45-linux-x64-rpm.bin)
Domain                 : Directory)
Openfire Server IP address  :
Authentication       : Active Directory


Centos / Redhat Box : 1 No’s ( virutal / Physical)
Java : jdk-xxx

Steps :

Step 1: Download and install JDK

Step 2: Download and install Openfire

Step 3: Configure Openfire & Active Directory authentication integration.

Step 4: Spark Client installation and configuration

Let us see the steps in details:

Step 1: Download the latest jdk package suitable to OS and install JDK

[root@VHOST2 ~]# cd /opt/

1.1  You can download latest jdk from website or download using below command line

[root@VHOST2 opt]#wget --no-cookies --header "Cookie:" "" -O /opt/jdk-6u45-linux-x64-rpm.bin --no-check-certificate

1.2  Install jdk package by executing below command

[root@VHOST2 opt]#rpm -ivh jdk-6u45-linux-x64-rpm.bin

1.3 Verify Java installation by executing below command

[root@VHOST2 opt]#java -version

java version “1.7.0_45”

Java(TM) SE Runtime Environment (build 1.7.0_45-b18)

Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)


Step 2: Download and install Openfire

2.1 Download openfire package

[root@VHOST2 opt]#wget

2.2 Install openfire package

#rpm -ivh openfire-3.8.1-1.i386.rpm

2.3 Start Openfire services and set “ON”  boot level

[root@VHOST2 opt]#chkconfig openfire on

[root@VHOST2 opt]#service openfire start

# ls

# cd openfire

# ls


Step 3: Configure Openfire & Active Directory authentication integration.

3.1  Switch to Active Directory server and create a user with schema privileges by delegating

IP Address of AD server :
Create a user                 : Openfire
Assign permissions         : schema Read permission
Other users                     : prem,moiz & david
Create Groups                : Accounts , Finance & Marketing

3.1.1  Check openfire status

# service openfire status

3.1.2  Check IP address of the AD server

3.1.3   Create user in Active Directory

Click on start -> Active Directory Users and Computers

Then, right click -> New -> User

Then fill the information for Openfire:

And click on Next >

Enter the password and click Next >

Then Click on Finish

3.1.4   Delegating the control

Right Click on Users ->  Delegate control

Then click on Next Button  -> add

Write  “openfire” on the text -> Check Names -> ok

Click on Next button.

Then in “Delegate the following common task” select options like:

1. Read all user information

2. Read all inetOrgPerson information

Then click “Next” button

Click on “Finish” Button

3.1.5   Create other Users like: prem, moiz & david

Right click -> User

Fill the information for user 1 “prem”

and click “Next -> Finish

Proceed the same procedure for 2nd  user like “moiz”

Proceed the same procedure for 3rd  user like “david”

3.1.6   Create groups like: Account, Marketing, Finance

For Finance group

Right click -> New -> Group

Write group name “finance” and click on OK  button

Follow the same procedure to create Groups for Account and Marketing also.

3.1.7    Assign the member for each group

For account :

Right click on account -> Properties -> Members -> Add

Enter user name like “moiz” and click on Ok -> Apply

For Marketing :
Proceed the same procedure as like account.

Right click on marketing  -> Properties -> Members -> Add

Enter user name like “david” and click on Ok -> Apply

For Finance :

Proceed the same procedure.

Right click on finance  -> Properties -> Members -> Add

Enter user name like “prem” and click on Ok -> Apply

 3.2   Active Directory authentication settings in Openfire

Server Type         : Active Directory
Host                     :
Port                      : 389
Base DN               : CN=Users,DC=solutionsatexperts,DC=com
Administrator DN  : Openfire

3.2.1 Invoke the URL using any of the browser within the network (Google chrome, Firefox or iexplorer)

 Choose language English -> click on Continue

3.2.2 Fill the Server Setting information

Domain like:

And click on “Continue” Button

3.2.3 Choose  Database Setting as “Embedded Database

And click on “Continue

3.2.4 Choose Profile Setting as “Directory Server(LDAP)

And click on “Continue

3.2.5  The Profile Setting includes  3 Steps

 Step I: Connection Setting

Fill the information Regarding LDAP Server

Server type as Active Directory, Host, Port and Base DN

For Base DN follow the following procedure:

Click on start -> Active Directory Users and Computers -> right click on Users -> Properties -> Attribute Editor -> Distinguished name

Then copy the displayed path

 Step II.  User Mapping

Click “save & continue

Step III.  Group Mapping

Click on “save & continue

3.2.6 Now in Administrator Account add Name “moiz” which is member of account group

And click on “continue

You  got Message like: Setup Complete!

3.2.7 Then click on “Login to the admin console

3.2.8 Enter username and password

And  login

You got the page of  Server Information

3.2.9 Select on “Server Setting

It displays the Information of  Profile Setting

3.2.10 Click on Plugins

Select Available Plugins and  install the Plugins like : Monitoring Service , motD (message of the Day)



3.2.11 Select Server -> Archiving

Select Users/Groups

It displays the User Summery that is List of Users

3.2.12   Select “Groups

In this you can Edit the Group information with the help of select the Group and make changes
in it and click on “Save Contact List Setting


Step 4: Spark Client installation and configuration

Openfire client software tools for Windows / Linux, download from following URL(recommended : spark)

Setup the spark

1. Right click on spark setup file -> Run as Administrator

2. Click “Next”  until  “Finish” window

3. Now you got the login window.

4. Enter the Username, Password  and IP Address of server

And login

For Ex.  Username = moiz

Password = ****

Server =

5. Now you got the chat window:

For more detail you can watch video :

Leave a Reply

Your email address will not be published. Required fields are marked *

− 2 = 1