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
3201bf15
Commit
3201bf15
authored
May 19, 2016
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #586 from guusdk/OF-477_GSSAPI-SASL
OF-477: SASL requires FQHN (not XMPP domain name)
parents
cd619578
9ca6e8dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
SASLAuthentication.java
...ava/org/jivesoftware/openfire/net/SASLAuthentication.java
+4
-1
No files found.
src/java/org/jivesoftware/openfire/net/SASLAuthentication.java
View file @
3201bf15
...
...
@@ -261,12 +261,15 @@ public class SASLAuthentication {
throw
new
SaslFailureException
(
Failure
.
INVALID_MECHANISM
,
"The configuration of Openfire does not contain or allow the mechanism."
);
}
// OF-477: The SASL implementation requires the fully qualified host name (not the domain name!) of this server.
final
String
fqhn
=
JiveGlobals
.
getProperty
(
"xmpp.fqdn"
,
XMPPServer
.
getInstance
().
getServerInfo
().
getHostname
()
);
// Construct the configuration properties
final
Map
<
String
,
Object
>
props
=
new
HashMap
<>();
props
.
put
(
LocalSession
.
class
.
getCanonicalName
(),
session
);
props
.
put
(
Sasl
.
POLICY_NOANONYMOUS
,
Boolean
.
toString
(
!
JiveGlobals
.
getBooleanProperty
(
"xmpp.auth.anonymous"
)
)
);
SaslServer
saslServer
=
Sasl
.
createSaslServer
(
mechanismName
,
"xmpp"
,
session
.
getServerName
()
,
props
,
new
XMPPCallbackHandler
()
);
SaslServer
saslServer
=
Sasl
.
createSaslServer
(
mechanismName
,
"xmpp"
,
fqhn
,
props
,
new
XMPPCallbackHandler
()
);
if
(
saslServer
==
null
)
{
throw
new
SaslFailureException
(
Failure
.
INVALID_MECHANISM
,
"There is no provider that can provide a SASL server for the desired mechanism and properties."
);
...
...
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