2011-06-01 08:05:09 +02:00
|
|
|
# HG changeset patch
|
|
|
|
# User Petr Cerny <pcerny@novell.com>
|
2012-10-09 13:14:08 +02:00
|
|
|
# Parent 4f5fe2278cd5cff898ad762457312f60a7e82a67
|
2011-06-01 08:05:09 +02:00
|
|
|
Bug 634334 - call to the ntlm_auth helper fails
|
|
|
|
|
|
|
|
diff --git a/extensions/auth/nsAuthSambaNTLM.cpp b/extensions/auth/nsAuthSambaNTLM.cpp
|
|
|
|
--- a/extensions/auth/nsAuthSambaNTLM.cpp
|
|
|
|
+++ b/extensions/auth/nsAuthSambaNTLM.cpp
|
2012-10-09 13:14:08 +02:00
|
|
|
@@ -168,17 +168,17 @@ static PRUint8* ExtractMessage(const nsA
|
2011-06-01 08:05:09 +02:00
|
|
|
nsresult
|
|
|
|
nsAuthSambaNTLM::SpawnNTLMAuthHelper()
|
|
|
|
{
|
|
|
|
const char* username = PR_GetEnv("USER");
|
|
|
|
if (!username)
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
|
2012-10-09 13:14:08 +02:00
|
|
|
const char* const args[] = {
|
2011-06-01 08:05:09 +02:00
|
|
|
- "ntlm_auth",
|
|
|
|
+ "/usr/bin/ntlm_auth",
|
|
|
|
"--helper-protocol", "ntlmssp-client-1",
|
|
|
|
"--use-cached-creds",
|
2012-10-09 13:14:08 +02:00
|
|
|
"--username", username,
|
2011-06-01 08:05:09 +02:00
|
|
|
nsnull
|
|
|
|
};
|
|
|
|
|
2012-10-09 13:14:08 +02:00
|
|
|
bool isOK = SpawnIOChild(const_cast<char* const*>(args), &mChildPID, &mFromChildFD, &mToChildFD);
|
2011-06-01 08:05:09 +02:00
|
|
|
if (!isOK)
|