#1592 Can't authenticate using GTalkSMS as a client

Reporter codiflow
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Priority-Medium
  • Status-NeedInfo
  • Type-Defect
  1. codiflow on

    What steps will reproduce the problem? 1. Install GTalkSMS on any Android-Phone, configure it like below and connect to Prosody. 2. The server gets the connection request but doesn't do anything afterwards. What is the expected output? The user gets logged in or I get more details in the prosody server log. What do you see instead? GTalkSMS is stuck at "Waiting..." and retries the connection after a given time interval. The prosody server gets all the connection requests but doesn't do anything afterwards. With ejabberd as xmpp server and the same GTalkSMS settings there were no problems at all. What version of the product are you using? On what operating system? GTalkSMS 5.0.1.84 (Source: https://github.com/Yakoo63/gtalksms/releases/tag/5.0.1.84) Prosody 0.11.6 (on Debian 10 (buster), Kernel 4.19.132-1) Lua 5.2 Lua module ssl: 0.7.1 Please provide any additional information below. Configuration option of GTalkSMS Encryption: Required --- Log with some kind of "error" from GTalkSMS (gets repeated several times): 09-23 22:06:57.701 E/gtalksms( 8261): [XmppManager@connectAndAuth:562] Xmpp login failed 09-23 22:06:57.701 E/gtalksms( 8261): org.jivesoftware.smack.sasl.SASLErrorException: SASLError using PLAIN: text 09-23 22:06:57.701 E/gtalksms( 8261): at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:342) 09-23 22:06:57.701 E/gtalksms( 8261): at org.jivesoftware.smack.tcp.XMPPTCPConnection.login(XMPPTCPConnection.java:244) 09-23 22:06:57.701 E/gtalksms( 8261): at com.googlecode.gtalksms.XmppManager.connectAndAuth(XmppManager.java:560) 09-23 22:06:57.701 E/gtalksms( 8261): at com.googlecode.gtalksms.XmppManager.initConnection(XmppManager.java:387) 09-23 22:06:57.701 E/gtalksms( 8261): at com.googlecode.gtalksms.XmppManager.start(XmppManager.java:185) 09-23 22:06:57.701 E/gtalksms( 8261): at com.googlecode.gtalksms.XmppManager.xmppRequestStateChange(XmppManager.java:256) 09-23 22:06:57.701 E/gtalksms( 8261): at com.googlecode.gtalksms.MainService.connectTransport(MainService.java:152) 09-23 22:06:57.701 E/gtalksms( 8261): at com.googlecode.gtalksms.MainService.onHandleIntentTransportConnection(MainService.java:180) 09-23 22:06:57.701 E/gtalksms( 8261): at com.googlecode.gtalksms.MainService$ServiceHandler.handleMessage(MainService.java:134) 09-23 22:06:57.701 E/gtalksms( 8261): at android.os.Handler.dispatchMessage(Handler.java:102) 09-23 22:06:57.701 E/gtalksms( 8261): at android.os.Looper.loop(Looper.java:154) 09-23 22:06:57.701 E/gtalksms( 8261): at android.os.HandlerThread.run(HandlerThread.java:61) --- Log from prosody server: Sep 23 22:05:06 c2s5568c2fc7cd0 info Client connected Sep 23 22:05:06 c2s5568c2fc7cd0 info Stream encrypted (TLSv1.2 with ECDHE-RSA-AES256-GCM-SHA384) Sep 23 22:06:00 c2s5568c2fe6670 info Client connected Sep 23 22:06:00 c2s5568c2fe6670 info Stream encrypted (TLSv1.2 with ECDHE-RSA-AES256-GCM-SHA384) Sep 23 22:06:40 c2s5568c3003390 info Client connected Sep 23 22:06:40 c2s5568c3003390 info Stream encrypted (TLSv1.2 with ECDHE-RSA-AES256-GCM-SHA384) Sep 23 22:06:57 c2s5568c301c0b0 info Client connected Sep 23 22:06:57 c2s5568c301c0b0 info Stream encrypted (TLSv1.2 with ECDHE-RSA-AES256-GCM-SHA384) Sep 23 22:07:30 c2s5568c3039b40 info Client connected Sep 23 22:07:31 c2s5568c3039b40 info Stream encrypted (TLSv1.2 with ECDHE-RSA-AES256-GCM-SHA384) Sep 23 22:09:33 c2s5568c2e2eb90 info Client disconnected: connection closed Sep 23 22:09:56 c2s5568c2fae110 info Client disconnected: connection closed Sep 23 22:10:06 c2s5568c2fc7cd0 info Client disconnected: connection closed Sep 23 22:11:00 c2s5568c2fe6670 info Client disconnected: connection closed Sep 23 22:11:40 c2s5568c3003390 info Client disconnected: connection closed --- I already checked the password and username twice, tried to activate "allow_unencrypted_plain_auth", switched to "Encryption: Optional" within GTalkSMS but nothing helped so far. I've set "c2s_require_encryption = true" in the options of prosody but also enabling PLAIN auth and unencrypted connections doesn't change anything. It also doesn't matter if the username or password are correct. It seems to be stuck before the authentication process. I localized the section in the source code (https://github.com/Yakoo63/gtalksms/blob/11d4388ff27e318f3e5e5aa1c76f25db8eb10b98/src/com/googlecode/gtalksms/XmppManager.java#L544) where GTalkSMS throws the error. Maybe someone can help me debug this any further as I don't know what to do next. Regards codiflow

  2. codiflow on

    Using a different XMPP server with ejabberd 20.03.68 as server software everthing works like it should.

  3. Zash on

    Hi, thanks for the report Could you provide debug logs? In case this is related to #1560, does this happen with every password you try?

    Changes
    • tags Status-NeedInfo
  4. codiflow on

    Hi Zash, > Could you provide debug logs? What kind of logs do you mean? All logs I got are already included in my bug report. > In case this is related to #1560, does this happen with every password you try? Thats a good question. I don't remember if I tried a different password but id doesn't contain any special characters. Its length is 24 characters with only upper- and lowercase letters and digits. So I don't think this should be any problem. Hope this helps any further.

  5. Zash on

    The provided logs are only contain 'info' level messages. There's usually a lot more logged at the 'debug' level (see your logging config)

New comment

Not published. Used for spam prevention and optional update notifications.