mirror of
https://github.com/samba-team/samba.git
synced 2025-11-14 12:23:52 +03:00
r11080: Narrowing down on the #1828 PPC bug. The PPC client sends an
initial NTLMSSP negotiate blob of only 16 bytes - no strings added ! (So don't try parsing them). Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2f76e2a6bf
commit
42d93a317a
@@ -186,28 +186,16 @@ NTSTATUS ntlmssp_server_negotiate(struct gensec_security *gensec_security,
|
||||
#endif
|
||||
|
||||
if (in.length) {
|
||||
BOOL parse_ok = msrpc_parse(out_mem_ctx,
|
||||
&in, "CddAA",
|
||||
"NTLMSSP",
|
||||
&ntlmssp_command,
|
||||
&neg_flags,
|
||||
&cliname,
|
||||
&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"));
|
||||
if ((in.length < 16) || !msrpc_parse(out_mem_ctx, &in, "Cdd",
|
||||
"NTLMSSP",
|
||||
&ntlmssp_command,
|
||||
&neg_flags)) {
|
||||
DEBUG(1, ("ntlmssp_server_negotiate: failed to parse "
|
||||
"NTLMSSP Negotiate of length %u:\n",
|
||||
(unsigned int)in.length ));
|
||||
dump_data(2, in.data, in.length);
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
debug_ntlmssp_flags(neg_flags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user