[jdev] Force a buddy to log out

Katz, Dov B (IT) Dov.Katz at morganstanley.com
Tue Oct 19 10:02:23 CDT 2004


I rewrote jabberd1.4.2's c2s and auth as external java components.
Since you get user/pass/resource in jabber:iq:auth[@type=set] tags, you
can always deny auth for whatever combination you don't want to accept,
including the resource in your considerations.

There's only 1 thing, though.  In 1.4.2, at least, you can auth with 1
resource, then continue to log in with another...   At least you could
do this with a custom c2s component (declare a session with a different
resource than was used when setting auth).  If you write  a custom c2s
component, you could block that as well, I guess.

HTH

-dov


Dov Katz
Enterprise & Client Technology
Morgan Stanley


-----Original Message-----
From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf
Of Jana von dem Berge
Sent: Tuesday, October 19, 2004 10:50 AM
To: Jabbersoftwaredevelopmentlist
Subject: Re: [jdev] Force a buddy to log out

Hello again!

I can also solve my problem by checking the resources of the users with
the server! Because then I could only allow users to log on with the
client I programmed (I could implement a special resource)! Then I could
programm the client to log out when there comes a message with a special
subject, and then I can logout the users by sending such a message!
Can somebody tell me if I can allow only special resources on my server?
Thanks!



Jabber software development list <jdev at jabber.org> schrieb am 18.10.04
13:37:38:
> 
> Can someone tell me, how to force a buddy to log out?
> 
> I want to to block a buddy on my server for a time. I move his
XML-file to another directory.
> 
> But when he is online, the file will be there again when he logs out.
> 
> 
> I think it is again a Problem with the server, caching the files from
the buddies.
> 
> I added a <timeout>0</timeout> to the xdb-section of the jabber.xml
file.
> 
> This was when I had the Problem with altering the XML-files of my
buddies.
> 
> So I thought cashing was disabled, but know I have the Problem again.
> 
> How can I disable buddies to log on my server, when they are currently
online?
> __________________________________________________________
> Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
> weltweit telefonieren! http://freephone.web.de/?mc=021201
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev


__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201

_______________________________________________
jdev mailing list
jdev at jabber.org
http://mail.jabber.org/mailman/listinfo/jdev 
--------------------------------------------------------
 
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited. 
 



More information about the JDev mailing list