From 554d387ab33220e7dc02d7a8c1aba854277b92f3 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 23 Nov 2001 05:37:40 +0000 Subject: Added constants and error message for dos error code 1326 (logon failure). (This used to be commit 6ce1eec09de64f19d969a67fc236abd4ae277926) --- source3/include/doserr.h | 1 + source3/libsmb/errormap.c | 2 +- source3/libsmb/smberr.c | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) 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 */ -- cgit