我在iphone上使用xmpp ..但问题是有时当我登录时会出现这样的错误..
2010-12-22 12:09:44.074 iPhoneXMPP[2015:20b] SEND: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9IihudWxsKSIscmVhbG09InNoYWRvdyIsbm9uY2U9Ing1WTg5dlRGa01ndDRTd3hNY1RWa2lHaHlrN1BxU1pkZGh1Sy9GUmMiLGNub25jZT0iNTFGMzNGNEQtNTBCOC00QzA4LTg2OUUtMUYyNEM5MUM4MkY2IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2t1bGRlZXAiLHJlc3BvbnNlPTZjODU1MjBmYTUyOTMwMGIxNWUwNGI0OTM0YjhmYzliLGNoYXJzZXQ9dXRmLTg=</response>
2010-12-22 12:09:44.363 iPhoneXMPP[2015:20b] RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
2010-12-22 12:09:44.364 iPhoneXMPP[2015:20b] ---------- xmppStream:didNotAuthenticate: ----------
问题出在哪里......?我可以使用spark客户端登录帐户...
答案 0 :(得分:2)
您的SASL响应的Base64解码版本是:
username="(null)",
realm="shadow",
nonce="x5Y89vTFkMgt4SwxMcTVkiGhyk7PqSZddhuK/FRc",
cnonce="51F33F4D-50B8-4C08-869E-1F24C91C82F6",
nc=00000001,
qop=auth,
digest-uri="xmpp/kuldeep",
response=6c85520fa529300b15e04b4934b8fc9b,
charset=utf-8
我们可以告诉您正在尝试DIGEST-MD5。您的用户名可能不是(null),因此您的XMPP库或您的调用方式都有错误。