mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r11076: Still working on bug #1828, PPC hell. The PPC client sends the
NTLMSSP client and domain strings as Unicode, even when setting
flags as OEM. Cope with this.
Jeremy.
(This used to be commit 77399e1cec
)
This commit is contained in:
parent
0aa0c5340f
commit
5de65d5801
@ -186,13 +186,23 @@ NTSTATUS ntlmssp_server_negotiate(struct gensec_security *gensec_security,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (in.length) {
|
if (in.length) {
|
||||||
if (!msrpc_parse(out_mem_ctx,
|
BOOL parse_ok = msrpc_parse(out_mem_ctx,
|
||||||
&in, "CddAA",
|
&in, "CddAA",
|
||||||
"NTLMSSP",
|
"NTLMSSP",
|
||||||
&ntlmssp_command,
|
&ntlmssp_command,
|
||||||
&neg_flags,
|
&neg_flags,
|
||||||
&cliname,
|
&cliname,
|
||||||
&domname)) {
|
&domname);
|
||||||
|
if (!parse_ok) {
|
||||||
|
parse_ok = msrpc_parse(out_mem_ctx,
|
||||||
|
&in, "CddUU",
|
||||||
|
"NTLMSSP",
|
||||||
|
&ntlmssp_command,
|
||||||
|
&neg_flags,
|
||||||
|
&cliname,
|
||||||
|
&domname);
|
||||||
|
}
|
||||||
|
if (!parse_ok) {
|
||||||
DEBUG(1, ("ntlmssp_server_negotiate: failed to parse NTLMSSP:\n"));
|
DEBUG(1, ("ntlmssp_server_negotiate: failed to parse NTLMSSP:\n"));
|
||||||
dump_data(2, in.data, in.length);
|
dump_data(2, in.data, in.length);
|
||||||
return NT_STATUS_INVALID_PARAMETER;
|
return NT_STATUS_INVALID_PARAMETER;
|
||||||
|
Loading…
Reference in New Issue
Block a user