2010-12-22 56 views
0

我使用iphone..but問題XMPP是有時當我登錄提示錯誤這樣的..在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: ---------- 

哪裏出了問題......?我可以登錄到帳戶與火花客戶...

+0

您在iPhone上使用哪個XMPP庫? – 2010-12-29 00:18:20

回答

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庫有一個錯誤,或者你如何調用它。