branches/KDE/3.5/kdelibs/kio/misc/kntlm

Robert Gruber rgruber at users.sourceforge.net
Thu Sep 28 09:39:54 BST 2006


SVN commit 589509 by rgruber:

Fixed bug in NTLM authentication as discussed on kde-core-devel mailinglist.

CCMAIL: kde-core-devel at kde.org


 M  +4 -10     kntlm.cpp  


--- branches/KDE/3.5/kdelibs/kio/misc/kntlm/kntlm.cpp #589508:589509
@@ -158,16 +158,10 @@
 //    }
 //  } else { //if no targetinfo structure and NTLMv2 or LMv2 not forced, try the older methods
 
-    if ( KFromToLittleEndian(ch->flags) & Negotiate_NTLM ) {
-      response = getNTLMResponse( password, ch->challengeData );
-      addBuf( rbuf, ((Auth*) rbuf.data())->ntResponse, response );
-    } else {
-      if ( !forceNTLM ) {
-        response = getLMResponse( password, ch->challengeData );
-        addBuf( rbuf, ((Auth*) rbuf.data())->lmResponse, response );
-      } else
-        return false;
-    }
+    response = getNTLMResponse( password, ch->challengeData );
+    addBuf( rbuf, ((Auth*) rbuf.data())->ntResponse, response );
+    response = getLMResponse( password, ch->challengeData );
+    addBuf( rbuf, ((Auth*) rbuf.data())->lmResponse, response );
 //  }
   if ( !dom.isEmpty() )
     addString( rbuf, ((Auth*) rbuf.data())->domain, dom, unicode );




More information about the kde-core-devel mailing list