Commit d0e602bd authored by Philipp Hörist's avatar Philipp Hörist

Add setting for GSSAPI authentication

parent c6fd3959
......@@ -167,6 +167,11 @@ def _create_client(self):
# his password
self.password = passwords.get_password(self._account)
gssapi = app.settings.get_account_setting(self._account,
'enable_gssapi')
if gssapi:
self._client.set_mechs(['GSSAPI'])
anonymous = app.settings.get_account_setting(self._account,
'anonymous_auth')
if anonymous:
......
......@@ -258,6 +258,7 @@ class _ACCOUNT_DEFAULT:
'gc_send_marker_private_default': True,
'gc_send_marker_public_default': False,
'chat_history_max_age': -1,
'enable_gssapi': False,
},
'contact': {
......
......@@ -994,6 +994,9 @@ def __init__(self, account, parent):
Setting(SettingKind.CHANGEPASSWORD, _('Change Password'),
SettingType.DIALOG, callback=self.on_password_change,
props={'dialog': None}),
Setting(SettingKind.SWITCH, _('Use GSSAPI'),
SettingType.ACCOUNT_CONFIG, 'enable_gssapi'),
]
SettingsDialog.__init__(self, parent, _('Login Settings'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment