Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pg mr
gajim
Commits
d0e602bd
Commit
d0e602bd
authored
Feb 12, 2021
by
Philipp Hörist
Browse files
Add setting for GSSAPI authentication
parent
c6fd3959
Changes
3
Hide whitespace changes
Inline
Side-by-side
gajim/common/client.py
View file @
d0e602bd
...
...
@@ -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
:
...
...
gajim/common/setting_values.py
View file @
d0e602bd
...
...
@@ -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'
:
{
...
...
gajim/gtk/accounts.py
View file @
d0e602bd
...
...
@@ -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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment