Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7265

Authenticiation in MailTransportMonitor not working

    Details

      Description

      I updated from 1.12 to 14.0.2. In my poller-configuration.xml I defined two MailTransportMonitors with user authentication, for example with the following configuration line:
      <user-auth user-name="testuser" password="test1234" xmlns=""/>

      In 1.12, the MailTransportMonitor worked correctly. After updating to 14.0.2, I got authentication errors (see poller.log below). I had a look with tcpdump and saw, that OpenNMS sends the correct password "test1234", but the wrong username ("opennms" instead of "testuser")

      poller.log:
      2014-12-15 18:10:49,633 WARN [Poller-Thread-3-of-30] o.o.n.p.m.MailTransportMonitor: readTestMessage: error reading INBOX
      javax.mail.AuthenticationFailedException: LOGIN wrong username or password
      at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665) ~[mail-1.4.5.jar:1.4.5]
      at javax.mail.Service.connect(Service.java:295) ~[mail-1.4.5.jar:1.4.5]
      at org.opennms.netmgt.poller.monitors.MailTransportMonitor.retrieveMailFolder(MailTransportMonitor.java:397) ~[opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.monitors.MailTransportMonitor.readTestMessage(MailTransportMonitor.java:220) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.monitors.MailTransportMonitor.doMailTest(MailTransportMonitor.java:167) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.monitors.MailTransportMonitor.poll(MailTransportMonitor.java:107) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.LatencyStoringServiceMonitorAdaptor.poll(LatencyStoringServiceMonitorAdaptor.java:111) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableServiceConfig.poll(PollableServiceConfig.java:116) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableService.poll(PollableService.java:189) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.poll(PollableElement.java:293) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer$5.run(PollableContainer.java:319) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_71]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:264) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:250) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:228) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer.poll(PollableContainer.java:326) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableInterface.poll(PollableInterface.java:224) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer$5.run(PollableContainer.java:319) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_71]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:264) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:250) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:228) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableContainer.poll(PollableContainer.java:326) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at org.opennms.netmgt.poller.pollables.PollableNode$3.run(PollableNode.java:329) [opennms-services-14.0.2-SNAPSHOT.jar:?]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_71]
      at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:264) [opennms-services-14.0.2-SNAPSHOT.jar:?]

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              michael_nt Michael Batz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: