summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-05 04:04:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-05 04:04:03 +0000
commitaa045c08b26b9fad2b2f4f314b6ce2bfbefe4380 (patch)
tree2b66426e867dc3d243422ea556aacad8c14f194a /source3
parent5ff40271a5c4602d3164b5d65e3d3bca389f49c8 (diff)
downloadsamba-aa045c08b26b9fad2b2f4f314b6ce2bfbefe4380.tar.gz
samba-aa045c08b26b9fad2b2f4f314b6ce2bfbefe4380.tar.bz2
samba-aa045c08b26b9fad2b2f4f314b6ce2bfbefe4380.zip
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. (This used to be commit 323dd422bd4bdeeee72c9200821e28f86d3072c8)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/errormap.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c
index 74711e01bf..b2b638b229 100644
--- a/source3/libsmb/errormap.c
+++ b/source3/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;