From e3ddf04b9b98c3f222218d0bf632509f83e70fa2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 24 May 2005 18:08:37 +0000 Subject: [PATCH] Alexey's patch to disable SASL protocole --- src/common/xmpp/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/xmpp/client.py b/src/common/xmpp/client.py index 993acdb25..9cc4c7fce 100644 --- a/src/common/xmpp/client.py +++ b/src/common/xmpp/client.py @@ -182,15 +182,15 @@ class Client(CommonClient): self.connected='tls' return self.connected - def auth(self,user,password,resource=''): + def auth(self,user,password,resource='',sasl=1): """ Authenticate connnection and bind resource. If resource is not provided random one or library name used. """ self._User,self._Password,self._Resource=user,password,resource while not self.Dispatcher.Stream._document_attrs and self.Process(): pass if self.Dispatcher.Stream._document_attrs.has_key('version') and self.Dispatcher.Stream._document_attrs['version']=='1.0': while not self.Dispatcher.Stream.features and self.Process(): pass # If we get version 1.0 stream the features tag MUST BE presented - auth.SASL().PlugIn(self) - if self.SASL.startsasl=='not-supported': + if sasl: auth.SASL().PlugIn(self) + if not sasl or self.SASL.startsasl=='not-supported': if not resource: resource='xmpppy' if auth.NonSASL(user,password,resource).PlugIn(self): self.connected+='+old_auth'