[jdev] auth code failes
Ovidiu Craciun
Ovidiu.Craciun at philips.com
Wed Sep 10 17:31:15 CDT 2008
Hi all,
I am playing around with auth, user registration/unregistration, pub-sub, IM; I use jabber-net and jabber server or openfire alternatively; recently I am facing this problem: same auth code is failing authentication for two different users: user1 and user2. using "Jabber MomentIM" to connect to the server both users (user1 and user2) are successful; user1 was created with "Jabber MomentIM" and user2 was created programmatically (using jabber-net register stantzas).
Any idea what I am missing, why the code is working for one user and not for the other? Thanks! O.
Here's the logs:
-------------------------------------------------------------------------------------------------------------------------------------------------
using user1, pass1
SENT: <auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09IjUwMjAtZWdiZXJ0YWwuc3RlbnRvci5jb20iLG5vbmNlPSJZSG5KUGx
iajU0Z1ptUmtGY1gyM2tXUE9saFBRVUxZMTdVRkIvYzRxIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
SENT: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9ImphYmJlcl9jbGllbnRfc3ViIixyZWFsbT0iNTAyMC1lZ2JlcnRh
bC5zdGVudG9yLmNvbSIsbm9uY2U9IllIbkpQbGJqNTRnWm1Sa0ZjWDIza1dQT2xoUFFVTFkxN1VGQi9jNHEiLGNub25jZT0iMzEzNzM5M2E2YTYxNjI2MjY1N
zI1ZjYzNmM2OTY1NmU3NDVmNzM3NTYyM2E2YTYxNjI2MjY1NzI1ZjYzNmM2OTY1NmU3NDVmNzM3NTYyIixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdX
JpPSJ4bXBwLzUwMjAtZWdiZXJ0YWwuc3RlbnRvci5jb20iLHJlc3BvbnNlPTQzZWM1MjRkNjE3NjcyYTIzYTc2ZTc0MTdhOTJlODA5LGNoYXJzZXQ9dXRmLTg
=</response>
RECV: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD0xNGUwN2NiOWYxMmY1N2RlZDgxMDVmZGJmMTM0ZjE4Mw==</success
>
-------------------------------------------------------------------------------------------------------------------------------------------------
using user2, pass2
SENT: <auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
RECV: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09IjUwMjAtZWdiZXJ0YWwuc3RlbnRvci5jb20iLG5vbmNlPSJVL2x5dEl
SbUxveG44L25mR0hjUnJIUzJnY1huanlreER6bXBOcWFuIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
SENT: <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9IkphYmJlclRlc3RfMSIscmVhbG09IjUwMjAtZWdiZXJ0YWwuc3Rl
bnRvci5jb20iLG5vbmNlPSJVL2x5dElSbUxveG44L25mR0hjUnJIUzJnY1huanlreER6bXBOcWFuIixjbm9uY2U9IjMxMzkzMDNhNGE2MTYyNjI2NTcyNTQ2N
TczNzQ1ZjMxM2E0YTYxNjI2MjY1NzI1NDY1NzM3NDVmMzEiLG5jPTAwMDAwMDAxLHFvcD1hdXRoLGRpZ2VzdC11cmk9InhtcHAvNTAyMC1lZ2JlcnRhbC5zdG
VudG9yLmNvbSIscmVzcG9uc2U9MDllN2Q3Y2Y3MmY1Mjk3MTA0YmUxNDhhZjNiODdkZmMsY2hhcnNldD11dGYtOA==</response>
RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
-------------------------------------------------------------------------------------------------------------------------------------------------
More information about the JDev
mailing list