2011-06-01 08:05:09 +02:00
|
|
|
# HG changeset patch
|
|
|
|
# User Petr Cerny <pcerny@novell.com>
|
2012-11-20 21:34:15 +01:00
|
|
|
# Parent 7308e4a7c1f769f4bbbc90870b849cadd99495a6
|
2017-09-28 10:44:46 +02:00
|
|
|
# Parent fe1932b7223a298863663244accc524d474a9f6d
|
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
|
2015-08-12 09:11:49 +02:00
|
|
|
@@ -169,17 +169,17 @@ static uint8_t* 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,
|
2012-11-20 21:34:15 +01:00
|
|
|
nullptr
|
2011-06-01 08:05:09 +02:00
|
|
|
};
|
|
|
|
|
2012-10-09 13:14:08 +02:00
|
|
|
bool isOK = SpawnIOChild(const_cast<char* const*>(args), &mChildPID, &mFromChildFD, &mToChildFD);
|
2017-09-28 10:44:46 +02:00
|
|
|
if (!isOK)
|