Your configuration was correct.
Sorry, I forgot to tell you about a few other prerequisites.

You'll need pyopenssl and pycrypto. The source URLs are listed on the 
documentation page.
This page has Mac OS X binaries.
http://pythonmac.org/packages/

You should also be able to grab them with Fink, but I'm not sure :)

---

James


On 26/05/2005, at 12:33 PM, Jay wrote:

> Hi James,
>
> Thank you very much for your response.
>
> I placed PyMSNt/ in /var/jabber/modules/ (it seemed a logical place)
>
> I chown'd all of the files to jabber:jabber (OS X Server uses the 
> jabber user and group to execute jabberd so I thought I'd follow suit)
>
> I copied config.xml and edited it as follows:
>
> <jid>msn.domain.com</jid>
> <spooldir>/var/jabber/spool</spooldir>
> (this was previously uncommented. The path I've given is a spool 
> folder provided by Apple. Is this the spool folder we're looking for? 
> or does PyMSNt create/need its own?)
> <secret>jabber-rocks</secret>
> <pid>PyMSNt.pid</pid>
>
> I setup the logging section as follows:
>
> <debugOn/>
> <!-- Set this to only get debugging output when a problem occurs. Only 
> applies if logging to a file -->
> <!-- <debugSmart/> -->
> <!-- Set the debug log file location here, (comment out to output to 
> the screen) -->
> <!-- (if relative, relative to the PyMSNt dir) -->
> <debugLog>debug.log</debugLog>
>
> I assumed by commenting out <debugSmart> I'd get verbose logging.
>
> OK, so now here are my changes in /etc/jabber/jabber.xml:
>
> <service id="sessions">
>
>     -- a lot of stuff here
>
>     <jsm xmlns="jabber:config:jsm">
>
>         -- a lot of stuff here
>
>         <browse>
>
>             <service type="msn" jid="msn.domain.com" name="MSN 
> Transport">
>               <ns>jabber:iq:gateway</ns>
>               <ns>jabber:iq:register</ns>
>             </service>
>
>             -- Apple (or someone) had placed some sample lines 
> <services/> like this one but for AIM and Yahoo, but they were 
> commented out.
>
>         </browse>
>      </jsm>
> </service>
>
> -- a lot of stuff here
>   <service id="msn.domain.com">
>     <accept>
>       <ip>127.0.0.1</ip>
>       <port>5347</port>
>       <secret>jabber-rocks</secret>
>     </accept>
>   </service>
>
> -- again, this was an area where Apple (or whomever) put very similar 
> examples.
> [end of file]
>
> So, at this point, I started jabberd and tried to start PyMSNt:
>
> sudo -u jabber ./PyMSNt &
>
> I get the following error:
>
>   File "main.py", line 28, in ?
>     import xdb
>   File "/private/var/jabber/modules/PyMSNt/src/xdb.py", line 14, in ?
>     import legacy
>   File "/private/var/jabber/modules/PyMSNt/src/legacy/__init__.py", 
> line 4, in ?
>     from glue import LegacyConnection, LegacyGroupchat, 
> translateAccount
>   File "/private/var/jabber/modules/PyMSNt/src/legacy/glue.py", line 
> 10, in ?
>     from tlib import msn
>   File "/private/var/jabber/modules/PyMSNt/src/tlib/msn.py", line 99, 
> in ?
>     from proxy import proxy_connect_ssl
>   File "/private/var/jabber/modules/PyMSNt/src/tlib/proxy.py", line 4, 
> in ?
>     from twisted.internet.ssl import ClientContextFactory
>
> and it shuts right back down.
>
> The debug.log has only this in its contents:
>
> 05/26/05 - 12:16:09 - Debug logging enabled.
> 05/26/05 - 12:16:14 - Debug logging enabled.
> 05/26/05 - 12:25:40 - Debug logging enabled.
> 05/26/05 - 12:27:26 - Debug logging enabled.
>
> The JID... that's just an identifier yes? Do I actually have to setup 
> a dns entry to match it?
>
> Before I realized that PyMSNt wasn't even starting, I used PSI to do a 
> Service Discovery and MSN Transport showed up along wiht "Public 
> Chatrooms" and "SOCKS5 Bytestreams service", but the option to 
> "Register" was not available.
>
> Is it possible that I'm missing some Twisted or Python components?
> Would it pay to post my jabber.xml file somewhere?
> FWIW, Apple configured jabberd to accept clear-text credentials over a 
> self-signed SSL certificate
>
> Any help would be much appreciated.
>
> Kind regards,
>
> Jay
>
>
> On May 25, 2005, at 11:04 PM, James Bunton wrote:
>
>> What you've got should work just fine :)
>>
>> Please let me know how you go installing it, so I can document what 
>> to do for others (and perhaps make the process easier if necessary).
>>
>> Good luck!
>>
>> ---
>>
>> James
>>
>>
>>
>> On 25/05/2005, at 11:08 AM, Jay wrote:
>>
>>
>>> Hi All,
>>>
>>> I'm interested in installing pyMSNt on Mac OS X 10.4.1 Server. As 
>>> some of you might know, Apple has included jabberd with this version 
>>> of their server OS. I've been able to deduce the following version 
>>> info, and was wondering if anyone could help me out with what 
>>> prerequisites/versions, etc. are allowed.
>>>
>>> Here's the version string returned when running python:
>>>
>>> --
>>> Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
>>> [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
>>> --
>>>
>>> I checked /Library/Python/twisted/copyright.py to discover the 
>>> Twisted version, or so I think:
>>>
>>> --
>>> version="1.3.0rc1"
>>> longversion="Twisted %s" % version
>>> copyright="Copyright (c) 2000-2003 Matthew William Lefkowitz, all 
>>> rights reserved."
>>> --
>>>
>>> Lastly, `jabberd -v` returns:
>>>
>>> --
>>> Jabberd Version 1.4.3.1 Build 35
>>> --
>>>
>>> Can someone tell me what, if any, other prerequisites are required, 
>>> and how I might possibly check for them. Is there anything like CPAN 
>>> for Python?
>>>
>>> Thanks very much in advance.
>>>
>>> Kind regards,
>>>
>>> Jay
>>> _______________________________________________
>>> py-transports mailing list
>>> [email protected]
>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>
>>>
>>
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>>
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>

Reply via email to