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
fdfa760c
Commit
fdfa760c
authored
Oct 07, 2007
by
Kai Blin
Committed by
Alexandre Julliard
Oct 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: ntlm_auth returns BH if the connection to winbindd fails.
parent
6021eef5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
ntlm.c
dlls/secur32/ntlm.c
+15
-0
No files found.
dlls/secur32/ntlm.c
View file @
fdfa760c
...
@@ -1138,6 +1138,10 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
...
@@ -1138,6 +1138,10 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
TRACE
(
"Reply from ntlm_auth: %s
\n
"
,
debugstr_a
(
buffer
));
TRACE
(
"Reply from ntlm_auth: %s
\n
"
,
debugstr_a
(
buffer
));
/* At this point, we get a NA if the user didn't authenticate, but a BH
* if ntlm_auth could not connect to winbindd. Apart from running Wine
* as root, there is no way to fix this for now, so just handle this as
* a failed login. */
if
(
strncmp
(
buffer
,
"AF "
,
3
)
!=
0
)
if
(
strncmp
(
buffer
,
"AF "
,
3
)
!=
0
)
{
{
if
(
strncmp
(
buffer
,
"NA "
,
3
)
==
0
)
if
(
strncmp
(
buffer
,
"NA "
,
3
)
==
0
)
...
@@ -1147,7 +1151,18 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
...
@@ -1147,7 +1151,18 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcceptSecurityContext(
}
}
else
else
{
{
size_t
ntlm_pipe_err_len
=
strlen
(
"BH NT_STATUS_ACCESS_DENIED"
);
if
(
(
buffer_len
>=
ntlm_pipe_err_len
)
&&
(
strncmp
(
buffer
,
"BH NT_STATUS_ACCESS_DENIED"
,
ntlm_pipe_err_len
)
==
0
))
{
TRACE
(
"Connection to winbindd failed
\n
"
);
ret
=
SEC_E_LOGON_DENIED
;
}
else
ret
=
SEC_E_INTERNAL_ERROR
;
ret
=
SEC_E_INTERNAL_ERROR
;
goto
asc_end
;
goto
asc_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