title: EXMPP ServerSide Authentication Response
body: <p>I am currently working on a XMPP-messaging-server and I want to write a response to the client saying I want to initiate a NON-SASL Authentication.
  This is the client request I want to process.</p>
  
  <pre><code>&lt;&lt;"&lt;stream:stream xmlns='jabber:client' to='example.com' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='username@example.com' xml:lang='en'&gt;"&gt;&gt;
  </code></pre>
  
  <p>The problem is, that I don't know how to write a response to the client saying that I want to use Non-SASL Authentication. I am using the EXMPP-library and my server is written in Erlang.</p>
  
  <p>I don't want to use ejabberd because I want to know more about Erlang and XMPP and therefore I don't want to use an out-of-the-box server.</p>