summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/doserr.h1
-rw-r--r--source3/libsmb/errormap.c2
-rw-r--r--source3/libsmb/smberr.c12
3 files changed, 14 insertions, 1 deletions
diff --git a/source3/include/doserr.h b/source3/include/doserr.h
index 43a325bc52..087249ad44 100644
--- a/source3/include/doserr.h
+++ b/source3/include/doserr.h
@@ -71,6 +71,7 @@
#define ERRnomoreitems 259
#define ERRbaddirectory 267 /* Invalid directory name in a path. */
#define ERReasnotsupported 282 /* Extended attributes */
+#define ERRlogonfailure 1326 /* Unknown username or bad password */
#define ERRbuftoosmall 2123
#define ERRunknownipc 2142
#define ERRnosuchprintjob 2151
diff --git a/source3/libsmb/errormap.c b/source3/libsmb/errormap.c
index 65dcdf4bdf..18e70eed36 100644
--- a/source3/libsmb/errormap.c
+++ b/source3/libsmb/errormap.c
@@ -133,7 +133,7 @@ static struct {
{ERRSRV, ERRbadpw, NT_STATUS_WRONG_PASSWORD},
{ERRDOS, 1324, NT_STATUS_ILL_FORMED_PASSWORD},
{ERRDOS, 1325, NT_STATUS_PASSWORD_RESTRICTION},
- {ERRDOS, 1326, NT_STATUS_LOGON_FAILURE},
+ {ERRDOS, ERRlogonfailure, NT_STATUS_LOGON_FAILURE},
{ERRDOS, 1327, NT_STATUS_ACCOUNT_RESTRICTION},
{ERRDOS, 1328, NT_STATUS_INVALID_LOGON_HOURS},
{ERRDOS, 1329, NT_STATUS_INVALID_WORKSTATION},
diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c
index 66256d2385..a43e4764e8 100644
--- a/source3/libsmb/smberr.c
+++ b/source3/libsmb/smberr.c
@@ -25,6 +25,17 @@
/* error code stuff - put together by Merik Karman
merik@blackadder.dsh.oz.au */
+
+/* There is a big list of error codes and their meanings at:
+
+ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/errlist_7oz7.asp
+
+ and if you don't like MSDN try:
+
+ http://www.siris.gr/computers/library/error.htm
+
+*/
+
typedef const struct
{
char *name;
@@ -64,6 +75,7 @@ err_code_struct dos_msgs[] = {
{"ERRnotconnected",ERRnotconnected,"No process on other end of pipe."},
{"ERRmoredata",ERRmoredata,"There is more data to be returned."},
{"ERRinvgroup",2455,"Invalid workgroup (try the -W option)"},
+ {"ERRlogonfailure",ERRlogonfailure,"Logon failure"},
{NULL,-1,NULL}};
/* Server Error Messages */