List Info

Thread: SASL issues




SASL issues
user name
2008-01-14 12:45:33

I recently Installed jabberd 2.1.21 on a centos 5.1 box.

Both storage and authentication are via postgresql.

 

I also have samba and winbind configured.

 

I have compiled and installed jabberd, can launch it, but am having issues registering users.  When attempting to register a user, the client throws an error (error varies with client).

 

There are records added to the database, one in the authreg table, and one in the active table.

 

Debug output contains the following:

 

C2S : sx (chain.c:93) calling io read chain

C2S : sx (io.c:234) decoded read data (318 bytes): &lt;response xmlns=&quot;urn:ietf:paramsml:nsmpp-sasl&quot;>dXNlcm5hbWU9ImJvYiIscmVhbG09IkJEUkEuTE9DQUwiLG5vbmNlPSIiLGNub25jZT0iMzkzNDNmZjU2MWIzNzZiZWEyMjU4NGVjODhjODMwMjciLG5jPTAwMDAwMDAxLHFvcD1hdXRoLGRpZ2VzdC11cmk9InhtcHAvYmRyYS5sb2NhbCIsY2hhcnNldD11dGYtOCxyZXNwb25zZT1lMzNlYzcyNWM3NThhMTgxMTcwZGQwMjhlZDc2OWY1Mw==</response>

C2S : sx (io.c:89) completed nad: <response xmlns='urn:ietf:paramsml:nsmpp-sasl'&gt;dXNlcm5hbWU9ImJvYiIscmVhbG09IkJEUkEuTE9DQUwiLG5vbmNlPSIiLGNub25jZT0iMzkzNDNmZjU2MWIzNzZiZWEyMjU4NGVjODhjODMwMjciLG5jPTAwMDAwMDAxLHFvcD1hdXRoLGRpZ2VzdC11cmk9InhtcHAvYmRyYS5sb2NhbCIsY2hhcnNldD11dGYtOCxyZXNwb25zZT1lMzNlYzcyNWM3NThhMTgxMTcwZGQwMjhlZDc2OWY1Mw==</response>;

C2S : sx (chain.c:119) calling nad read chain

C2S : sx (sasl_gsasl.c:371) response from client (decoded: username=&quot;test&quot;,realm="DOMAIN.TLD",nonce=&quot;",cnonce="39343ff561b376bea22584ec88c83027&quot;,nc=00000001,qop=auth,digest-uri="xmpp/domain.tld",charset=utf-8,response=e33ec725c758a181170dd028ed769f53)

C2S : sx (sasl_gsasl.c:412) sasl handshake failed; (30): SASL mechanism could not parse input

C2S : sx (chain.c:106) calling nad write chain

C2S : sx (io.c:400) queueing for write: <failure xmlns='urn:ietf:paramsml:nsmpp-sasl'&gt;<malformed-request/></failure>;

 

The same thing has happened with several clients.

 

Any insight into this would be greatly appreciated

 

Thank you

Bob Larsen

Network Administrator

Bryan D Ramey and Associates

bobbryanramey.com

 

Re: SASL issues
user name
2008-01-14 13:25:37
On Pn, 2008-01-14 at 13:45 -0500, Bob Larsen wrote:
> The same thing has happened with several clients.

Which ones?
Have you checked h
ttp://jabberd2.xiaoka.com/wiki/ClientCompatibility ?

-- 
  /_./o__ Tomasz Sterna
 (/^/(_^^' http://www.xiaoka.com/
._.(_.)_   im:smokuxiaoka.com

_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________
Re: SASL issues
user name
2008-01-14 13:31:06
On 14 Jan 2008, at 18:45, Bob Larsen wrote:

> I have compiled and installed jabberd, can launch it,
but am having  
> issues registering users.  When attempting to register
a user, the  
> client throws an error (error varies with client).
>
gsasl's DIGEST-MD5 implementation doesn't really do the 'be
liberal  
in what you accept' thing, and as such is incompatible with
a large  
number of currently deployed Jabber clients. If you can't
dictate to  
your users which clients they use, you're out of luck.

Jabberd2 does have a Cyrus SASL implementation too, but I
haven't  
been as proactive in maintaining this as I would like, and
it may not  
work in current releases. I'm not sure when I'll have time
to check  
this out properly, and I'm also not sure for how much longer
I'll be  
(professionally) interested in maintaining it - I suspect
we'll  
strongly consider transitioning to a Jabber server with a
supported,  
stable, SASL implementation at our next major upgrade. gsasl
is  
pretty much useless from an enterprise perspective.

Cheers,

Simon.

_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________

Re: SASL issues
user name
2008-01-15 08:52:49
Your Insight is greatly appreciated.  I was able to solve
the problem by disabling the DIGEST-MD5 mechanism. This
particular deployment in on a secured internal network, so
using the PLAIN mechanism does not pose a severe threat.  
 
Plus, I had planned on deploying TLS anyway, almost makes it
a moot point.
 
Thanks again
Bob Larsen

________________________________

From: jadmin-bouncesjabber.org on behalf of Simon Wilkinson
Sent: Mon 1/14/2008 2:31 PM
To: Jabber server administration list
Subject: Re: [jadmin] SASL issues




On 14 Jan 2008, at 18:45, Bob Larsen wrote:

> I have compiled and installed jabberd, can launch it,
but am having 
> issues registering users.  When attempting to register
a user, the 
> client throws an error (error varies with client).
>
gsasl's DIGEST-MD5 implementation doesn't really do the 'be
liberal 
in what you accept' thing, and as such is incompatible with
a large 
number of currently deployed Jabber clients. If you can't
dictate to 
your users which clients they use, you're out of luck.

Jabberd2 does have a Cyrus SASL implementation too, but I
haven't 
been as proactive in maintaining this as I would like, and
it may not 
work in current releases. I'm not sure when I'll have time
to check 
this out properly, and I'm also not sure for how much longer
I'll be 
(professionally) interested in maintaining it - I suspect
we'll 
strongly consider transitioning to a Jabber server with a
supported, 
stable, SASL implementation at our next major upgrade. gsasl
is 
pretty much useless from an enterprise perspective.

Cheers,

Simon.

_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


_______________________________________________
JAdmin mailing list
JAdminjabber.org
http:/
/mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://ww
w.jabber.org/about/jadminfaq.shtml
_______________________________________________

  
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )