Skip to content

mediaserver JID can't use TLS #99

Description

@imaginator

Setting the following options on prosody

c2s_require_encryption = false
allow_unencrypted_plain_auth = true

stops the mediaserver's JID (a jid that connects to check permissions) from connecting to the XMPP server. In theory this should be solved by using the following options in the mediaserver:

# Whether the client will use SASL authentication when logging into the server (true|false).
xmpp.connection.saslenabled=true

# TLS security mode used when making the connection (disabled|enabled|required).
xmpp.connection.securitymode=disabled

However this is not working and results in the following error message:

2015-08-25 15:24:03,475 ERROR com.buddycloud.mediaserver.Main - XMPP connection coudn't be started
org.jivesoftware.smack.XMPPException: No response from the server.
        at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:73) ~[buddycloud-media-server-jar-with-dependencies.jar:na]
        at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212) ~[buddycloud-media-server-jar-with-dependencies.jar:na]
        at org.jivesoftware.smack.Connection.login(Connection.java:348) ~[buddycloud-media-server-jar-with-dependencies.jar:na]
        at com.buddycloud.mediaserver.Main.createAndStartConnection(Main.java:222) [buddycloud-media-server-jar-with-dependencies.jar:na]
        at com.buddycloud.mediaserver.Main.startXMPPToolBox(Main.java:126) [buddycloud-media-server-jar-with-dependencies.jar:na]
        at com.buddycloud.mediaserver.Main.main(Main.java:56) [buddycloud-media-server-jar-with-dependencies.jar:na]
2015-08-25 15:24:03,626 ERROR com.buddycloud.mediaserver.Main - Error while starting XMPP client
com.buddycloud.mediaserver.commons.exception.XMPPException: No response from the server.
        at com.buddycloud.mediaserver.Main.createAndStartConnection(Main.java:231) [buddycloud-media-server-jar-with-dependencies.jar:na]
        at com.buddycloud.mediaserver.Main.startXMPPToolBox(Main.java:126) [buddycloud-media-server-jar-with-dependencies.jar:na]
        at com.buddycloud.mediaserver.Main.main(Main.java:56) [buddycloud-media-server-jar-with-dependencies.jar:na]
Caused by: org.jivesoftware.smack.XMPPException: No response from the server.
        at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:73) ~[buddycloud-media-server-jar-with-dependencies.jar:na]
        at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212) ~[buddycloud-media-server-jar-with-dependencies.jar:na]
        at org.jivesoftware.smack.Connection.login(Connection.java:348) ~[buddycloud-media-server-jar-with-dependencies.jar:na]
        at com.buddycloud.mediaserver.Main.createAndStartConnection(Main.java:222) [buddycloud-media-server-jar-with-dependencies.jar:na]
        ... 2 common frames omitted

Any help to fix this would be very much appreciated.

To see the current configuration check out:

https://github.com/buddycloud/saltstack/blob/master/salt/buddycloud-media-server/mediaserver.properties.template and https://github.com/buddycloud/saltstack/blob/master/salt/prosody/prosody.cfg.lua.jinja

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions