mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Workaround some 'smarts' in Win2k.
Win2k kills off connections that have issued a negprot but havn't yet issued a session setup when a second connection appears from the same host.
This commit is contained in:
parent
da9444d98f
commit
d47e61eb46
@ -2869,27 +2869,47 @@ static BOOL run_error_map_extract(int dummy) {
|
||||
|
||||
fstring user;
|
||||
|
||||
/* NT-Error connection */
|
||||
|
||||
if (!open_nbt_connection(&c_nt)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
c_nt.use_spnego = False;
|
||||
|
||||
if (!cli_negprot(&c_nt)) {
|
||||
printf("%s rejected the NT-error negprot (%s)\n",host, cli_errstr(&c_nt));
|
||||
cli_shutdown(&c_nt);
|
||||
return False;
|
||||
}
|
||||
|
||||
if (!cli_session_setup(&c_nt, "", "", 0, "", 0,
|
||||
workgroup)) {
|
||||
printf("%s rejected the NT-error initial session setup (%s)\n",host, cli_errstr(&c_nt));
|
||||
return False;
|
||||
}
|
||||
|
||||
/* DOS-Error connection */
|
||||
|
||||
if (!open_nbt_connection(&c_dos)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
c_dos.use_spnego = False;
|
||||
c_dos.force_dos_errors = True;
|
||||
|
||||
if (!cli_negprot(&c_dos)) {
|
||||
printf("%s rejected the DOS-error negprot (%s)\n",host, cli_errstr(&c_dos));
|
||||
cli_shutdown(&c_dos);
|
||||
return False;
|
||||
}
|
||||
|
||||
if (!cli_session_setup(&c_dos, "", "", 0, "", 0,
|
||||
workgroup)) {
|
||||
printf("%s rejected the DOS-error initial session setup (%s)\n",host, cli_errstr(&c_dos));
|
||||
return False;
|
||||
}
|
||||
|
||||
for (error=(0xc0000000 | 0x1); error < (0xc0000000| 0xFFF); error++) {
|
||||
snprintf(user, sizeof(user), "%X", error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user