mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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
|
||||
|
||||
if (in.length) {
|
||||
if (!msrpc_parse(out_mem_ctx,
|
||||
BOOL parse_ok = msrpc_parse(out_mem_ctx,
|
||||
&in, "CddAA",
|
||||
"NTLMSSP",
|
||||
&ntlmssp_command,
|
||||
&neg_flags,
|
||||
&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"));
|
||||
dump_data(2, in.data, in.length);
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
|
Loading…
Reference in New Issue
Block a user