Cannot login with Spark Client.

Hi,

I am having problems logging in with a spark client to my ejabberd server.
When I log in with Pidgin client I have no issue.

ejabberd: ejabberd-2.1.3-6.fc11.x86_64
spark client: 2.5.8

I see this is the log file when I attempt to login from the spark client:

=INFO REPORT==== 2010-07-23 11:20:33 ===
I(<0.382.0>:ejabberd_listener:232) : (#Port<0.3660>) Accepted connection {{10,2,43,184},44836} -> {{10,2,43,188},5222}

=INFO REPORT==== 2010-07-23 11:20:33 ===
I(<0.515.0>:ejabberd_net:25) : gethostname {socket_state,gen_tcp,
                                            #Port<0.3660>,<0.514.0>}

=INFO REPORT==== 2010-07-23 11:20:33 ===
D(<0.514.0>:ejabberd_receiver:320) : Received XML on stream = "<stream:stream to=\"10.2.43.188\" xmlns=\"jabber:client\" xmlns:stream=\"http://etherx.jabber.org/streams\" version=\"1.0\">"

=INFO REPORT==== 2010-07-23 11:20:33 ===
D(<0.515.0>:ejabberd_c2s:1418) : Send XML on stream = "<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1699057061' from='domain.com' xml:lang='en'>"

=INFO REPORT==== 2010-07-23 11:20:33 ===
D(<0.515.0>:ejabberd_c2s:1418) : Send XML on stream = "<stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>"

=INFO REPORT==== 2010-07-23 11:20:33 ===
D(<0.515.0>:ejabberd_c2s:1418) : Send XML on stream = "</stream:stream>"

The hostname of the ejabberd server is resolvable via DNS.

Any assistance on this would be appreciated.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

seventy7 wrote: I see this is

seventy7 wrote:

I see this is the log file when I attempt to login from the spark client:

=INFO REPORT==== 2010-07-23 11:20:33 ===
D(<0.514.0>:ejabberd_receiver:320) : Received XML on stream = "<stream:stream to=\"10.2.43.188\" xmlns=\"jabber:client\" xmlns:stream=\"http://etherx.jabber.org/streams\" version=\"1.0\">"

...

=INFO REPORT==== 2010-07-23 11:20:33 ===
D(<0.515.0>:ejabberd_c2s:1418) : Send XML on stream = "<stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>"

If you configured in ejabberd.cfg
{hosts, ["domain.com"]}.

then you should tell your Jabber client to connect to domain.com, not to 10.2.43.188.

Great that fixed the problem.

Great that fixed the problem. Thanks.

I am now faced with another issue. Seems authentication related. As advised I can authenticate via pidgin but not the spark client. Here is the output of the authentication attempt:

=INFO REPORT==== 2010-07-24 10:52:32 ===
D(<0.1875.0>:ejabberd_receiver:320) : Received XML on stream = "<stream:stream to=\"fedorabash.domain.com\" xmlns=\"jabber:client\" xmlns:stream=\"http://etherx.jabber.org/streams\" version=\"1.0\">"

=INFO REPORT==== 2010-07-24 10:52:32 ===
D(<0.1875.0>:shaper:61) : State: {maxrate,1000,60.85570277597465,
                                     1279939952350371}, Size=134
M=69.10264501297154, I=2.299

=INFO REPORT==== 2010-07-24 10:52:32 ===
D(<0.1876.0>:ejabberd_c2s:1418) : Send XML on stream = "<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2505562180' from='fedorabash.domain.com' version='1.0' xml:lang='en'>"

=INFO REPORT==== 2010-07-24 10:52:32 ===
I(<0.1876.0>:ejabberd_c2s:259) : FQDN: "fedorabash"

=INFO REPORT==== 2010-07-24 10:52:32 ===
D(<0.1876.0>:ejabberd_c2s:1418) : Send XML on stream = "<stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>GSSAPI</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features>"

=INFO REPORT==== 2010-07-24 10:52:32 ===
D(<0.1875.0>:ejabberd_receiver:320) : Received XML on stream = "<iq id=\"NaJxl-0\" type=\"get\"><query xmlns=\"jabber:iq:auth\"><username>bob</username></query></iq>"

=INFO REPORT==== 2010-07-24 10:52:32 ===
D(<0.1875.0>:shaper:61) : State: {maxrate,1000,0,1279939952353535}, Size=100
M=50.0, I=214.212

=INFO REPORT==== 2010-07-24 10:52:32 ===
D(<0.1876.0>:ejabberd_c2s:1418) : Send XML on stream = "<iq from='fedorabash.domain.com' id='NaJxl-0' type='error'><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>"

As far as I can see its an authentication issue. I am authenticating against an LDAP server which as previously said is working when logging in with pidgin. I have the below config:

{5222, ejabberd_c2s, [

                        %%
                        %% If TLS is compiled in and you installed a SSL
                        %% certificate, specify the full path to the
                        %% file and uncomment this line:
                        %%
                        {certfile, "/etc/ejabberd/ejabberd.pem"}, starttls,

                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 65536}
                       ]},

Any thoughts?

Your Spark client is incoherent

Your Spark client is incoherent:

1. It first says it supports XMPP version 1.0

2. Later it sends an IQ request following XEP-0078: Non-SASL Authentication.

If 1. is true, then the client must use SASL authentication. If 1 is false, then the client shouldn't announce version=1.0

Syndicate content