summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-21 12:57:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:17 -0500
commit39fd6db42b4186f573ab4728509d6b8a7c8a6973 (patch)
tree3b81d4b6d51829c6942af48bc2180fa76baad5e3
parent0f2c93016d870adc4eb4e7072c05a8ef8273cb0c (diff)
downloadsamba-39fd6db42b4186f573ab4728509d6b8a7c8a6973.tar.gz
samba-39fd6db42b4186f573ab4728509d6b8a7c8a6973.tar.bz2
samba-39fd6db42b4186f573ab4728509d6b8a7c8a6973.zip
r15775: add some privilege related WERROR codes
metze (This used to be commit 4e8c9bbd768a0d3f8719d8f2005d9b1b527c44fd)
-rw-r--r--source4/libcli/util/doserr.c2
-rw-r--r--source4/libcli/util/doserr.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/util/doserr.c b/source4/libcli/util/doserr.c
index e1ef9d930a..65e9470280 100644
--- a/source4/libcli/util/doserr.c
+++ b/source4/libcli/util/doserr.c
@@ -74,6 +74,8 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_INVALID_OWNER", WERR_INVALID_OWNER },
{ "WERR_INVALID_COMPUTERNAME", WERR_INVALID_COMPUTERNAME },
{ "WERR_INVALID_DOMAINNAME", WERR_INVALID_DOMAINNAME },
+ { "WERR_NO_SUCH_PRIVILEGE", WERR_NO_SUCH_PRIVILEGE },
+ { "WERR_PRIVILEGE_NOT_HELD", WERR_PRIVILEGE_NOT_HELD },
{ "WERR_NO_SUCH_USER", WERR_NO_SUCH_USER },
{ "WERR_NO_SUCH_DOMAIN", WERR_NO_SUCH_DOMAIN },
{ "WERR_DS_SERVICE_BUSY", WERR_DS_SERVICE_BUSY },
diff --git a/source4/libcli/util/doserr.h b/source4/libcli/util/doserr.h
index 5b8ff1dd3d..601320f6fe 100644
--- a/source4/libcli/util/doserr.h
+++ b/source4/libcli/util/doserr.h
@@ -192,6 +192,8 @@
#define WERR_UNKNOWN_REVISION W_ERROR(1305)
#define WERR_REVISION_MISMATCH W_ERROR(1306)
#define WERR_INVALID_OWNER W_ERROR(1307)
+#define WERR_NO_SUCH_PRIVILEGE W_ERROR(1313)
+#define WERR_PRIVILEGE_NOT_HELD W_ERROR(1314)
#define WERR_NO_SUCH_USER W_ERROR(1317)
#define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338)
#define WERR_NO_SUCH_DOMAIN W_ERROR(1355)