Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  Roster Manipulation

Guest
Posted: Tue Jan 16, 2007 6:58 am Reply with quote
Guest
Hi,

I have developed a gateway form jabber to msn. This gateway is currently
being used with a ejabberd 1.1.2 server. I would like to add the following
feature,

If a user registers with the gateway his msn contacts must be automatically
added to his jabber contact list. Then the same again for if the jabber
user removes the GateWay his msn contacts must be removed form his jabber
contact list. I have spoken to some ppl who used i think wildfire or
something like that (another jabber server) and they said that they can
manipulate the roster entries for each user. Is this possible and how?
Have also read something about rosterx "XEP-144 Roster Item Exchange" but it
is not supported by ejabberd.

The GateWay is a trusted entity.

Thanks,
Phil
--
View this message in context: http://www.nabble.com/Roster-Manipulation-tf3019289.html#a8385314
Sent from the ejabberd mailing list archive at Nabble.com.

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Tue Jan 16, 2007 7:19 am Reply with quote
Guest
PsyMonkey wrote:
> Hi,
>
> I have developed a gateway form jabber to msn. This gateway is currently
> being used with a ejabberd 1.1.2 server. I would like to add the following
> feature,

For the most part, is this an improvement over pymsnt
(http://msn-transport.jabberstudio.org)? We've been using it to hook
into our ejabberd daemon (but had to run jabberd in a crippled mode to
support it). Would it be possible to gain access to your msn gateway
(eventually)?

> If a user registers with the gateway his msn contacts must be automatically
> added to his jabber contact list. Then the same again for if the jabber
> user removes the GateWay his msn contacts must be removed form his jabber
> contact list.

The pymsnt does this. You might want to check out what they do.

> I have spoken to some ppl who used i think wildfire or
> something like that (another jabber server) and they said that they can
> manipulate the roster entries for each user.

Yes, I've heard some really good things about Wildfire. And with good
things I'm talking about these types of features. These and a few others.

> Is this possible and how?

Yes, it should be possible, no, I don't know how. But would be
interrested in getting hold of your gateway once you're done with it.

Jaco


Post recived from mailinglist
Guest
Posted: Tue Jan 16, 2007 9:20 am Reply with quote
Guest
Hi,

I looked at the PyMSNt gateway and they require that the client be developed
in a specific way so that if a :

<presence from="contact%hotmail.com@msn.host.com" to="user@host.com"
type="subscribe">
<x xmlns="http://delx.cjb.net/protocol/roster-subsync">
<item name="Some contact" subscription="both">
<group>Friends</group>
<group>Colleagues</group>
</item>
</x>
</presence>

is sent the contact is added automatically? One thing that is great is that
this is backward compatible, if the client/server does not support this
feature the request will go through as a standard subscribe request. O well
i implemented it anyway and it does not work with psi (Jabber Client), you
do need a client/server that supports this command i think. Please note i
am not an expert, just have a lot of time. Hopefully in the future there
will be a feature added to do what i want it to do with ejabberd.

Thanks for your help,
Phil




Jaco Kroon-2 wrote:
>
> PsyMonkey wrote:
>> Hi,
>>
>> I have developed a gateway form jabber to msn. This gateway is currently
>> being used with a ejabberd 1.1.2 server. I would like to add the
>> following
>> feature,
>
> For the most part, is this an improvement over pymsnt
> (http://msn-transport.jabberstudio.org)? We've been using it to hook
> into our ejabberd daemon (but had to run jabberd in a crippled mode to
> support it). Would it be possible to gain access to your msn gateway
> (eventually)?
>
>> If a user registers with the gateway his msn contacts must be
>> automatically
>> added to his jabber contact list. Then the same again for if the jabber
>> user removes the GateWay his msn contacts must be removed form his jabber
>> contact list.
>
> The pymsnt does this. You might want to check out what they do.
>
>> I have spoken to some ppl who used i think wildfire or
>> something like that (another jabber server) and they said that they can
>> manipulate the roster entries for each user.
>
> Yes, I've heard some really good things about Wildfire. And with good
> things I'm talking about these types of features. These and a few others.
>
>> Is this possible and how?
>
> Yes, it should be possible, no, I don't know how. But would be
> interrested in getting hold of your gateway once you're done with it.
>
> Jaco
>
>
> _______________________________________________
> ejabberd mailing list
> ejabberd@jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>

--
View this message in context: http://www.nabble.com/Roster-Manipulation-tf3019289.html#a8386773
Sent from the ejabberd mailing list archive at Nabble.com.

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Tue Jan 16, 2007 9:33 am Reply with quote
Guest
PsyMonkey wrote:
> Hi,
>
> I looked at the PyMSNt gateway and they require that the client be developed
> in a specific way so that if a :
>
> <presence from="contact%hotmail.com@msn.host.com" to="user@host.com"
> type="subscribe">
> <x xmlns="http://delx.cjb.net/protocol/roster-subsync">
> <item name="Some contact" subscription="both">
> <group>Friends</group>
> <group>Colleagues</group>
> </item>
> </x>
> </presence>
>
> is sent the contact is added automatically? One thing that is great is that
> this is backward compatible, if the client/server does not support this
> feature the request will go through as a standard subscribe request. O well
> i implemented it anyway and it does not work with psi (Jabber Client), you
> do need a client/server that supports this command i think. Please note i
> am not an expert, just have a lot of time. Hopefully in the future there
> will be a feature added to do what i want it to do with ejabberd.

Hmm, I'd suggest looking again. I'm using psi, and with PyMSNt it did
work, so I'm guessing you're probably just missing something small. And
neither am I an expert, i know the internal ejabberd architecture about
as well as my grandma, i just helped with some tls stuff once and since
this is a low volume list I just stayed subscribed.

> Thanks for your help,

I didn't do much, but it's a pleasure.

> Jaco Kroon-2 wrote:
>
>>PsyMonkey wrote:
>>
>>>Hi,
>>>
>>>I have developed a gateway form jabber to msn. This gateway is currently
>>>being used with a ejabberd 1.1.2 server. I would like to add the
>>>following
>>>feature,
>>
>>For the most part, is this an improvement over pymsnt
>>(http://msn-transport.jabberstudio.org)? We've been using it to hook
>>into our ejabberd daemon (but had to run jabberd in a crippled mode to
>>support it). Would it be possible to gain access to your msn gateway
>>(eventually)?
>>
>>
>>>If a user registers with the gateway his msn contacts must be
>>>automatically
>>>added to his jabber contact list. Then the same again for if the jabber
>>>user removes the GateWay his msn contacts must be removed form his jabber
>>>contact list.
>>
>>The pymsnt does this. You might want to check out what they do.
>>
>>
>>>I have spoken to some ppl who used i think wildfire or
>>>something like that (another jabber server) and they said that they can
>>>manipulate the roster entries for each user.
>>
>>Yes, I've heard some really good things about Wildfire. And with good
>>things I'm talking about these types of features. These and a few others.
>>
>>
>>> Is this possible and how?
>>
>>Yes, it should be possible, no, I don't know how. But would be
>>interrested in getting hold of your gateway once you're done with it.
>>
>>Jaco
>>
>>
>>_______________________________________________
>>ejabberd mailing list
>>ejabberd@jabber.ru
>>http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>>
>
>



Post recived from mailinglist
Guest
Posted: Tue Jan 16, 2007 11:20 am Reply with quote
Guest
Le mardi 16 janvier 2007 10:20, PsyMonkey a
Guest
Posted: Tue Jan 16, 2007 2:08 pm Reply with quote
Guest
>Le mardi 16 janvier 2007 10:20, PsyMonkey a écrit :
>> Hi,
>>
>> I looked at the PyMSNt gateway and they require that the client be
>> developed in a specific way so that if a :
>>
>> <presence from="contact%hotmail.com@msn.host.com" to="user@host.com"
>> type="subscribe">
>> <x xmlns="http://delx.cjb.net/protocol/roster-subsync">
>> <item name="Some contact" subscription="both">
>> <group>Friends</group>
>> <group>Colleagues</group>
>> </item>
>> </x>
>> </presence>
>>
>> is sent the contact is added automatically? One thing that is great is
>> that this is backward compatible, if the client/server does not support
>> this feature the request will go through as a standard subscribe request.
>> O well i implemented it anyway and it does not work with psi (Jabber
>> Client), you do need a client/server that supports this command i think.
>> Please note i am not an expert, just have a lot of time. Hopefully in
>> the
>> future there will be a feature added to do what i want it to do with
>> ejabberd.
>
>
>Hi, the JEP, proposed by the pyMSNt author is there:
>http://www.xmpp.org/extensions/inbox/rostersync.html
>
>I had implemented it in Kopete one year ago. At this time, pyMSNt (0.10.3)
was
>completely bugged regarding his own JEP (because none of the current client
>implemented it, so it was not tested at all). So I reported the problem and
>he fixed it, and also improved the JEP. Anyway I did not commit my patch.
>(and it seems that I lost the patch locally also)
>The reason why I did not commit is that I don't like the philosophy behind
>that protocol.
>
>IMO, nothing should be required to be implemented by the client. What
happen
>if I connect with a non-capable client while some contact are added and
>removed ?
>Also, in order to let the gateway manage his contactlist and his groups,
there
>need to exchange between the server and the gateway.
>
>The gateway must indeed be notified if the user move a contact to a group,
>remove a contact, ...
>The server must be notified when a contact has moved on the legacy server,
or
>if his alias has changed, or if it was removed.
>
>One simple solution would be to give the jabber password to the gateway,
so
>the gateway can open a c2s connection with the server, and manage itself
the
>contactlist. Anyway, i don't want to give my password to someone else. so
>this is a bad solution.
>
>An ideal solution would be to make a protocol which allow the gateway to
>manager user's contactlist (at least the part of user inside his server).
>
>example
>
><iq from='msn.gateway.org' to='user@server.org' type='set' id='r1'>
> <query xmlns='http://xmpp.org/roster-gateway'>
> <item jid='jhon%msn.com@msn.gateway.org'
> name='Jhon'>
> <group>Servants</group>
> </item>
> </query>
></iq>
>
>http://xmpp.org/roster-gateway would be exactly the same as
jabber:iq:roster,
>expected that it works between the gateway and the server, and that the
>gateway is only authorized to manage contact with the jid's host equal to
his
>host, and if the subscription of the gateways is 'to' or 'both'
>
>This is just an idea.
>
>I know this is completely off-topic on this mailing, but since you are
talking
>about that, I wanted to express my opinion Smile
>

That link "http://xmpp.org/roster-gateway" does not seem to work, would you
mind sending it again please.
This would be great if i am able to edit those rosters, because they are the
only ones i require to edit/remove

--
View this message in context: http://www.nabble.com/Roster-Manipulation-tf3019289.html#a8390680
Sent from the ejabberd mailing list archive at Nabble.com.

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Tue Jan 16, 2007 2:23 pm Reply with quote
Guest
Le mardi 16 janvier 2007 15:07, PsyMonkey a écrit :
> That link "http://xmpp.org/roster-gateway" does not seem to work, would you
> mind sending it again please.
> This would be great if i am able to edit those rosters, because they are
> the only ones i require to edit/remove

No, this was just a proposed namespace. (argh, yes, namespace should never
had started with http:// , it's why i asked stpeter to do urn:xmpp:
instead Smile )

And that namespace doesn't exist yet, because that protocol doesn't exist yet.

It was just my vision of the problem with a suggested solution.

But i was off-topic for this mailing list, (standard-jig would be a better
place)


Post recived from mailinglist
Guest
Posted: Tue Jan 16, 2007 3:32 pm Reply with quote
Guest
Olivier Goffart <ogoffart@kde.org> writes:

> An ideal solution would be to make a protocol which allow the gateway to
> manager user's contactlist (at least the part of user inside his server).

I wrote something similar a few years ago:
http://article.gmane.org/gmane.network.jabber.standards-jig/6497
It's essentially the same as your proposal.

I'm also trying to write some transports as ejabberd modules, which
would allow them to modify the roster directly. I'm not sure when I
will have anything good enough to present to the public, but it might
happen any day ☺

--
Magnus
JID: legoscia@jabber.cd.chalmers.se

_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Tue Jan 16, 2007 4:40 pm Reply with quote
Guest
Olivier Goffart schreef:
> One simple solution would be to give the jabber password to the gateway, so
> the gateway can open a c2s connection with the server, and manage itself the
> contactlist. Anyway, i don't want to give my password to someone else. so
> this is a bad solution.
>
> An ideal solution would be to make a protocol which allow the gateway to
> manager user's contactlist (at least the part of user inside his server).

Maybe some other idea. Note that I'm no coder nor protocol guru. What
about having a protocol that allows to attach "subrosters" to the main
roster. So, these subrosters can be embedded in the main roster. The
main roster then has to give permision for any subroster to be embedded.
In this way the transports can handle their own roster. Other advantage:
maybe no cryptic JIDs needed.

--
Mvg, Sander Devrieze.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Thu Jan 18, 2007 6:29 pm Reply with quote
Guest
Hello,
Le 16 janv. 07

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum