[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kioslave/http
From:       Szombathelyi György <gyurco () freemail ! hu>
Date:       2005-09-10 20:08:11
Message-ID: 1126382891.598272.13111.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 459419 by gyurco:

Supply the workstation name for NTLM.
CCBUG: 93454


 M  +4 -1      http.cc  


--- branches/KDE/3.5/kdelibs/kioslave/http/http.cc #459418:459419
@@ -5460,9 +5460,12 @@
   if ( len > 4 )
   {
     // create a response
+    char name[512];
+    QString ws;
+    if ( gethostname( name, sizeof(name) ) == 0 ) ws = QString::fromLatin1( name );
     QByteArray challenge;
     KCodecs::base64Decode( strauth.right( len - 5 ), challenge );
-    KNTLM::getAuth( buf, challenge, user, passwd, domain, QString::null, false, false );
+    KNTLM::getAuth( buf, challenge, user, passwd, domain, ws, false, false );
   }
   else
   {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic