[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kioslave/http
From: Szombathelyi György <gyurco () freemail ! hu>
Date: 2005-02-06 16:36:24
Message-ID: 20050206163624.2F6DB1CF66 () office ! kde ! org
[Download RAW message or body]
CVS commit by gyurco:
Allow to set the domain name in NTLM authentication.
M +7 -2 http.cc 1.635
--- kdelibs/kioslave/http/http.cc #1.634:1.635
@@ -5381,5 +5381,5 @@ QString HTTPProtocol::createNTLMAuth( bo
{
uint len;
- QString auth, user, passwd;
+ QString auth, user, domain, passwd;
QCString strauth;
QByteArray buf;
@@ -5401,4 +5401,9 @@ QString HTTPProtocol::createNTLMAuth( bo
len = m_strAuthorization.length();
}
+ if ( user.contains('\\') ) {
+ domain = user.section( '\\', 0, 0);
+ user = user.section( '\\', 1 );
+ }
+
kdDebug(7113) << "(" << m_pid << ") NTLM length: " << len << endl;
if ( user.isEmpty() || passwd.isEmpty() || len < 4 )
@@ -5410,5 +5415,5 @@ QString HTTPProtocol::createNTLMAuth( bo
QByteArray challenge;
KCodecs::base64Decode( strauth.right( len - 5 ), challenge );
- KNTLM::getAuth( buf, challenge, user, passwd, QString::null, QString::null, false, false );
+ KNTLM::getAuth( buf, challenge, user, passwd, domain, QString::null, false, false );
}
else
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic