[cl-xmpp-devel] Re: problems getting started

Jason S. Cornez jcornez at alum.mit.edu
Tue Oct 16 15:57:33 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

For those of you not reading this (and I know there are many...)

I finally used wireshark to look at exactly what Pidgin was sending and
compare it to exactly what cl-xmpp was sending.  Turns out that
sasl-digest-md5 was needed.

So I asdf-install'ed cl-sasl (and then cl-base64) since asdf-install
hadn't previously grabbed them.  And then I was able to (asdf:operate
'asdf:load-op :cl-xmpp-sasl)

At this point, the authentication seems to almost succeed, but there is
another error.  Seems like something similar was mentioned in this forum
in the past

http://common-lisp.net/pipermail/cl-xmpp-devel/2007-September/000092.html

but no solution is given.

- -Jason

XMPP(5): (setq conn (connect :hostname "localhost"))
<?xml version='1.0' ?><stream:stream to='localhost'
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
version='1.0'>
UNHANDLED: #<XML-ELEMENT STREAM:STREAM (6attr:0child:0data) @ #x7203910a>
UNHANDLED: #<XML-ELEMENT STREAM:FEATURES (0attr:2child:0data) @ #x7203cd3a>
#<CONNECTION to localhost:5222 (open) @ #x7202d8ea>
XMPP(6): (auth conn "jcornez" "jcornez" "cl-xmpp" :mechanism
:sasl-digest-md5)
SASL state: START
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
UNHANDLED: #<XML-ELEMENT CHALLENGE (1attr:1child:0data) @ #x7205708a>
SASL state: SENT
challenge-string:
nonce="2403440602",qop="auth",charset=utf-8,algorithm=md5-sess
response:
username="jcornez",realm="",nonce="2403440602",cnonce="15910670249452446646",nc=00000001,qop=auth,digest-uri="xmpp/localhost",charset=utf-8,response=eb4cdae1f22917d5513263b5bad94639
<response
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9Impjb3JuZXoiLHJlYWxtPSIiLG5vbmNlPSIyNDAzNDQwNjAyIixjbm9uY2U9IjE1OTEwNjcwMjQ5NDUyNDQ2NjQ2IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2xvY2FsaG9zdCIsY2hhcnNldD11dGYtOCxyZXNwb25zZT1lYjRjZGFlMWYyMjkxN2Q1NTEzMjYzYjViYWQ5NDYzOQ==</response>
UNHANDLED: #<XML-ELEMENT CHALLENGE (1attr:1child:0data) @ #x7207d58a>
second-challenge: #<XML-ELEMENT CHALLENGE (1attr:1child:0data) @ #x7207d58a>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
UNHANDLED: AUTHENTICATION-SUCCESSFUL
<stream:stream to='localhost' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
Error: Document not well-formed: Bad nesting. "stream:stream" /
(:XML-DECL "xml" . "version='1.0'")
Context:
  Line 1, column 728 in NIL

  [condition type: WELL-FORMEDNESS-VIOLATION]

Restart actions (select using :continue):
 0: Return to Top Level (an "abort" restart).
 1: Abort entirely from this (lisp) process.
[1] XMPP(7): :zo
Evaluation stack:

   (ERROR CXML:WELL-FORMEDNESS-VIOLATION :FORMAT-CONTROL ...)
 ->(CXML::%ERROR CXML:WELL-FORMEDNESS-VIOLATION #S(CXML::ZSTREAM
:TOKEN-CATEGORY NIL ...) ...)
   (CXML::WF-ERROR #S(CXML::ZSTREAM :TOKEN-CATEGORY NIL ...) "Bad
nesting. ~S / ~S" ...)
   (CXML::P/ETAG #S(CXML::ZSTREAM :TOKEN-CATEGORY NIL ...) "stream:stream")
   (CXML::KLACKS/ELEMENT-3 #<CXML::CXML-SOURCE @ #x72034862>
#S(CXML::ZSTREAM :TOKEN-CATEGORY NIL ...) ...)
   ((:INTERNAL CXML::KLACKS/ELEMENT-2 1))
   (CXML::KLACKS/CONTENT #<CXML::CXML-SOURCE @ #x72034862>
#S(CXML::ZSTREAM :TOKEN-CATEGORY NIL ...) ...)
   ((:INTERNAL CXML::KLACKS/CONTENT 1))
   (CXML::FILL-SOURCE #<CXML::CXML-SOURCE @ #x72034862>)
   ((METHOD KLACKS:PEEK-NEXT (CXML::CXML-SOURCE)) #<CXML::CXML-SOURCE @
#x72034862>)
   [... KLACKS:PEEK-NEXT ]
   (READ-STANZA #<CONNECTION to localhost:5222 (open) @ #x7202d8ea>)

... more older frames ...
[1] XMPP(8):
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHFN9tQlm6HDTMLyMRAoeBAKDSIJZsSB1fDQopKCuGqctVgmikzACgsZx3
qBnluVw3QWkNk+l0NZOnaGw=
=FFBG
-----END PGP SIGNATURE-----



More information about the cl-xmpp-devel mailing list