Skip to content

Commit 94e38ce

Browse files
committed
In SPNEGO processing check if the NTLM OID is specified and the security blob is an NTLMSSP blob.
1 parent 207c98c commit 94e38ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/filesys/server/auth/EnterpriseSMBAuthenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ else if (tokType == SPNEGO.NegTokenInit) {
12811281
if ( mechToken != null && SecurityBlob.checkForNTLMSSP( mechToken, 0))
12821282
isNTLMSSP = true;
12831283

1284-
if (isNTLMSSP || hasNTLMSSPOid) {
1284+
if (isNTLMSSP && hasNTLMSSPOid) {
12851285

12861286
// NTLMSSP logon, get the NTLMSSP security blob that is inside the SPNEGO blob
12871287
byte[] ntlmsspBlob = negToken.getMechtoken();

0 commit comments

Comments
 (0)