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
e464bb87
Commit
e464bb87
authored
Mar 07, 2016
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1092: Fix ANONYMOUS Sasl mechanism.
parent
8980337d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
SASLAuthentication.java
...ava/org/jivesoftware/openfire/net/SASLAuthentication.java
+1
-1
SaslServerFactoryImpl.java
...org/jivesoftware/openfire/sasl/SaslServerFactoryImpl.java
+1
-0
No files found.
src/java/org/jivesoftware/openfire/net/SASLAuthentication.java
View file @
e464bb87
...
...
@@ -229,7 +229,7 @@ public class SASLAuthentication {
// Construct the configuration properties
final
Map
<
String
,
Object
>
props
=
new
HashMap
<>();
props
.
put
(
Local
Client
Session
.
class
.
getCanonicalName
(),
session
);
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
()
);
...
...
src/java/org/jivesoftware/openfire/sasl/SaslServerFactoryImpl.java
View file @
e464bb87
...
...
@@ -55,6 +55,7 @@ public class SaslServerFactoryImpl implements SaslServerFactory
public
SaslServerFactoryImpl
()
{
allMechanisms
=
new
HashSet
<>();
allMechanisms
.
add
(
new
Mechanism
(
"ANONYMOUS"
,
true
,
true
)
);
allMechanisms
.
add
(
new
Mechanism
(
"PLAIN"
,
false
,
true
)
);
allMechanisms
.
add
(
new
Mechanism
(
"SCRAM-SHA-1"
,
false
,
false
)
);
allMechanisms
.
add
(
new
Mechanism
(
"JIVE-SHAREDSECRET"
,
true
,
false
)
);
...
...
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