Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
31815778
Commit
31815778
authored
May 10, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
May 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Add an option to disable use of cached Samba credentials.
parent
bd7e4697
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
ntlm.c
dlls/secur32/ntlm.c
+6
-2
No files found.
dlls/secur32/ntlm.c
View file @
31815778
...
@@ -52,6 +52,7 @@ typedef struct _NtlmCredentials
...
@@ -52,6 +52,7 @@ typedef struct _NtlmCredentials
char
*
domain_arg
;
char
*
domain_arg
;
char
*
password
;
/* not nul-terminated */
char
*
password
;
/* not nul-terminated */
int
pwlen
;
int
pwlen
;
int
no_cached_credentials
;
/* don't try to use cached Samba credentials */
}
NtlmCredentials
,
*
PNtlmCredentials
;
}
NtlmCredentials
,
*
PNtlmCredentials
;
/***********************************************************************
/***********************************************************************
...
@@ -141,7 +142,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
...
@@ -141,7 +142,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
PVOID
pGetKeyArgument
,
PCredHandle
phCredential
,
PTimeStamp
ptsExpiry
)
PVOID
pGetKeyArgument
,
PCredHandle
phCredential
,
PTimeStamp
ptsExpiry
)
{
{
SECURITY_STATUS
ret
;
SECURITY_STATUS
ret
;
PNtlmCredentials
ntlm_cred
=
NULL
;
PNtlmCredentials
ntlm_cred
;
TRACE
(
"(%s, %s, 0x%08x, %p, %p, %p, %p, %p, %p)
\n
"
,
TRACE
(
"(%s, %s, 0x%08x, %p, %p, %p, %p, %p, %p)
\n
"
,
debugstr_w
(
pszPrincipal
),
debugstr_w
(
pszPackage
),
fCredentialUse
,
debugstr_w
(
pszPrincipal
),
debugstr_w
(
pszPackage
),
fCredentialUse
,
...
@@ -160,6 +161,8 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
...
@@ -160,6 +161,8 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
ntlm_cred
->
domain_arg
=
NULL
;
ntlm_cred
->
domain_arg
=
NULL
;
ntlm_cred
->
password
=
NULL
;
ntlm_cred
->
password
=
NULL
;
ntlm_cred
->
pwlen
=
0
;
ntlm_cred
->
pwlen
=
0
;
ntlm_cred
->
no_cached_credentials
=
0
;
phCredential
->
dwUpper
=
fCredentialUse
;
phCredential
->
dwUpper
=
fCredentialUse
;
phCredential
->
dwLower
=
(
ULONG_PTR
)
ntlm_cred
;
phCredential
->
dwLower
=
(
ULONG_PTR
)
ntlm_cred
;
ret
=
SEC_E_OK
;
ret
=
SEC_E_OK
;
...
@@ -178,6 +181,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
...
@@ -178,6 +181,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleW(
ntlm_cred
->
domain_arg
=
NULL
;
ntlm_cred
->
domain_arg
=
NULL
;
ntlm_cred
->
password
=
NULL
;
ntlm_cred
->
password
=
NULL
;
ntlm_cred
->
pwlen
=
0
;
ntlm_cred
->
pwlen
=
0
;
ntlm_cred
->
no_cached_credentials
=
0
;
if
(
pAuthData
!=
NULL
)
if
(
pAuthData
!=
NULL
)
{
{
...
@@ -539,7 +543,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
...
@@ -539,7 +543,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
else
else
{
{
status
=
NetWkstaUserGetInfo
(
NULL
,
1
,
(
LPBYTE
*
)
&
ui
);
status
=
NetWkstaUserGetInfo
(
NULL
,
1
,
(
LPBYTE
*
)
&
ui
);
if
(
status
!=
NERR_Success
||
ui
==
NULL
)
if
(
status
!=
NERR_Success
||
ui
==
NULL
||
ntlm_cred
->
no_cached_credentials
)
{
{
ret
=
SEC_E_NO_CREDENTIALS
;
ret
=
SEC_E_NO_CREDENTIALS
;
goto
isc_end
;
goto
isc_end
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment