Error creating new user account on ejabberd server from asmack android
<p>I am trying to register a new user on ejabberd server from android asmack library but it gives me the following  error:</p>

<pre><code>org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPPError:
 forbidden - auth
</code></pre>

<p>I already made some change on ejabberd server please check if there is any mistake i made:</p>

<p><strong>{access, register, [{allow, all}]}.</strong></p>

<p>but i still getting same error.</p>

<pre><code>{mod_register, [
                  %%
                  %% After successful registration, the user receives
                  %% a message with this subject and body.
                  %%
                  {welcome_message, {"Welcome!",
                                     "Welcome to a Jabber service powered by De$
                                     "For information about Jabber visit "
                                     "http://www.jabber.org"}},
                  %% Replace it with 'none' if you don't want to send such mess$
                  %%{welcome_message, none},

                  %%
                  %% When a user registers, send a notification to
                  %% these Jabber accounts.
                  %%
                  %%{registration_watchers, ["admin1@example.org"]},

                  {access_from, register}
                 ]},
</code></pre>