[JDEV] Re: Re: Jabber-client:unable to authenticate user

Rajeev rajeevt at cressanda.com
Wed May 28 06:07:47 CDT 2003


I'm trying to implement what is written in
http://www.jabber.org/admin/adminguide.html#install

The telnet acts as a client to send the xml to the server and then according
to the response of the server i'm sending the xml required. Am i going the
correct way?

Rajeev

"Peter Mottram" <peter at sysnix.com> wrote in message
news:Pine.LNX.4.44.0305281258100.23042-100000 at r6.sysnix.com...
> Rajeev
>
> Did you 1st open a stream with the server?
>
> http://www.jabber.org/protocol/xmlstreams.html
>
> R.
> PeteM
>
> On Wed, 28 May 2003, Rajeev wrote:
>
> > Thanks Pete i sent an IQ get to the sever with just the username but i
still
> > received the same error from the server.
> > ......<stream:error>Invalid Namespace</stream:error></stream>
> >
> > I'm unable to figure out the reason for Invalid Namespace....
> >
> > Rajeev
> >
> >
> > "Peter Mottram" <peter at sysnix.com> wrote in message
> > news:Pine.LNX.4.44.0305281145090.23042-100000 at r6.sysnix.com...
> > > 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
> > > >
> >
> >
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> >






More information about the JDev mailing list