/*
* Unix SMB/CIFS implementation.
* error mapping functions
* Copyright (C) Andrew Tridgell 2001
* Copyright (C) Andrew Bartlett 2001
* Copyright (C) Tim Potter 2000
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "includes.h"
#include "nsswitch/libwbclient/wbclient.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_WR
|