sasl auth should use realm send by server challenge
Hi,
in xmpp/common/auth.py, the realm for the sasl response is always set to the server(domain). according to
resp['realm']=self._owner.Server
according to rfc2831.txt however (sasl digest auth): realm The realm containing the user's account. This directive is required if the server provided any realms in the "digest-challenge", in which case it may appear exactly once and its value SHOULD be one of those realms. If the directive is missing, "realm-value" will set to the empty string when computing A1
The current implementation of gajim would force the server to always use a realm that is the same as its domain, this might not always be the case... The correct implementation is to use the realm that the server provided in the first challenge.