This thread is archived
3 Replies Last post: Aug 6, 2007 10:53 AM by slushpupie  
dror Silver 111 posts since
Aug 6, 2007
Currently Being Moderated

Aug 6, 2007 9:07 AM

How to configure sasl on openfire on windows xp with apache (xampp install)

Hi

 

I`m trying to work with jsjac(javascript jabber lib) and openfire on windows xp with apache(xampp installation).

 

jsjac sends request to the httpbinding of openfire but return error about sasl.

 

What kinds of sasl are there, when do I use each one and how do I configure it?

 

Should I use it at all or can I just disable the sasl?

 

Thanks

slushpupie KeyContributor 705 posts since
Jan 27, 2006
Currently Being Moderated
Aug 6, 2007 9:35 AM in response to: dror
Re: How to configure sasl on openfire on windows xp with apache (xampp inst

SASL is the preferred authentication method of Jabber.  There are several different "mechanisms" that sasl can use, and the server advertises to the client which it supports.  Most servers will support PLAIN (authenticate using a plain-text username/password) and various MD5''s (CRAM-MD5 or DIGEST-MD5).  Some support more fancy methods like GSSAPI. 

 

If your client dosnt support SASL, you should be able to authenticate via the old iq:auth method without changing anything on the server.

 

Hope this info helps you.

slushpupie KeyContributor 705 posts since
Jan 27, 2006
Currently Being Moderated
Aug 6, 2007 10:53 AM in response to: dror
Re: How to configure sasl on openfire on windows xp with apache (xampp inst

Im talking about the Openfire server. Im not sure how all the auth stuff passes through for httpbinding- maybe someone else can chime in on that topic. 

 

From the sounds of it, your javascript libraries are not generating the DIGEST-MD5 in a way Openfire likes.  I ran into this with a few clients.  DIGEST-MD5 has a way of using your last login as a "shortcut" to authenticate again. Which with httpbinding this may be the case- but Openfire dosnt seem to support that style of DIGEST-MD5.  You might try switching to just PLAIN for testing, and maybe figure out whats going on with DIGEST-MD5 later. 

 

In Openfire you can configure which mechanisms are advertised in openfire.xml by doing adding a sasl stanza:

 


<sasl>
   <mechanisms>PLAIN</mechanisms>
</sasl>

 

More Like This

  • Retrieving data ...