OpenFire with Active Directory – Elastix

Create database for Openfire

# mysql -u root -p
mysql> create database openfire;

Goto IM tab in Elastix GUI and start the installation.

Select the MySQL DB which you have created already.

Select Profile Settings as Directory Server

Put Active Directory Credentials

Leave User Mapping as it is

Choose the admin accounts for Open Fire.

Click Continue.

If you face the “HTTP ERROR: 500 INTERNAL_SERVER_ERROR” run the following commands.

# mkdir /var/lib/php/session/cache
# chmod 777 cache

Click browser’s back button and click continue to finish the installation.

For testing install XMPP client Pandion and login with Active Directory username @ Openfire Server name and active directory password. See the screenshot.


, , , , , , , , , , , , , , , ,

  1. #1 by joe on November 16, 2011 - 4:16 PM

    After your step, “Leave User Mapping as it is” I don’t get the dialog box, “Choose the admin accounts for Open Fire.” I get “Profile Settings: Group Mapping”, and when I click next I get HTTP ERROR 500

    Problem accessing /setup/setup-admin-settings.jsp. Reason:

    Server Error

    Caused by:


    Can you help?

    • #2 by Shyju Kanaprath on November 17, 2011 - 1:31 PM

      Did you try this?

      mkdir /var/lib/php/session/cache
      chmod 777 /var/lib/php/session/cache

      • #3 by Joe on November 17, 2011 - 2:00 PM

        Yes I did try that but it did not work. However I figured out the issue. I was using Open Java, and apparently it does not work with that. So I executed sudo apt-get install oracle-java6-jre then sudo update-java-alternatives -s java-6-sun and then it worked. Thanks for responding.

      • #4 by Shyju Kanaprath on November 18, 2011 - 12:10 PM

        You are welcome. Your comment will help other readers having same issue.

  2. #5 by Лёша Терех on January 18, 2016 - 8:12 AM

    Problem accessing /setup/setup-ldap-user.jsp. Reason:

    Server Error
    Caused by:

    java.lang.ClassCastException: org.jivesoftware.openfire.user.DefaultUserProvider cannot be cast to org.jivesoftware.openfire.ldap.LdapUserProvider

    Can you help me,pls?

  3. #6 by TravisDH1 on May 2, 2017 - 8:13 PM

    Thanks for the HTTP ERROR 500 fix, saved me from chasing logs today!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: