openfire+PAM auth
hola amigos, deseo autentificar los usuarios de mi servidor de jabber openfire con las
credenciales que tienen en mi pc servidor y no con base de datos como mysql, segun algo
que me encontre en un grupo de documentacion aparece esto,,pero por lo poco que entiendo,
hay caminos que no encuentro en debian, como por ejemplo
/etc/sysconfig/openfire
, ayudeneme a montar este servicio de tal manera gracias a todos
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
1) In the admin interface after initial configuration
Server -> Server Manager -> System Properties
2) Set provider.auth.className to
org.jivesoftware.openfire.auth.NativeAuthProvider
3) Set provider.user.className to
org.jivesoftware.openfire.user.NativeUserProvider
4) Set nativeAuth.domain to
openfire
5) 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
6) cp -Rp /opt/openfire/resources/nativeAuth/linux-i386/libshaj.so /opt/openfire/lib
7) mkdir shaj && cd shaj
8) wget http://opensource.cenqua.com/shaj/download/shaj-0.5.zip
9) unzip shaj-0.5.zip
10) mv shaj-0.5.jar /opt/openfire/lib
11) cp -Rp /etc/pam.d/system-auth /etc/pam.d/openfire
12) edit /etc/sysconfig/openfire and set
OPENFIRE_USER="root"
13) Restart Openfire
Some debug information
edit /opt/openfire/conf/openfire.xml
Change
<debug>
<enabled>false</enabled>
</debug>
to 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
1) mkdir shaj-src && cd shaj-src
2) wget http://opensource.cenqua.com/shaj/download/shaj-0.5-src.zip
3) unzip shaj-0.5-src.zip
4) cd src/c/
5) make
6) cp libshaj.so /opt/openfire/lib
------------------------------
Infomed - Red de Salud de Cuba
http://www.sld.cu/
--
Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
Reply to: