[jadmin] Control de ingreso con Ejabberd??
Badlop
badlop at gmail.com
Wed Jun 6 17:00:53 CDT 2007
El 6/06/07, jennyferforero <jennyferforero at hotmail.com> escribió:
> En mi empresa manejamos ejabberd y como cliente PSI
> Me gustaría saber si alguno sabe si se puede tener un registro de la hora en
> que los usuarios se conectan y se desconectan, para controlar la hora de
> ingreso del personal.
This is an english mailing list.
If you want to keep a record of who logins, and at which time:
On ejabberd log files you can see that each login is recorded with
several messages. For example, when I login to my account
badlop at example.org I can see this on the logs:
=INFO REPORT==== 6-Jun-2007::23:48:56 ===
I(<0.245.0>:ejabberd_listener:90) : (#Port<0.397>) Accepted connection
{{71,102,101,229},47447} -> {{10,10,10,1},5222}
=INFO REPORT==== 6-Jun-2007::23:48:56 ===
I(<0.474.0>:ejabberd_c2s:615) :
({socket_state,tls,{tlssock,#Port<0.397>,#Port<0.407>},<0.473.0>})
Accepted authentication for badlop
=INFO REPORT==== 6-Jun-2007::23:48:56 ===
I(<0.474.0>:ejabberd_c2s:720) :
({socket_state,tls,{tlssock,#Port<0.397>,#Port<0.407>},<0.473.0>})
Opened session for badlop at example.org/Tka
And when I log out, another message is added:
=INFO REPORT==== 6-Jun-2007::23:54:12 ===
I(<0.474.0>:ejabberd_c2s:1183) :
({socket_state,tls,{tlssock,#Port<0.397>,#Port<0.407>},<0.473.0>})
Close session for badlop at example.org/Tka
If that is not enought for you there are other methods, more complex;
maybe using
http://ejabberd.jabber.ru/mod_logmnesia
or
http://ejabberd.jabber.ru/mod_logxml
En español: cada vez que alguien conecta o desconecta, ejabberd guarda
un mensaje en los ficheros log, y además indica la dirección del
usuario.
Otras alternativas más complejas podrían ser usando
http://ejabberd.jabber.ru/mod_logmnesia
o
http://ejabberd.jabber.ru/mod_logxml
--
More information about the JAdmin
mailing list