Skip to content
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

mediaserver JID can't use TLS #99

Open
imaginator opened this issue Aug 25, 2015 · 0 comments
Open

mediaserver JID can't use TLS #99

imaginator opened this issue Aug 25, 2015 · 0 comments

Comments

@imaginator
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant