Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
135a5d84 by Philipp Hörist at 2019-02-05T22:19:14Z
Fix error when parsing bookmarks
- - - - -
1 changed file:
- nbxmpp/modules/bookmarks.py
Changes:
=====================================
nbxmpp/modules/bookmarks.py
=====================================
@@ -126,9 +126,9 @@ class Bookmarks:
log.info('Error: %s', stanza.getError())
return []
+ bookmarks = []
if type_ == BookmarkStoreType.PUBSUB:
item = get_pubsub_item(stanza)
- bookmarks = []
storage_node = item.getTag('storage', namespace=NS_BOOKMARKS)
if type_ == BookmarkStoreType.PRIVATE:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/135a5d84ccfcb6d4664259599c…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/135a5d84ccfcb6d4664259599c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
f19ef1d9 by Philipp Hörist at 2019-02-05T19:50:41Z
Support domain based name for GSSAPI
- - - - -
2 changed files:
- nbxmpp/auth.py
- nbxmpp/protocol.py
Changes:
=====================================
nbxmpp/auth.py
=====================================
@@ -29,6 +29,7 @@ from nbxmpp.protocol import Node
from nbxmpp.protocol import NodeProcessed
from nbxmpp.protocol import SASL_ERROR_CONDITIONS
from nbxmpp.protocol import SASL_AUTH_MECHS
+from nbxmpp.protocol import NS_DOMAIN_BASED_NAME
from nbxmpp.util import b64decode
from nbxmpp.util import b64encode
from nbxmpp.const import GSSAPIState
@@ -77,6 +78,7 @@ class SASL(PlugIn):
self._method = None
self._channel_binding = None
+ self._domain_based_name = None
def _setup_mechs(self):
if self._owner.connected in ('ssl', 'tls'):
@@ -139,6 +141,11 @@ class SASL(PlugIn):
log.info('Available mechanisms: %s', available_mechs)
+ hostname = stanza.getTag('hostname', namespace=NS_DOMAIN_BASED_NAME)
+ if hostname is not None:
+ self._domain_based_name = hostname.getData()
+ log.info('Found domain based name: %s', self._domain_based_name)
+
if not available_mechs:
log.error('No available auth mechanisms found')
self._abort_auth('invalid-mechanism')
@@ -192,7 +199,8 @@ class SASL(PlugIn):
elif self._chosen_mechanism == 'GSSAPI':
self._method = GSSAPI(self._owner.Connection)
- self._method.initiate(self._owner.xmpp_hostname)
+ self._method.initiate(self._domain_based_name or
+ self._owner.xmpp_hostname)
else:
log.error('Unknown auth mech')
=====================================
nbxmpp/protocol.py
=====================================
@@ -190,6 +190,7 @@ NS_HASHES_BLAKE2B_256 = 'urn:xmpp:hash-function-text-names:id-blake2b256'
NS_HASHES_BLAKE2B_512 = 'urn:xmpp:hash-function-text-names:id-blake2b512'
NS_OPENPGP = 'urn:xmpp:openpgp:0'
NS_BOOKMARK_CONVERSION = 'urn:xmpp:bookmarks-conversion:0'
+NS_DOMAIN_BASED_NAME = 'urn:xmpp:domain-based-name:1'
#xmpp_stream_error_conditions = '''
#bad-format -- -- -- The entity has sent XML that cannot be processed.
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/f19ef1d9382670eca23cedc003…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/f19ef1d9382670eca23cedc003…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch nbxmpp_0.6 at gajim / python-nbxmpp
Commits:
50ced8c1 by Philipp Hörist at 2019-02-05T19:41:57Z
Update CHANGELOG
- - - - -
1 changed file:
- ChangeLog
Changes:
=====================================
ChangeLog
=====================================
@@ -1,3 +1,8 @@
+python-nbxmpp 0.6.10 (TBA)
+
+ * Add support for domain based name in features for GSSAPI
+ * Fix usage of BOSH
+
python-nbxmpp 0.6.9 (10 January 2019)
* Always bind after SM failed Fixes #64
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/50ced8c108277fc1979c314201…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/50ced8c108277fc1979c314201…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch nbxmpp_0.6 at gajim / python-nbxmpp
Commits:
cd95704b by Philipp Hörist at 2019-02-05T19:37:43Z
Fix typo
- - - - -
1 changed file:
- nbxmpp/auth_nb.py
Changes:
=====================================
nbxmpp/auth_nb.py
=====================================
@@ -124,7 +124,7 @@ class SASL(PlugIn):
self.channel_binding = channel_binding
self.enabled_auth_mechs = auth_mechs
self.realm = None
- self._domain_based_hostname = None
+ self._domain_based_name = None
def plugin(self, owner):
if 'version' not in self._owner.Dispatcher.Stream._document_attrs:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/cd95704b0b6bb60c4763b9b95f…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/cd95704b0b6bb60c4763b9b95f…
You're receiving this email because of your account on dev.gajim.org.