Hi togehter,

 

i try to make a client regisistration on the OpenFire via mod_dingaling.

Is can see on the CLI that the mod_dingaling try the authentication with sasl md5, but configured i had sasle plain.

 

Here is my configuration in the client.xml:

 

<include>

  <!-- Client Profile (Original mode) -->

  <!-- to use this profile take the x- away from the open and close tags so its <profile> and </profile> -->

  <profile type="client">

    <param name="name" value="fsuser"/>

    <param name="login" value="fsuser"/>

    <param name="password" value="fsuser"/>

    <param name="server" value="OpenFireIP:5222"/>

    <param name="dialplan" value="XML"/>

    <param name="context" value="public"/>

    <param name="message" value="Jingle all the way"/>

    <param name="rtp-ip" value="auto"/>

    <!-- <param name="ext-rtp-ip" value="auto-nat"/> -->

    <param name="auto-login" value="false"/>

    <!-- SASL "plain" or "md5" -->

    <param name="sasl" value="plain"/>

    <!-- Enable TLS or not -->

    <param name="tls" value="false"/>

    <!-- disable to trade async for more calls -->

    <param name="use-rtp-timer" value="true"/>

    <!-- default extension (if one cannot be determined) -->

    <param name="exten" value="888"/>

<param name="local-network-acl" value="localnet.auto"/>

  </profile>

</include>

 

And here is the CLI output:

 

freeswitch@CC4BHAU1> dl_login profile=fsuser

2012-12-06 13:47:02.731665 [DEBUG] mod_dingaling.c:1998 Started Thread for fsuser@XML

 

OK

 

2012-12-06 13:47:02.731665 [DEBUG] libdingaling.c:1540 xmpp connecting

 

 

freeswitch@CC4BHAU1> 2012-12-06 13:47:03.331665 [NOTICE] libdingaling.c:1373 SEND:

-------------------------------------------------------------------------------

<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="fsuser" version="1.0"></stream:stream>

 

2012-12-06 13:47:03.331665 [INFO] libdingaling.c:1371 RECV:

-------------------------------------------------------------------------------

<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="XXX.XX.XXX.XX" id="c4f6a48e" xml:lang="en" version="1.0"></stream:stream>

 

2012-12-06 13:47:03.531665 [INFO] libdingaling.c:1371 RECV:

-------------------------------------------------------------------------------

<stream:features>

  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">

    <mechanism>DIGEST-MD5</mechanism>

    <mechanism>PLAIN</mechanism>

    <mechanism>ANONYMOUS</mechanism>

    <mechanism>CRAM-MD5</mechanism>

  </mechanisms>

  <compression xmlns="http://jabber.org/features/compress">

    <method>zlib</method>

  </compression>

  <auth xmlns="http://jabber.org/features/iq-auth"></auth>

  <register xmlns="http://jabber.org/features/iq-register"></register>

</stream:features>

 

2012-12-06 13:47:03.531665 [NOTICE] libdingaling.c:1373 SEND:

-------------------------------------------------------------------------------

<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5"></auth>

 

2012-12-06 13:47:03.551665 [INFO] libdingaling.c:1371 RECV:

-------------------------------------------------------------------------------

<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09IjE3Mi4xNi4xMDMuMzMiLG5vbmNlPSI1RHFwTG9BODMzclFUaFlmSDE1cHNTUmt6cmdGa2NrUlQrMEFZcEVvIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>

 

2012-12-06 13:47:07.311665 [NOTICE] libdingaling.c:1373 SEND:

-------------------------------------------------------------------------------

<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9IihudWxsKSIscmVhbG09IjE3Mi4xNi4xMDMuMzMiLG5vbmNlPSI1RHFwTG9BODMzclFUaFlmSDE1cHNTUmt6cmdGa2NrUlQrMEFZcEVvIixjbm9uY2U9IjAwMDAwMDI5MDAwMDQ4MjMwMDAwMThiZTAwMDA2N

zg0IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2ZzdXNlciIscmVzcG9uc2U9YTY5MDhhMzE0ODU3NmNkNGQ1NjhjNWYwNTE4NWFhMzYsY2hhcnNldD11dGYtOA==</response>

 

2012-12-06 13:47:07.311665 [INFO] libdingaling.c:1371 RECV:

-------------------------------------------------------------------------------

<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl">

  <not-authorized></not-authorized>

</failure>

 

2012-12-06 13:47:07.311665 [DEBUG] libdingaling.c:1294 sasl authentication failed

 

 

What can i do that the mod dingaling make the auth only with sasl plain???

 

Thanks for your help