Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
08bb7036
Commit
08bb7036
authored
16 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix GSSAPI authentication
parent
549511d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/xmpp/auth_nb.py
+1
-1
1 addition, 1 deletion
src/common/xmpp/auth_nb.py
src/common/xmpp/client_nb.py
+7
-6
7 additions, 6 deletions
src/common/xmpp/client_nb.py
with
8 additions
and
7 deletions
src/common/xmpp/auth_nb.py
+
1
−
1
View file @
08bb7036
...
...
@@ -158,7 +158,7 @@ class SASL(PlugIn):
if
'
GSSAPI
'
in
self
.
mecs
and
have_kerberos
:
self
.
mecs
.
remove
(
'
GSSAPI
'
)
self
.
gss_vc
=
kerberos
.
authGSSClientInit
(
'
xmpp@
'
+
\
self
.
_owner
.
socket
.
_host
fqdn
)[
1
]
self
.
_owner
.
xmpp
_host
name
)[
1
]
kerberos
.
authGSSClientStep
(
self
.
gss_vc
,
''
)
response
=
kerberos
.
authGSSClientResponse
(
self
.
gss_vc
)
node
=
Node
(
'
auth
'
,
attrs
=
{
'
xmlns
'
:
NS_SASL
,
'
mechanism
'
:
'
GSSAPI
'
},
...
...
This diff is collapsed.
Click to expand it.
src/common/xmpp/client_nb.py
+
7
−
6
View file @
08bb7036
...
...
@@ -49,6 +49,7 @@ class NonBlockingClient:
self
.
disconnect_handlers
=
[]
self
.
Server
=
domain
self
.
xmpp_hostname
=
None
# FQDN hostname to connect to
# caller is who initiated this client, it is ineeded to register the EventDispatcher
self
.
_caller
=
caller
...
...
@@ -154,16 +155,16 @@ class NonBlockingClient:
self
.
proxy
=
proxy
if
hostname
:
xmpp_hostname
=
hostname
self
.
xmpp_hostname
=
hostname
else
:
xmpp_hostname
=
self
.
Server
self
.
xmpp_hostname
=
self
.
Server
estabilish_tls
=
self
.
secure
==
'
ssl
'
certs
=
(
self
.
cacerts
,
self
.
mycerts
)
proxy_dict
=
{}
tcp_host
=
xmpp_hostname
tcp_port
=
self
.
Port
tcp_host
=
self
.
xmpp_hostname
tcp_port
=
self
.
Port
if
proxy
:
# with proxies, client connects to proxy instead of directly to
...
...
@@ -182,7 +183,7 @@ class NonBlockingClient:
estabilish_tls
=
estabilish_tls
,
certs
=
certs
,
proxy_creds
=
(
proxy_user
,
proxy_pass
),
xmpp_server
=
(
xmpp_hostname
,
self
.
Port
),
xmpp_server
=
(
self
.
xmpp_hostname
,
self
.
Port
),
domain
=
self
.
Server
,
bosh_dict
=
proxy
)
self
.
protocol_type
=
'
BOSH
'
...
...
@@ -190,7 +191,7 @@ class NonBlockingClient:
else
:
proxy_dict
[
'
type
'
]
=
proxy
[
'
type
'
]
proxy_dict
[
'
xmpp_server
'
]
=
(
xmpp_hostname
,
self
.
Port
)
proxy_dict
[
'
xmpp_server
'
]
=
(
self
.
xmpp_hostname
,
self
.
Port
)
proxy_dict
[
'
credentials
'
]
=
(
proxy_user
,
proxy_pass
)
if
not
proxy
or
proxy
[
'
type
'
]
!=
'
bosh
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment