diff options
author | Tim Potter <tpot@samba.org> | 2001-11-23 05:37:40 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-11-23 05:37:40 +0000 |
commit | 554d387ab33220e7dc02d7a8c1aba854277b92f3 (patch) | |
tree | 42686ba36cb01423aaf1f949b4f669fa128607e3 /source3 | |
parent | 59e9c62a66c4f2a6f76b0c32f2836ebcfaa23263 (diff) | |
download | samba-554d387ab33220e7dc02d7a8c1aba854277b92f3.tar.gz samba-554d387ab33220e7dc02d7a8c1aba854277b92f3.tar.bz2 samba-554d387ab33220e7dc02d7a8c1aba854277b92f3.zip |
Added constants and error message for dos error code 1326 (logon failure).
(This used to be commit 6ce1eec09de64f19d969a67fc236abd4ae277926)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/doserr.h | 1 | ||||
-rw-r--r-- | source3/libsmb/errormap.c | 2 | ||||
-rw-r--r-- | source3/libsmb/smberr.c | 12 |
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 */ |