summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprotocols/JabberG/src/jabber_thread.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index 03cdaf12f3..4f9fc51c71 100755
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -618,15 +618,6 @@ void CJabberProto::PerformAuthentication(ThreadData *info)
}
}
- if (auth == nullptr && m_AuthMechs.isNtlmAvailable) {
- m_AuthMechs.isNtlmAvailable = false;
- auth = new TNtlmAuth(info, "NTLM");
- if (!auth->isValid()) {
- delete auth;
- auth = nullptr;
- }
- }
-
if (auth == nullptr && m_AuthMechs.isKerberosAvailable) {
m_AuthMechs.isKerberosAvailable = false;
auth = new TNtlmAuth(info, "GSSAPI", m_AuthMechs.m_gssapiHostName);
@@ -643,6 +634,15 @@ void CJabberProto::PerformAuthentication(ThreadData *info)
}
}
+ if (auth == nullptr && m_AuthMechs.isNtlmAvailable) {
+ m_AuthMechs.isNtlmAvailable = false;
+ auth = new TNtlmAuth(info, "NTLM");
+ if (!auth->isValid()) {
+ delete auth;
+ auth = nullptr;
+ }
+ }
+
if (auth == nullptr && m_AuthMechs.isScramAvailable) {
m_AuthMechs.isScramAvailable = false;
auth = new TScramAuth(info);