[JDEV] Jabber-client:unable to authenticate user

Peter Mottram peter at sysnix.com
Wed May 28 04:50:29 CDT 2003


You need to send an IQ get to the server 1st with just the username
included & then once you receive the IQ result from the server you can
send an IQ set to authenticate. Have a look at JEP-0078....

http://www.jabber.org/jeps/jep-0078.html

R.
PeteM

On Wed, 28 May 2003, Rajeev wrote:

> Hi all
>
> I'm working on a jabber client using java. I've already registered a user on
> the
> jabberd-1.4.2 server. Now if i try to authenticate the user by sending the
> following xml programatically
>
> <iq id='auth' type='set'>
>   <query xmlns='jabber:iq:auth'>
>     <username>userName</username>
>     <password>userPassword</password>
>     <resource>some IP address</resource>
>   </query>
> </iq>
>
> I"m receiving the following response from the server:
>
> <?xml version='1.0'?><stream:stream
> xmlns:stream='http://etherx.jabber.org/streams' id='3ED4669B'
> xmlns='jabber:client'><stream:error>Invalid
> Namespace</stream:error></stream:stream>
>
> Can someone tell me the solution to this problem?
>
> Thanking in advance
> Rajeev
>
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>




More information about the JDev mailing list