Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
d2551443
Commit
d2551443
authored
Oct 27, 2017
by
Dave Cridland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1309 Do not try to piggyback on SASL authenticated sessions
parent
daf92ff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
LocalOutgoingServerSession.java
...software/openfire/session/LocalOutgoingServerSession.java
+9
-4
No files found.
src/java/org/jivesoftware/openfire/session/LocalOutgoingServerSession.java
View file @
d2551443
...
@@ -129,6 +129,11 @@ public class LocalOutgoingServerSession extends LocalServerSession implements Ou
...
@@ -129,6 +129,11 @@ public class LocalOutgoingServerSession extends LocalServerSession implements Ou
return
false
;
return
false
;
}
}
session
=
sessionManager
.
getOutgoingServerSession
(
remoteDomain
);
session
=
sessionManager
.
getOutgoingServerSession
(
remoteDomain
);
if
(
!
session
.
isUsingServerDialback
()
)
{
log
.
debug
(
"Dialback was not used for '{}'. This session cannot be re-used."
,
remoteDomain
);
session
=
null
;
}
if
(
session
==
null
)
if
(
session
==
null
)
{
{
...
@@ -591,10 +596,10 @@ public class LocalOutgoingServerSession extends LocalServerSession implements Ou
...
@@ -591,10 +596,10 @@ public class LocalOutgoingServerSession extends LocalServerSession implements Ou
@Override
@Override
public
boolean
authenticateSubdomain
(
String
localDomain
,
String
remoteDomain
)
{
public
boolean
authenticateSubdomain
(
String
localDomain
,
String
remoteDomain
)
{
if
(!
usingServerDialback
)
{
if
(!
usingServerDialback
)
{
/
/ Using SASL so just assume that the domain was validated
/
*
// (note: this may not be correct)
* We cannot do this reliably; but this code should be unreachable.
addOutgoingDomainPair
(
localDomain
,
remoteDomain
);
*/
return
tru
e
;
return
fals
e
;
}
}
ServerDialback
method
=
new
ServerDialback
(
getConnection
(),
localDomain
);
ServerDialback
method
=
new
ServerDialback
(
getConnection
(),
localDomain
);
if
(
method
.
authenticateDomain
(
socketReader
,
localDomain
,
remoteDomain
,
getStreamID
().
getID
()))
{
if
(
method
.
authenticateDomain
(
socketReader
,
localDomain
,
remoteDomain
,
getStreamID
().
getID
()))
{
...
...
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