summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-11-22 14:28:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:05 -0500
commit3129264308c7c68bfe94228dcb7af99876d93dff (patch)
tree8f29e9b3c593f947d126c895cba8e8c23fdfd79f
parent08c4c748a4c9707ac4300f9ef848ec808a469994 (diff)
downloadsamba-3129264308c7c68bfe94228dcb7af99876d93dff.tar.gz
samba-3129264308c7c68bfe94228dcb7af99876d93dff.tar.bz2
samba-3129264308c7c68bfe94228dcb7af99876d93dff.zip
r3910: add some error codes
metze (This used to be commit 64570b7a4734ec1cc56a07e6bd9b20a155a876c0)
-rw-r--r--source4/include/doserr.h8
-rw-r--r--source4/libcli/util/doserr.c6
2 files changed, 13 insertions, 1 deletions
diff --git a/source4/include/doserr.h b/source4/include/doserr.h
index ffaad7f936..687bd6fdce 100644
--- a/source4/include/doserr.h
+++ b/source4/include/doserr.h
@@ -183,9 +183,12 @@
#define WERR_OBJECT_PATH_INVALID W_ERROR(161)
#define WERR_NO_MORE_ITEMS W_ERROR(259)
#define WERR_MORE_DATA W_ERROR(234)
-#define WERR_INVALID_OWNER W_ERROR(1307)
#define WERR_CAN_NOT_COMPLETE W_ERROR(1003)
+#define WERR_INVALID_DOMAINNAME W_ERROR(1212)
+#define WERR_INVALID_OWNER W_ERROR(1307)
+#define WERR_NO_SUCH_USER W_ERROR(1317)
#define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338)
+#define WERR_NO_SUCH_DOMAIN W_ERROR(1355)
#define WERR_SERVER_UNAVAILABLE W_ERROR(1722)
#define WERR_INVALID_FORM_NAME W_ERROR(1902)
#define WERR_INVALID_FORM_SIZE W_ERROR(1903)
@@ -232,6 +235,9 @@
#define WERR_DFS_CANT_CREATE_JUNCT W_ERROR(NERR_BASE+569)
/* DS errors */
+#define WERR_DS_SERVICE_BUSY W_ERROR(0x0000200e)
+#define WERR_DS_SERVICE_UNAVAILABLE W_ERROR(0x0000200f)
+#define WERR_DS_NO_SUCH_OBJECT W_ERROR(0x00002030)
#define WERR_DS_OBJ_NOT_FOUND W_ERROR(0x0000208d)
diff --git a/source4/libcli/util/doserr.c b/source4/libcli/util/doserr.c
index 8f997cf092..0e2270d8f6 100644
--- a/source4/libcli/util/doserr.c
+++ b/source4/libcli/util/doserr.c
@@ -67,6 +67,12 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_DFS_CANT_CREATE_JUNCT", WERR_DFS_CANT_CREATE_JUNCT },
{ "WERR_INVALID_SECURITY_DESCRIPTOR", WERR_INVALID_SECURITY_DESCRIPTOR },
{ "WERR_INVALID_OWNER", WERR_INVALID_OWNER },
+ { "WERR_INVALID_DOMAINNAME", WERR_INVALID_DOMAINNAME },
+ { "WERR_NO_SUCH_USER", WERR_NO_SUCH_USER },
+ { "WERR_NO_SUCH_DOMAIN", WERR_NO_SUCH_DOMAIN },
+ { "WERR_DS_SERVICE_BUSY", WERR_DS_SERVICE_BUSY },
+ { "WERR_DS_SERVICE_UNAVAILABLE", WERR_DS_SERVICE_UNAVAILABLE },
+ { "WERR_DS_NO_SUCH_OBJECT", WERR_DS_NO_SUCH_OBJECT },
{ "WERR_DS_OBJ_NOT_FOUND", WERR_DS_OBJ_NOT_FOUND },
{ "WERR_GENERAL_FAILURE", WERR_GENERAL_FAILURE },
{ "WERR_PRINTQ_FULL", WERR_PRINTQ_FULL },