Yes, the anonymous part (with creation of random accounts in ejabberd)
does work quite well. It's the authenticated part that is problematic.
> It looks like it is doing the proxy correctly. You may want to turn verbose
> logging on in the punjab.tac file.
>
> You can then post the logs here.
Here they are (sorry for the spam):
2009-06-29 20:14:12+0200 [-] Log opened.
2009-06-29 20:14:12+0200 [-] twistd 8.2.0 (/usr/bin/python 2.6.2)
starting up.
2009-06-29 20:14:12+0200 [-] reactor class:
twisted.internet.selectreactor.SelectReactor.
2009-06-29 20:14:12+0200 [-] twisted.web.server.Site starting on 5281
2009-06-29 20:14:12+0200 [-] Starting factory <twisted.web.server.Site
instance at 0x881580c>
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] HEADERS
1246299273.53:
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] {'content-length':
'217', 'accept-language': 'en-us,en;q=0.5', 'accept-encoding':
'gzip,deflate', 'x-forwarded-for': '83.222.33.35', 'connection':
'close', 'accept': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8', 'user-agent': 'Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04 (jaunty) Shiretoko/3.5',
'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'host':
'
salons.arnoux.lu', 'referer': '
http://salons.arnoux.lu/
speeqewebclient/scripts/examples/basic.html', 'pragma': 'no-cache',
'cache-control': 'no-cache', 'x-real-ip': '83.222.33.35', 'cookie':
'sessionid=0832fc2932edbbe87178132bda71e2d8;
sessionid=e3d44b1a48fdb7e853bb44da010ba4ae', 'content-type': 'text/
plain; charset=UTF-8'}
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] HTTPB POST :
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] <body
rid='311999972' xmlns='
http://jabber.org/protocol/httpbind'
to='
arnoux.lu' xml:lang='en' wait='60' hold='1' window='5'
content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0'
xmlns:xmpp='urn:xmpp:xbosh'/>
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] Session Created :
f7d9bd784547ef353b2ff2359acbea5d 1246299273.53
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1]
================================== 1246299273.53 connect to
arnoux.lu:
5222 ==================================
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] Starting factory
<punjab.session.Session object at 0x896c6ac>
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] /etc/resolv.conf
changed, reparsing
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] Resolver added
('217.70.184.225', 53) to server list
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] Resolver added
('217.70.184.227', 53) to server list
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 34787
2009-06-29 20:14:33+0200 [HTTPChannel,0,127.0.0.1] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x89737ec>
2009-06-29 20:14:33+0200 [-] (Port 34787 Closed)
2009-06-29 20:14:33+0200 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x89737ec>
2009-06-29 20:14:33+0200 [Uninitialized] SID:
f7d9bd784547ef353b2ff2359acbea5d => SEND: <stream:stream
xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:client'
to='
arnoux.lu' version='1.0'>
2009-06-29 20:14:33+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => RECV: <?xml version='1.0'?
><stream:stream xmlns='jabber:client' xmlns:stream='http://
etherx.jabber.org/streams' id='3031473580' from='
arnoux.lu'
version='1.0' xml:lang='en'><stream:features><starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>ANONYMOUS</
mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</
mechanism></mechanisms><register xmlns='
http://jabber.org/features/iq-
register'/></stream:features>
2009-06-29 20:14:33+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => SEND: <starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
2009-06-29 20:14:33+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => RECV: <proceed
xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
2009-06-29 20:14:33+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => SEND: <stream:stream
xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:client'
to='
arnoux.lu' version='1.0'>
2009-06-29 20:14:33+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => RECV: <?xml version='1.0'?
><stream:stream xmlns='jabber:client' xmlns:stream='http://
etherx.jabber.org/streams' id='223072775' from='
arnoux.lu'
version='1.0' xml:lang='en'>
2009-06-29 20:14:33+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => RECV: <stream:features><mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>ANONYMOUS</
mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</
mechanism></mechanisms><register xmlns='
http://jabber.org/features/iq-
register'/></stream:features>
2009-06-29 20:14:33+0200 [XmlStream,client]
RETURN HTTPB 1246299273.63:
2009-06-29 20:14:33+0200 [XmlStream,client] <body xmlns='http://
jabber.org/protocol/httpbind' inactivity='60' secure='true'
authid='3031473580' content='text/xml; charset=utf-8' window='5'
polling='15' sid='f7d9bd784547ef353b2ff2359acbea5d' requests='2'
wait='60'><stream:features xmlns:stream='
http://etherx.jabber.org/
streams' xmlns='jabber:client'><mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>ANONYMOUS</
mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</
mechanism></mechanisms><register xmlns='
http://jabber.org/features/iq-
register'/></stream:features></body>
2009-06-29 20:14:33+0200 [XmlStream,client] 127.0.0.1 - - [29/Jun/
2009:18:14:33 +0000] "POST /xmpp-httpbind HTTP/1.0" 200 549 "http://
salons.arnoux.lu/speeqewebclient/scripts/examples/basic.html" "Mozilla/
5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04
(jaunty) Shiretoko/3.5"
2009-06-29 20:14:33+0200 [HTTPChannel,1,127.0.0.1] HEADERS
1246299273.91:
2009-06-29 20:14:33+0200 [HTTPChannel,1,127.0.0.1] {'content-length':
'183', 'accept-language': 'en-us,en;q=0.5', 'accept-encoding':
'gzip,deflate', 'x-forwarded-for': '83.222.33.35', 'connection':
'close', 'accept': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8', 'user-agent': 'Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04 (jaunty) Shiretoko/3.5',
'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'host':
'
salons.arnoux.lu', 'referer': '
http://salons.arnoux.lu/
speeqewebclient/scripts/examples/basic.html', 'pragma': 'no-cache',
'cache-control': 'no-cache', 'x-real-ip': '83.222.33.35', 'cookie':
'sessionid=0832fc2932edbbe87178132bda71e2d8;
sessionid=e3d44b1a48fdb7e853bb44da010ba4ae', 'content-type': 'text/
plain; charset=UTF-8'}
2009-06-29 20:14:33+0200 [HTTPChannel,1,127.0.0.1] HTTPB POST :
2009-06-29 20:14:33+0200 [HTTPChannel,1,127.0.0.1] <body
rid='311999973' xmlns='
http://jabber.org/protocol/httpbind'
sid='f7d9bd784547ef353b2ff2359acbea5d'><auth
xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/></
body>
2009-06-29 20:14:33+0200 [HTTPChannel,1,127.0.0.1] 311999973
2009-06-29 20:14:33+0200 [HTTPChannel,1,127.0.0.1] SID:
f7d9bd784547ef353b2ff2359acbea5d => SEND: <auth
xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
2009-06-29 20:14:33+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => RECV: <challenge
xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'>bm9uY2U9IjMzNTcwOTUzODIiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</
challenge>
2009-06-29 20:14:33+0200 [XmlStream,client]
RETURN HTTPB 1246299273.91:
2009-06-29 20:14:33+0200 [XmlStream,client] <body xmlns='http://
jabber.org/protocol/httpbind'><challenge
xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'>bm9uY2U9IjMzNTcwOTUzODIiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</
challenge></body>
2009-06-29 20:14:33+0200 [XmlStream,client] 311999973
2009-06-29 20:14:33+0200 [XmlStream,client] 127.0.0.1 - - [29/Jun/
2009:18:14:33 +0000] "POST /xmpp-httpbind HTTP/1.0" 200 205 "http://
salons.arnoux.lu/speeqewebclient/scripts/examples/basic.html" "Mozilla/
5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04
(jaunty) Shiretoko/3.5"
2009-06-29 20:14:34+0200 [HTTPChannel,2,127.0.0.1] HEADERS
1246299274.22:
2009-06-29 20:14:34+0200 [HTTPChannel,2,127.0.0.1] {'content-length':
'430', 'accept-language': 'en-us,en;q=0.5', 'accept-encoding':
'gzip,deflate', 'x-forwarded-for': '83.222.33.35', 'connection':
'close', 'accept': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8', 'user-agent': 'Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04 (jaunty) Shiretoko/3.5',
'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'host':
'
salons.arnoux.lu', 'referer': '
http://salons.arnoux.lu/
speeqewebclient/scripts/examples/basic.html', 'pragma': 'no-cache',
'cache-control': 'no-cache', 'x-real-ip': '83.222.33.35', 'cookie':
'sessionid=0832fc2932edbbe87178132bda71e2d8;
sessionid=e3d44b1a48fdb7e853bb44da010ba4ae', 'content-type': 'text/
plain; charset=UTF-8'}
2009-06-29 20:14:34+0200 [HTTPChannel,2,127.0.0.1] HTTPB POST :
2009-06-29 20:14:34+0200 [HTTPChannel,2,127.0.0.1] <body
rid='311999974' xmlns='
http://jabber.org/protocol/httpbind'
sid='f7d9bd784547ef353b2ff2359acbea5d'><response
xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'>dXNlcm5hbWU9InRob21hcyIscmVhbG09IiIsbm9uY2U9IjMzNTcwOTUzODIiLGNub25jZT0iZDQxZDhjZDk4ZjAwYjIwNGU5ODAwOTk4ZWNmODQyN2UiLG5jPSIwMDAwMDAwMSIscW9wPSJhdXRoIixkaWdlc3QtdXJpPSJ4bXBwLyIscmVzcG9uc2U9ImMyMjg0ODFkOTQ0NWJmOGU1NTkwNzQ4OGNkMmRjY2VjIixjaGFyc2V0PSJ1dGYtOCI=</
response></body>
2009-06-29 20:14:34+0200 [HTTPChannel,2,127.0.0.1] 311999974
2009-06-29 20:14:34+0200 [HTTPChannel,2,127.0.0.1] SID:
f7d9bd784547ef353b2ff2359acbea5d => SEND: <response
xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'>dXNlcm5hbWU9InRob21hcyIscmVhbG09IiIsbm9uY2U9IjMzNTcwOTUzODIiLGNub25jZT0iZDQxZDhjZDk4ZjAwYjIwNGU5ODAwOTk4ZWNmODQyN2UiLG5jPSIwMDAwMDAwMSIscW9wPSJhdXRoIixkaWdlc3QtdXJpPSJ4bXBwLyIscmVzcG9uc2U9ImMyMjg0ODFkOTQ0NWJmOGU1NTkwNzQ4OGNkMmRjY2VjIixjaGFyc2V0PSJ1dGYtOCI=</
response>
2009-06-29 20:14:34+0200 [XmlStream,client] SID:
f7d9bd784547ef353b2ff2359acbea5d => RECV: <failure
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-authorized/></failure>
2009-06-29 20:14:34+0200 [XmlStream,client]
RETURN HTTPB 1246299274.22:
2009-06-29 20:14:34+0200 [XmlStream,client] <body xmlns='http://
jabber.org/protocol/httpbind'><failure
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-authorized/></failure></
body>
2009-06-29 20:14:34+0200 [XmlStream,client] 311999974
2009-06-29 20:14:34+0200 [XmlStream,client] 127.0.0.1 - - [29/Jun/
2009:18:14:33 +0000] "POST /xmpp-httpbind HTTP/1.0" 200 134 "http://
salons.arnoux.lu/speeqewebclient/scripts/examples/basic.html" "Mozilla/
5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04
(jaunty) Shiretoko/3.5"