Disclaimer: This assumes you use the default install directories, this assumes you have general UNIX knowledge, this also assumes you are using version openfire 3.6.3. This guide may fail in the next release but hey I got you this far didn’t I:)
Getting Started
- In the admin interface after initial configuration
Server -> Server Manager -> System Properties
- Set provider.auth.className to
org.jivesoftware.openfire.auth.NativeAuthProvider
- Set provider.user.className to
org.jivesoftware.openfire.user.NativeUserProvider
- Set nativeAuth.domain to
openfire
- Set admin.authorizedJIDs to
localuser@xmpp.domain
WHERE localuser is a local user on the unix system you want to have admin access and WHERE the xmpp.domain variable is set in the system properties
-
cp -Rp /opt/openfire/resources/nativeAuth/linux-i386/libshaj.so /opt/openfire/lib
-
mkdir shaj && cd shaj
-
wget http://opensource.cenqua.com/shaj/download/shaj-0.5.zip
-
unzip shaj-0.5.zip
-
mv shaj-0.5.jar /opt/openfire/lib
-
cp -Rp /etc/pam.d/system-auth /etc/pam.d/openfire
-
edit /etc/sysconfig/openfire and set
OPENFIRE_USER=“root”
- Restart Openfire
Some debug information
edit /opt/openfire/conf/openfire.xml
Change
falseto true
restart openfire
tail -f /opt/openfire/logs/{warn,error,debug}.log
For Postgres debugging
select * from public.ofproperty;
update public.ofproperty set propvalue=‘user@xmpp.domain’ where name=‘admin.authorizedJIDs’;
Restart openfire after you make any database changes!
64-bit support - You will need pam-devel installed for this to work
-
mkdir shaj-src && cd shaj-src
-
wget http://opensource.cenqua.com/shaj/download/shaj-0.5-src.zip
-
unzip shaj-0.5-src.zip
-
cd src/c/
-
make
-
cp libshaj.so /opt/openfire/lib