summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-02 14:45:08 +0200
committerGünther Deschner <gd@samba.org>2008-06-03 01:27:44 +0200
commit39101acba53f259f5a0147c9dc19f8d1d0dd6212 (patch)
tree67e724bdcf06b26977a6a13f355293be0c7cd6d1
parentc30b8c4eafc945f8641e39157e4bb70f17815eee (diff)
downloadsamba-39101acba53f259f5a0147c9dc19f8d1d0dd6212.tar.gz
samba-39101acba53f259f5a0147c9dc19f8d1d0dd6212.tar.bz2
samba-39101acba53f259f5a0147c9dc19f8d1d0dd6212.zip
errors: add more WERRORs.
Guenther (This used to be commit 973de861c98c62ba31ceb63b3434dc201ae8bf06)
-rw-r--r--source3/include/doserr.h5
-rw-r--r--source3/libsmb/doserr.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/doserr.h b/source3/include/doserr.h
index 095414ae3c..b027ba4f9b 100644
--- a/source3/include/doserr.h
+++ b/source3/include/doserr.h
@@ -212,6 +212,8 @@
#define WERR_USER_ALREADY_EXISTS W_ERROR(1316)
#define WERR_NO_SUCH_USER W_ERROR(1317)
#define WERR_GROUP_EXISTS W_ERROR(1318)
+#define WERR_MEMBER_IN_GROUP W_ERROR(1320)
+#define WERR_USER_NOT_IN_GROUP W_ERROR(1321)
#define WERR_PASSWORD_RESTRICTION W_ERROR(1325)
#define WERR_LOGON_FAILURE W_ERROR(1326)
#define WERR_NO_SUCH_DOMAIN W_ERROR(1355)
@@ -220,6 +222,7 @@
#define WERR_INVALID_DOMAIN_STATE W_ERROR(1353)
#define WERR_INVALID_DOMAIN_ROLE W_ERROR(1354)
#define WERR_SPECIAL_ACCOUNT W_ERROR(1371)
+#define WERR_ALIAS_EXISTS W_ERROR(1379)
#define WERR_TIME_SKEW W_ERROR(1398)
#define WERR_EVENTLOG_FILE_CORRUPT W_ERROR(1500)
#define WERR_SERVER_UNAVAILABLE W_ERROR(1722)
@@ -275,6 +278,8 @@
#define WERR_BUF_TOO_SMALL W_ERROR(NERR_BASE+23)
#define WERR_JOB_NOT_FOUND W_ERROR(NERR_BASE+51)
#define WERR_DEST_NOT_FOUND W_ERROR(NERR_BASE+52)
+#define WERR_GROUP_NOT_FOUND W_ERROR(NERR_BASE+120)
+#define WERR_USER_NOT_FOUND W_ERROR(NERR_BASE+121)
#define WERR_USER_EXISTS W_ERROR(NERR_BASE+124)
#define WERR_NET_NAME_NOT_FOUND W_ERROR(NERR_BASE+210)
#define WERR_NOT_LOCAL_DOMAIN W_ERROR(NERR_BASE+220)
diff --git a/source3/libsmb/doserr.c b/source3/libsmb/doserr.c
index 905ababdfe..12999e7d80 100644
--- a/source3/libsmb/doserr.c
+++ b/source3/libsmb/doserr.c
@@ -62,6 +62,8 @@ werror_code_struct dos_errs[] =
{ "WERR_BUF_TOO_SMALL", WERR_BUF_TOO_SMALL },
{ "WERR_JOB_NOT_FOUND", WERR_JOB_NOT_FOUND },
{ "WERR_DEST_NOT_FOUND", WERR_DEST_NOT_FOUND },
+ { "WERR_GROUP_NOT_FOUND", WERR_GROUP_NOT_FOUND },
+ { "WERR_USER_NOT_FOUND", WERR_USER_NOT_FOUND },
{ "WERR_NOT_LOCAL_DOMAIN", WERR_NOT_LOCAL_DOMAIN },
{ "WERR_USER_EXISTS", WERR_USER_EXISTS },
{ "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH },
@@ -70,6 +72,8 @@ werror_code_struct dos_errs[] =
{ "WERR_USER_ALREADY_EXISTS", WERR_USER_ALREADY_EXISTS },
{ "WERR_NO_SUCH_USER", WERR_NO_SUCH_USER },
{ "WERR_GROUP_EXISTS", WERR_GROUP_EXISTS },
+ { "WERR_MEMBER_IN_GROUP", WERR_MEMBER_IN_GROUP },
+ { "WERR_USER_NOT_IN_GROUP", WERR_USER_NOT_IN_GROUP },
{ "WERR_PRINTER_DRIVER_IN_USE", WERR_PRINTER_DRIVER_IN_USE },
{ "WERR_STATUS_MORE_ENTRIES ", WERR_STATUS_MORE_ENTRIES },
{ "WERR_DFS_NO_SUCH_VOL", WERR_DFS_NO_SUCH_VOL },
@@ -94,6 +98,7 @@ werror_code_struct dos_errs[] =
{ "WERR_INVALID_DOMAIN_STATE", WERR_INVALID_DOMAIN_STATE },
{ "WERR_INVALID_DOMAIN_ROLE", WERR_INVALID_DOMAIN_ROLE },
{ "WERR_SPECIAL_ACCOUNT", WERR_SPECIAL_ACCOUNT },
+ { "WERR_ALIAS_EXISTS", WERR_ALIAS_EXISTS },
{ "WERR_TIME_SKEW", WERR_TIME_SKEW },
{ "WERR_INVALID_OWNER", WERR_INVALID_OWNER },
{ "WERR_SERVER_UNAVAILABLE", WERR_SERVER_UNAVAILABLE },