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
62a64a25
Commit
62a64a25
authored
May 19, 2016
by
Guus der Kinderen
Committed by
daryl herzmann
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-477: SASL realm should be XMPP domain. (#591)
parent
d0f20e90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
XMPPCallbackHandler.java
...va/org/jivesoftware/openfire/net/XMPPCallbackHandler.java
+2
-5
No files found.
src/java/org/jivesoftware/openfire/net/XMPPCallbackHandler.java
View file @
62a64a25
...
@@ -29,6 +29,7 @@ import javax.security.auth.callback.UnsupportedCallbackException;
...
@@ -29,6 +29,7 @@ import javax.security.auth.callback.UnsupportedCallbackException;
import
javax.security.sasl.AuthorizeCallback
;
import
javax.security.sasl.AuthorizeCallback
;
import
javax.security.sasl.RealmCallback
;
import
javax.security.sasl.RealmCallback
;
import
org.jivesoftware.openfire.XMPPServer
;
import
org.jivesoftware.openfire.auth.AuthFactory
;
import
org.jivesoftware.openfire.auth.AuthFactory
;
import
org.jivesoftware.openfire.auth.AuthToken
;
import
org.jivesoftware.openfire.auth.AuthToken
;
import
org.jivesoftware.openfire.auth.AuthorizationManager
;
import
org.jivesoftware.openfire.auth.AuthorizationManager
;
...
@@ -66,11 +67,7 @@ public class XMPPCallbackHandler implements CallbackHandler {
...
@@ -66,11 +67,7 @@ public class XMPPCallbackHandler implements CallbackHandler {
for
(
Callback
callback
:
callbacks
)
{
for
(
Callback
callback
:
callbacks
)
{
if
(
callback
instanceof
RealmCallback
)
{
if
(
callback
instanceof
RealmCallback
)
{
realm
=
((
RealmCallback
)
callback
).
getText
();
((
RealmCallback
)
callback
).
setText
(
XMPPServer
.
getInstance
().
getServerInfo
().
getXMPPDomain
()
);
if
(
realm
==
null
)
{
realm
=
((
RealmCallback
)
callback
).
getDefaultText
();
}
//Log.debug("XMPPCallbackHandler: RealmCallback: " + realm);
}
}
else
if
(
callback
instanceof
NameCallback
)
{
else
if
(
callback
instanceof
NameCallback
)
{
name
=
((
NameCallback
)
callback
).
getName
();
name
=
((
NameCallback
)
callback
).
getName
();
...
...
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