<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7233.28">
<TITLE>Re: [jdev] differentiated karma in jabber1.x</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText11540 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hey Matthias,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thanks for responding. I went ahead and put
the enhancement request into bugzilla. </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>About configuration by host:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>If you make the config by host, then
someone has to rememer to update the jabber config every time a no-karma client
instance is added or moved. In the game-engine case below, there is a pool of
game-engine servers that use a pool of jabber servers. The app would scale
by adding servers to either or both pools, and it would be good if that process
didn't involve remembering to reconfigure and restart all the
jabbers.</FONT></DIV></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Would it be possible instead to do karma settings/exemptions by
JID?</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><karmaACL>
<DIV dir=ltr> <user jid="gameengineuser1"
exempt="true"/>
<DIV dir=ltr> <user jid="gameengineuser2"
exempt="true"/></DIV>
<DIV dir=ltr> <user jid="someotheruser"></DIV>
<DIV dir=ltr> <karma></DIV>
<DIV dir=ltr>
<max>10</max></DIV>
<DIV
dir=ltr> ...</DIV>
<DIV dir=ltr> </karma></DIV>
<DIV dir=ltr> </user></DIV></DIV>
<DIV dir=ltr><karmaACL></DIV></DIV>
<DIV dir=ltr><BR> </DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> jdev-bounces@jabber.org on
behalf of Matthias Wimmer<BR><B>Sent:</B> Fri 10/28/2005 4:25 AM<BR><B>To:</B>
Jabber software development list<BR><B>Subject:</B> Re: [jdev] differentiated
karma in jabber1.x<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi Larry!<BR><BR>Please request this as an enhancement feature
on<BR><A href="http://bugzilla.jabberd.org/">http://bugzilla.jabberd.org/</A> -
But probably I'll implement it in a way<BR>that you can define different karma
settings for special hosts. I guess<BR>this solves your problem as well and is
more flexible.<BR><BR>Tot kijk<BR> Matthias<BR><BR>Am
28.10.2005 02:16 schrieb Kirschner, Larry:<BR><BR>><BR>> What do people
think about extending jabber configuration to allow you<BR>> to specify karma
settings, but also define a set of netmask IPs that<BR>> would have unlimited
access? Basically, you would allow additional<BR>> tags that look like
something this<BR>><BR>>
<karmaExemptions><BR>>
<exempt
netmask="192.168.255.255"/><BR>>
<exempt
netmask="10.255.255.255"/><BR>>
<exempt netmask="166.77.255.255"/><BR>>
</karmaExemptions><BR>><BR>> I'm looking at jabberd/mio.c and it
seems like this could be added<BR>> with just a few lines of code, maybe
along the lines of the following:<BR>><BR>> 1. In mio_init() read any
exemptions into an array<BR>> 2. In mio_listen (and mio_accept) after
creating a new mio with<BR>> mio_new(), compare the mio's ip with any exempt
netmasks. If the new<BR>> mio's ip is exempt, set mio->k.dec =
0.<BR>><BR>> Then again, I'm just scanning through the code and there
could be<BR>> dependencies that I don't understand. If I'm missing something,
please<BR>> let me know.<BR>><BR><BR>--<BR>Fon: +49-700 7700
7770 <A
href="http://matthias.wimmer.name/">http://matthias.wimmer.name/</A><BR>Fax:
+49-899 5 899 156
xmpp:mawis@amessage.info<BR></FONT></P></DIV>
</BODY>
</HTML>