Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16383

add option for SSL connection instead of SASL

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: jabber-plugin
    • Labels:
      None
    • Environment:
      jabber plugin 1.25
      jenkins 1.484
    • Similar Issues:

      Description

      My xmpp server requires SSL connections. In both Adium and Pidgin (libpurple) you must enable "force old style ssl" to successfully connect to our server.

      The following StackOverflow entry discusses using SSL with Smack:
      http://stackoverflow.com/questions/545082/how-to-create-an-ssl-connection-using-the-smack-xmpp-library

      http://svn.igniterealtime.org/svn/repos/spark/trunk/src/java/org/jivesoftware/spark/util/DummySSLSocketFactory.java

        Attachments

          Issue Links

            Activity

            Hide
            kutzi kutzi added a comment -

            The plugin should transparently support legacy style SSL. Have you actually tried if it works?

            Show
            kutzi kutzi added a comment - The plugin should transparently support legacy style SSL. Have you actually tried if it works?
            Hide
            trbaker Trevor Baker added a comment - - edited

            ~~ comment removed ~~

            Show
            trbaker Trevor Baker added a comment - - edited ~~ comment removed ~~
            Hide
            trbaker Trevor Baker added a comment -

            I found the logging in tomcat's stderr file, which somehow is not making its way into the Jenkins log ui. It looks like a 401 is being returned.

            Jan 23, 2013 11:49:58 AM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection
            INFO: Trying to connect to XMPP on im.mycorp.com:5223/im.mycorp.com with SASL
            Jan 23, 2013 11:50:58 AM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL
            INFO: Retrying connection with legacy SSL
            Jan 23, 2013 11:51:00 AM hudson.plugins.jabber.im.transport.JabberIMConnection connect
            WARNING: not-authorized(401)
            at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:109)
            at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212)
            at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:319)
            at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:162)
            at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42)
            at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65)
            at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22)
            at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183)
            at java.lang.Thread.run(Thread.java:722)

            Using the same credentials with Adium and Pidgin work using the "force old sytle ssl" option.

            Show
            trbaker Trevor Baker added a comment - I found the logging in tomcat's stderr file, which somehow is not making its way into the Jenkins log ui. It looks like a 401 is being returned. Jan 23, 2013 11:49:58 AM hudson.plugins.jabber.im.transport.JabberIMConnection createConnection INFO: Trying to connect to XMPP on im.mycorp.com:5223/im.mycorp.com with SASL Jan 23, 2013 11:50:58 AM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL Jan 23, 2013 11:51:00 AM hudson.plugins.jabber.im.transport.JabberIMConnection connect WARNING: not-authorized(401) at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:109) at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:212) at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:319) at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:162) at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65) at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183) at java.lang.Thread.run(Thread.java:722) Using the same credentials with Adium and Pidgin work using the "force old sytle ssl" option.
            Hide
            trbaker Trevor Baker added a comment -

            Sadly, user error; closing.

            Show
            trbaker Trevor Baker added a comment - Sadly, user error; closing.
            Hide
            kutzi kutzi added a comment -

            Now I'm curious: what was the error?

            Show
            kutzi kutzi added a comment - Now I'm curious: what was the error?
            Hide
            trbaker Trevor Baker added a comment -

            Tomcat 7 is splitting stdout and stderr and Jenkins is only seeing stdout so I wasn't seeing most of the errors being thrown (I'll have to fix this later). That led me to assume, incorrectly, that the problem was with SASL to SSL failover. Once I saw it was a 401 error I reentered that password, and voila!

            The IM functionality is quite nice and I hope to extend it soon.

            Show
            trbaker Trevor Baker added a comment - Tomcat 7 is splitting stdout and stderr and Jenkins is only seeing stdout so I wasn't seeing most of the errors being thrown (I'll have to fix this later). That led me to assume, incorrectly, that the problem was with SASL to SSL failover. Once I saw it was a 401 error I reentered that password, and voila! The IM functionality is quite nice and I hope to extend it soon.

              People

              • Assignee:
                kutzi kutzi
                Reporter:
                trbaker Trevor Baker
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: