You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by denghui huang <hu...@gmail.com> on 2014/02/17 15:50:45 UTC
Encounter problem when spark connect to vysper to create user?
Hi all
I am new to this mail list, also to XMPP. Currently, i try to use Spark
to connect vypser. Firstly, i want to create a user, I encounter a problem.
My vysper version is 0.7, and Spark version is 2.6.3
Log from Spark.
Raw Sent Packets:
<stream:stream to="127.0.0.1" xmlns="jabber:client" xmlns:stream="
http://etherx.jabber.org/streams" version="1.0">
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
<stream:stream to="vysper.org" xmlns="jabber:client" xmlns:stream="
http://etherx.jabber.org/streams" version="1.0">
<auth mechanism="PLAIN"
xmlns="urn:ietf:params:xml:ns:xmpp-sasl">YWRtaW5cNDB0ZXN0AGFkbWluXDQwdGVzdABwYXNzd29yZA==</auth>
Raw Received Packets:
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client"
xmlns:stream="http://etherx.jabber.org/streams" from="vysper.org"
version="1.0" id="7b0edeec8aa144489fb87bdc7dc76b8b"><stream:features
xmlns:stream="http://etherx.jabber.org/streams"><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required></required></starttls></stream:features>
<proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"></proceed>
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client"
xmlns:stream="http://etherx.jabber.org/streams" from="vysper.org"
version="1.0" id="7b0edeec8aa144489fb87bdc7dc76b8b"><stream:features
xmlns:stream="http://etherx.jabber.org/streams"><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms></stream:features>
<failure
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized></not-authorized></failure>
Seems that SASL failure. What should do about it?
Br
--denghui
Re: Encounter problem when spark connect to vysper to create user?
Posted by Bernd Fondermann <be...@gmail.com>.
Hi,
thanks for the log excerpt
note that the text in between <auth...> </auth> is BASE64 encoded and
can easily be decoded. So please make sure you use different
credentials on a publicly accessible environement.
However, decoding this BASE64 part also gives a hint about your
problem: I think you need to give your full JID as a username on
login, e.g. "admin@myvysper.org" and the domain part must match your
server name "myvysper.org". In your case, your server name is
"vysper.org" (see the from="..." attributes) and your user name is not
carrying the domain part. Also, spaces in usernames may not work.
Bernd
On Mon, Feb 17, 2014 at 3:50 PM, denghui huang <hu...@gmail.com> wrote:
> Hi all
>
> I am new to this mail list, also to XMPP. Currently, i try to use Spark
> to connect vypser. Firstly, i want to create a user, I encounter a problem.
>
> My vysper version is 0.7, and Spark version is 2.6.3
>
> Log from Spark.
>
> Raw Sent Packets:
>
> <stream:stream to="127.0.0.1" xmlns="jabber:client" xmlns:stream="
> http://etherx.jabber.org/streams" version="1.0">
> <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
> <stream:stream to="vysper.org" xmlns="jabber:client" xmlns:stream="
> http://etherx.jabber.org/streams" version="1.0">
> <auth mechanism="PLAIN"
> xmlns="urn:ietf:params:xml:ns:xmpp-sasl">YWRtaW5cNDB0ZXN0AGFkbWluXDQwdGVzdABwYXNzd29yZA==</auth>
>
>
>
>
> Raw Received Packets:
>
> <?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client"
> xmlns:stream="http://etherx.jabber.org/streams" from="vysper.org"
> version="1.0" id="7b0edeec8aa144489fb87bdc7dc76b8b"><stream:features
> xmlns:stream="http://etherx.jabber.org/streams"><starttls
> xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required></required></starttls></stream:features>
> <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"></proceed>
> <?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client"
> xmlns:stream="http://etherx.jabber.org/streams" from="vysper.org"
> version="1.0" id="7b0edeec8aa144489fb87bdc7dc76b8b"><stream:features
> xmlns:stream="http://etherx.jabber.org/streams"><mechanisms
> xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms></stream:features>
> <failure
> xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized></not-authorized></failure>
>
>
> Seems that SASL failure. What should do about it?
>
> Br
> --denghui