From 323dd422bd4bdeeee72c9200821e28f86d3072c8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 5 Jan 2002 04:04:03 +0000 Subject: [PATCH] Add a comment on how this error map was derrived. This applies only to the NT->Dos map, I'm still trying to come up with a way to do the reverse. --- source/libsmb/errormap.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source/libsmb/errormap.c b/source/libsmb/errormap.c index 74711e01bf9..b2b638b2293 100644 --- a/source/libsmb/errormap.c +++ b/source/libsmb/errormap.c @@ -21,6 +21,28 @@ #include "includes.h" +/* This map was extracted by the ERRMAPEXTRACT smbtorture command. + The setup was a Samba HEAD (2002-01-03) PDC and an Win2k member + workstation. The PDC was modified (by using the 'name_to_nt_status' + authentication module) to convert the username (in hex) into the + corresponding NTSTATUS error return. + + By opening two nbt sessions to the Win2k workstation, one negotiating + DOS and one negotiating NT errors it was possible to extract the + error mapping. (Because the server only supplies NT errors, the + NT4 workstation had to use its own error tables to convert these + to dos errors). + + Some errors show up as 'squashed' because the NT error connection + got back a different error to the one it sent, so a mapping could + not be determined (a guess has been made in this case, to map the + error as squashed). This is done mainly to prevent users from getting + NT_STATUS_WRONG_PASSWORD and NT_STATUS_NO_SUCH_USER errors (they get + NT_STATUS_LOGON_FAILURE instead. + + -- abartlet (2002-01-03) +*/ + /* NT status -> dos error map */ static struct { uint8 dos_class;