Bad username/password

Issue #21 new
Jeroen Mathon
created an issue

Ever since the latest update of rocketchat(server) had been deployed at my office, the authentication of the purple module is not working anymore.

The password and username are correct but it does not seem to be able to log into the server.

Comments (15)

  1. Eion Robb repo owner

    Can you get a debug log from Help->Debug Window as you're logging in to the account?

    Are you able to login via the webpage successfully still? The authentication method hasn't changed on the server? Do you know what version it was upgraded from and to?

  2. Jeroen Mathon reporter

    On Monday, July 10, 2017 10:02:58 AM CEST you wrote: Hey Robb,

    I managed to login trough the official rocketchat+ client so the credentials definetly work.

    The debug messages tell me a different story, they plain show the authentication frame which seems in order(Am not sure if they still use the hashing that your client provides, perhaps they switched hashing algorithms?) it returns me with a message telling me the credentials do not match.

    I use the following format. Username: myname@company.tld Which should work correctly.

    The client used to work for me but since we updated our server to the newest version of rockit chat it doesnt, do you know of a way where i can find the version number that the server is running?

    Otherwhise ill try to ask it.

    Beste Regards,

    Jeroen Mathon, - Linux Engineer

  3. Eion Robb repo owner

    Are you able to attach the debug log to the issue? Alternatively, would you be able to provide details of the server address so that I can have a look at the auth and compare with what the plugin does?

  4. Guidonet

    Happening to me as well. Heres the debug log. I can login fine with the fat client or the web site. I changed the username and pass in this log:

    (10:33:56) rocketchat: Got response: { "version": "0.58.4", "success": true } (10:33:56) rocketchat: got frame data: o (10:33:56) rocketchat: got frame data: a["{\"server_id\":\"0\"}"] (10:33:56) rocketchat: sending frame: ["{\"msg\":\"connect\",\"version\":\"1\",\"support\":[\"1\"]}"] (10:33:56) rocketchat: got frame data: a["{\"msg\":\"connected\",\"session\":\"L8guQryQcsxgNFKWZ\"}"] (10:33:56) rocketchat: sending frame: ["{\"msg\":\"method\",\"method\":\"login\",\"params\":[{\"user\":{\"email\":\"username\"},\"password\":{\"digest\":\"password\",\"algorithm\":\"sha-256\"}}],\"id\":\"1\"}"] (10:33:56) rocketchat: got frame data: a["{\"msg\":\"updated\",\"methods\":[\"1\"]}"] (10:33:56) rocketchat: got frame data: a["{\"msg\":\"result\",\"id\":\"1\",\"error\":{\"isClientSafe\":true,\"error\":403,\"reason\":\"User not found\",\"message\":\"User not found [403]\",\"errorType\":\"Meteor.Error\"}}"] (10:33:56) connection: Connection error on 06A5BB38 (reason: 2 description: Bad username/password)

  5. Eion Robb repo owner

    Hmm, the email/password combo is working for me on a 0.58.3 server. @Guidonet the error log there says "User not found", rather than bad password - are you entering the correct email address for the account?

  6. Eion Robb repo owner

    Ah, we're only doing an email login in the plugin. Maybe there's a different way of doing a username login now

    No, scratch that, we are doing username auth, but if your username has an @ in it, we treat it as an email address. @Guidonet the plugin thinks you're trying to login via an email address - does your username have an @ in it?

  7. Mehturt

    I'm trying this out with Finch and our company RC instance, and I get similar error "Bad username/password", my login name does not contain @ in it.

    But actually debugging this now, the server response is a bit different from what was posted above, so perhaps it's a different issue:

    17:00:07 rocketchat: sending frame: ["{\"msg\":\"connect\",\"version\":\"1\",\"support\":[\"1\"]}"]
    17:00:07 rocketchat: got frame data: a["{\"msg\":\"connected\",\"session\":\"EbMLcvK3NWK4benxb\"}"]
    17:00:07 rocketchat: sending frame: ["{\"msg\":\"method\",\"method\":\"login\",\"params\":[{\"resume\":\"\"}],\"id\":\"1\"}"]
    17:00:07 rocketchat: got frame data: a["{\"msg\":\"updated\",\"methods\":[\"1\"]}"]
    17:00:07 rocketchat: got frame data: a["{\"msg\":\"result\",\"id\":\"1\",\"error\":{\"isClientSafe\":true,\"error\":400,\"reason\":\"Unrecognized options for login request\",\"message\":\"Unrecognized options for login request [400]\",\"errorType\":\"Meteor.Error\"}}"]
    17:00:07 rocketchat: Error during login: (null)
    17:00:07 connection: Connection error on 0x55917e017a80 (reason: 2 description: Bad username/password)
    
  8. Domhnall Walsh

    I'm getting the same as @Mehturt:

    (14:16:09) rocketchat: Got response: {"version":"0.70.4","success":true}
    (14:16:09) rocketchat: got frame data: o
    (14:16:09) rocketchat: got frame data: a["{\"server_id\":\"0\"}"]
    (14:16:09) rocketchat: sending frame: ["{\"msg\":\"connect\",\"version\":\"1\",\"support\":[\"1\"]}"]
    (14:16:09) rocketchat: got frame data: a["{\"msg\":\"connected\",\"session\":\"Me3ZXEL2bJyadw5Pk\"}"]
    (14:16:09) rocketchat: sending frame: ["{\"msg\":\"method\",\"method\":\"login\",\"params\":[{\"resume\":\"\"}],\"id\":\"1\"}"]
    (14:16:09) rocketchat: got frame data: a["{\"msg\":\"updated\",\"methods\":[\"1\"]}"]
    (14:16:09) rocketchat: got frame data: a["{\"msg\":\"result\",\"id\":\"1\",\"error\":{\"isClientSafe\":true,\"error\":400,\"reason\":\"Unrecognized options for login request\",\"message\":\"Unrecognized options for login request [400]\",\"errorType\":\"Meteor.Error\"}}"]
    (14:16:09) rocketchat: Error during login: (null)
    (14:16:09) connection: Connection error on 0x5631f7296340 (reason: 2 description: Bad username/password)
    

    I'm using a slightly newer version of Rocket Chat than @Guidonet it seems.

  9. Domhnall Walsh

    @Eion Robb Doesn't seem to, I'm afraid. Pulled the latest commit, verified that with hg log that it matches, did the make/make install dance, restarted Pidgin, and still no joy.

    Here's what I'm getting when I try to enable the plugin (IP address redacted) - it's the same whether I use a username or an e-mail address:

    (08:40:12) rocketchat: Fetching url https://1.2.3.4/api/info
    (08:40:13) rocketchat: got frame data: o
    (08:40:13) rocketchat: got frame data: a["{\"server_id\":\"0\"}"]
    (08:40:13) rocketchat: sending frame: ["{\"msg\":\"connect\",\"version\":\"1\",\"support\":[\"1\"]}"]
    (08:40:13) rocketchat: Got response: {"version":"0.70.4","success":true}
    (08:40:13) rocketchat: got frame data: a["{\"msg\":\"connected\",\"session\":\"FmxQdEP6Q6Nd8LBAT\"}"]
    (08:40:13) rocketchat: sending frame: ["{\"msg\":\"method\",\"method\":\"login\",\"params\":[{\"resume\":\"\"}],\"id\":\"1\"}"]
    (08:40:13) rocketchat: got frame data: a["{\"msg\":\"updated\",\"methods\":[\"1\"]}"]
    (08:40:13) rocketchat: got frame data: a["{\"msg\":\"result\",\"id\":\"1\",\"error\":{\"isClientSafe\":true,\"error\":400,\"reason\":\"Unrecognized options for login request\",\"message\":\"Unrecognized options for login request [400]\",\"errorType\":\"Meteor.Error\"}}"]
    (08:40:13) rocketchat: Error during login: (null)
    (08:40:13) connection: Connection error on 0x5631f70e9db0 (reason: 2 description: Bad username/password)
    
  10. Eion Robb repo owner

    @Domhnall Walsh That {\"resume\":\"\"} bit means either the fix is borked or you've still got an old copy of the .so around. Can you double check there's not another copy of librocketchat.so in ~/.purple/plugins or multiple versions in your /usr/lib64/purple-2/ folder (or equiv for your system)

  11. Log in to comment