mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 06:00:45 +00:00
secur32: Work around ntlm_auth in Samba 3.0.28a being broken for cached credentials.
Samba 3.0.28a (as shipped with Ubuntu 8.04) seems to break when using cached credentials backed by winbindd, returning a BH error in our test if we still need to provide a password. Handle this and report a more correct error.
This commit is contained in:
parent
69ec6b4c6d
commit
7788c8ed0d
@ -662,8 +662,20 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
|
||||
ret = SEC_E_NO_CREDENTIALS;
|
||||
goto isc_end;
|
||||
}
|
||||
else /* Just do a noop on the next run */
|
||||
else
|
||||
{
|
||||
/* Some versions of Samba have a broken ntlm_auth that can
|
||||
* return "BH" here. Catch this and abort. */
|
||||
if(!strncmp(buffer, "BH", 2))
|
||||
{
|
||||
ERR("ntlm_auth replied 'BH'. This should not happen. "
|
||||
"Please fix your ntlm_auth install and try again.\n");
|
||||
ret = SEC_E_INTERNAL_ERROR;
|
||||
goto isc_end;
|
||||
}
|
||||
/* Otherwise, just do a noop on the next run */
|
||||
lstrcpynA(buffer, "OK", max_len-1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user