1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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 commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 9844ec3399
commit 323dd422bd

View File

@ -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;