"not-authorized" when logging into Openfire server using XMPP Protocol

have installed openfire server in my mac and i done all the configuration. When i trying to connect it thro XMPP Protocol in the sense am getting bellow error log.

RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>

and also i note that in login response am getting username as null check bellow log

decoded response: username="(null)",realm="172.16.0.162",nonce="EFYJmP/oVfVKnhvuenmxVEBwH7VzYMET5j1cUqJ/",cnonce="DE5E4A14-3B6E-4239-B6AB-0B8BC1D75539",nc=00000001,qop=auth,digest-uri="xmpp/nivas",response=a64dcc45fef55811788d8784546baf29,charset=utf-8

Can any one tell me am i doing anything wrong here and any suggestion.??

Thanks