title: XMPPPY with Openfire
body: <p>I'm trying to simply connect XMPPPY to Openfire, send a message, then close.  The problem is that I keep getting</p>
  
  <p>(Python 2.6)</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>import xmpp</p>
        
        <p>pwd = "password"</p>
        
        <p>jid=xmpp.protocol.JID("testuser@localhost")</p>
        
        <p>cl=xmpp.Client(jid.getDomain()) #which translates to 'localhost'</p>
        
        <p>cl.connect()</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <pre><code>DEBUG: socket       start Plugging &lt;xmpp.transports.TCPsocket instance at 0x190ea1b8&gt; into &lt;xmpp.client.Client instance at 0x190e5320&gt;
  
  DEBUG: socket       start Successfully connected to remote host ('localhost', 5222)
  
  DEBUG: dispatcher   start Plugging &lt;xmpp.dispatcher.Dispatcher instance at 0x190ea2d8&gt; into &lt;xmpp.client.Client instance at 0x190e5320&gt;
  </code></pre>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>cl.auth(jid.getNode(),pwd) #translates to 'testuser' / 'password'</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <pre><code>DEBUG: sasl         error Failed SASL authentification: &lt;not-authorized /&gt;
  
  DEBUG: sasl         stop  Plugging &lt;xmpp.auth.SASL instance at 0x190f0320&gt; out of &lt;xmpp.client.Client instance at 0x190e5320&gt;.
  </code></pre>
  
  <p>I'm 100% sure that the username and password are correct as I've tried many times and can connect via Spark. </p>
  
  <p>Is there a setting somewhere that I'm missing / has anyone has success with this?</p>