powered by Jive Software

Opernfire response SCRAM-SHA-1 not authorize to clients

sasl
android

#1

Hi, I just set up my server and I can connect using Adium, but I’m making my client using Smack (in android) and when I try to login with the same username and password I use as an admin the server It tells me it accepts SCRAM-SHA-1

D/SMACK: RECV (0): <stream:features>
  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls>
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>PLAIN</mechanism>
    <mechanism>SCRAM-SHA-1</mechanism>
    <mechanism>CRAM-MD5</mechanism>
    <mechanism>DIGEST-MD5</mechanism>
  </mechanisms>
  <compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><ver xmlns="urn:xmpp:features:rosterver"/>
</stream:features>

Then the client tries to use SCRAM-SHA-1 but the servers response that SCRAM-SHA-1 is not authorized

 D/SMACK: SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj1mcmFuc2ViYXNAMTkyLjE2OC4xLjczLHI9N0FHYztyN1oxc0A9YFpvM0ZRRm8icS1KUX5YWz52aGY=
</auth>
 D/SMACK: RECV (0): <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <not-authorized/>
</failure>

But in the options SCRAM-SHA-1 is authorized!