Changes

Jump to navigation Jump to search
2,286 bytes added ,  18:13, 30 March 2016
Line 1: Line 1:  
===Description===
 
===Description===
Openfire (formerly Wildfire) is a real time collaboration (RTC) server dual-licensed under the Open Source GPL and commercially. It uses the only widely adopted open protocol for instant messaging, XMPP (also called Jabber). Openfire is incredibly easy to setup and administer, but offers rock-solid security and performance.
+
Openfire (formerly Wildfire) is a real time collaboration (RTC) server dual-licensed under the Open Source GPL and commercially. It uses the only widely adopted open protocol for instant messaging, XMPP (also called Jabber). Openfire is easy to setup and administer, but offers rock-solid security and performance.
 
      +
== Prerequisite for SME 9.x ==
 +
The Java Runtime Environment included in the Openfire RPM requires that an additional library be installed 64-bit versions of SME 9.0.  To install it, run
 +
# yum install glibc.i686
    
== Download and install Openfire ==
 
== Download and install Openfire ==
   −
Go to http://www.igniterealtime.org/downloads/index.jsp and click on linux, download the latest openfire rpm and install:
+
You can find the latest version of Openfire at http://www.igniterealtime.org/downloads/index.jsp.  Download the RPM to your SME server, then run
   −
  yum localinstall openfire-3.4.4-1.i386.rpm
+
  # yum install openfire-*.rpm
    
== Create the Database ==
 
== Create the Database ==
Line 14: Line 16:  
To create the Openfire Database, you'll need to perform each of the following steps:  
 
To create the Openfire Database, you'll need to perform each of the following steps:  
   −
  mysqladmin create openfiredb
+
  # mysqladmin create openfiredb
  mysql -e "grant all privileges on openfiredb.* to openfireuser@localhost identified by 'yourpassword'"
+
  # mysql -e "grant all privileges on openfiredb.* to openfireuser@localhost identified by 'yourpassword'"
  mysql -e "flush privileges"
+
  # mysql -e "flush privileges"
cd /opt/openfire/resources/database
  −
mysql openfiredb < openfire_mysql.sql
      
{{Warning box|You may wish to alter the "openfireuser" and "yourpassword" information in the grant privileges line above. Be sure to remember to remember what you used as the web manager will ask you for it!}}
 
{{Warning box|You may wish to alter the "openfireuser" and "yourpassword" information in the grant privileges line above. Be sure to remember to remember what you used as the web manager will ask you for it!}}
 +
 +
Edit the database schema (this change does not seem to be necessary with SME 9.0 and Openfire 3.9.3):
 +
 +
# cd /opt/openfire/resources/database
 +
# nano openfire_mysql.sql
 +
 +
At line 57 starts:
 +
 +
CREATE TABLE ofRoster (
 +
  rosterID              BIGINT          NOT NULL,
 +
  username              VARCHAR(64)    NOT NULL,
 +
  jid                  VARCHAR(1024)  NOT NULL,
 +
 +
Change the jid line from 1024 to 255 as shown:
 +
 +
  jid                  VARCHAR(255)    NOT NULL,
 +
 +
Import the revised database schema:
 +
 +
# mysql openfiredb < openfire_mysql.sql
    
== Access MySQL from the local network ==
 
== Access MySQL from the local network ==
Line 60: Line 80:     
[[Image:Openfire 4.jpg]]
 
[[Image:Openfire 4.jpg]]
 +
 +
== LDAP Authentication ==
 +
Openfire can be configured to authenticate users through your SME Server's OpenLDAP server.  This will allow you to use a single user and password source, rather than needing to maintain two or more separate databases.  This is recommended unless you have a particular reason to want a separate user list for your Openfire installation.  To begin, on the Profile Settings screen, select '''Directory Server (LDAP)''':
 +
 +
[[Image:Openfire_ldap_1.png]]
 +
 +
Fill in the Connection Settings screen as shown below, replacing '''yourdomain''' and '''tld''' with your primary domain name and top-level domain, as appropriate.  For example, if your domain were example.com, you'd enter '''dc=example,dc=com'''.  For the password field, enter your admin user's password.
 +
 +
[[Image:Openfire_ldap_2.png]]
 +
 +
Click '''Test Settings''' to make sure you're able to connect.  Then click '''Save & Continue'''.
 +
 +
On the User Mapping page, just scroll to the bottom and click '''Save & Continue'''.
 +
 +
[[Image:Openfire_ldap_3.png]]
 +
 +
Similarly, on the Group Mapping page, click '''Save & Continue'''.
 +
 +
[[Image:Openfire_ldap_4.png]]
 +
 +
On the Administrator Account screen, enter '''admin''' and click '''Add'''.
 +
 +
[[Image:Openfire_ldap_5.png]]
 +
 +
On the next page, your admin account will be listed.  Click the Test button to confirm that it will authenticate this account.
 +
 +
[[Image:Openfire_ldap_6.png]]
 +
 +
You should see the Success page below.  If you do, you can close it.  You can optionally add other administrator users on this page.
 +
 +
[[Image:Openfire_ldap_7.png]]
    
== SME Server specific configuration ==
 
== SME Server specific configuration ==
Line 81: Line 132:  
Create and edit a file called "99openfire"
 
Create and edit a file called "99openfire"
   −
  pico -w 99openfire
+
  nano -w 99openfire
    
(add the code shown below to the template)
 
(add the code shown below to the template)
Line 125: Line 176:  
  signal-event remoteaccess-update
 
  signal-event remoteaccess-update
    +
----
 
[[Category:Howto]]
 
[[Category:Howto]]
 +
[[Category: Social Media Apps]]
147

edits

Navigation menu