-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blather attempts to (re)set password on login #106
Comments
@jackhong Are you able to comment on this? |
Looks like ejabberd doesn't follow the the xep0077 spec correctly. Basically when the server was setup using 'in-band registration, then the initial feature list should include when asked for authentication methods supported, but it shouldn't include it once user has already been authenticated. As 0077 spec states, when user has already been authenticated, a register stanza will automatically become 'change password' stanza, that is where the error occurs. Even that, throwing a 500 internal error when change password failed is not very nice. Openfire implemented the feature correctly. This log fragment is extracted from issue #103
I guess the easiest solution is to turn off in-band registration feature if using ejabberd and not actually requiring in-band registration. I'd rather not hard code the behaviour fix just for the sake of ejabberd. |
Would you mind filing a bug report against ejabberd and linking it here for reference? |
Issued created in ejabberd project. |
I experienced the same issue while testing with Prosody, but haven't had time yet to do further research for a bug report. A very hackish workaround (if anyone needs it in the meantime) seems to be ignoring the stanza using this code:
|
This appears to have been fixed in ejabberd: processone/ejabberd#41. I would suggest that a similar fix be made to Prosody if you are experiencing it with that server, @Piratonym. I'm closing this ticket because there is no evidence this is a bug in Blather. If you follow this up with Prosody, I'd appreciate a link here to the fix. |
Tonight I noticed a strange problem while running an old app with a newer version of Blather. My authentications were failing. This particular server uses ejabberd with an extauth script that only implements authentication. The errors in my logs indicated that the ejabberd server was asking my extauth script to update the password for the user. Looking at the Blather logs I see this:
Which, based on my reading is Blather telling the server to change my password. However I did not request that:
Besides my one-off case of the extauth script not supporting password changes, there are other reasons that an XMPP server may not support password changes. In my case this causes Blather to crash:
I do not know why ejabberd responded with a 500 error code, but I think there are two bugs here:
The text was updated successfully, but these errors were encountered: