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
|
2018-03-13 20:46:06 +01:00
|
|
|
# Parent 46dd9332e67440fb779e99a694a2bf0edf5c203e
|
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
|
2018-03-13 20:46:06 +01:00
|
|
|
@@ -170,17 +170,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)
|