summaryrefslogtreecommitdiff
path: root/libcli/util
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-05 19:38:58 +0200
committerGünther Deschner <gd@samba.org>2009-05-05 21:10:02 +0200
commite7a8577df1e92982ff717a62280f86e3b0384d54 (patch)
tree59302fcb271fa9d58580bd093c3876a09ecd546c /libcli/util
parent0ca795ef4fab1f880c2b76d7fe8f0aabb302b6e2 (diff)
downloadsamba-e7a8577df1e92982ff717a62280f86e3b0384d54.tar.gz
samba-e7a8577df1e92982ff717a62280f86e3b0384d54.tar.bz2
samba-e7a8577df1e92982ff717a62280f86e3b0384d54.zip
error-codes: add some more group specific windows error codes.
Guenther
Diffstat (limited to 'libcli/util')
-rw-r--r--libcli/util/doserr.c4
-rw-r--r--libcli/util/werror.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/libcli/util/doserr.c b/libcli/util/doserr.c
index 1151d3236b..a7a132fbcb 100644
--- a/libcli/util/doserr.c
+++ b/libcli/util/doserr.c
@@ -79,6 +79,7 @@ static const struct 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_NO_SUCH_GROUP", WERR_NO_SUCH_GROUP },
{ "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 },
@@ -96,6 +97,7 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_UNKNOWN_REVISION", WERR_UNKNOWN_REVISION },
{ "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH },
{ "WERR_INVALID_OWNER", WERR_INVALID_OWNER },
+ { "WERR_INVALID_PRIMARY_GROUP", WERR_INVALID_PRIMARY_GROUP },
{ "WERR_INVALID_COMPUTERNAME", WERR_INVALID_COMPUTERNAME },
{ "WERR_INVALID_DOMAINNAME", WERR_INVALID_DOMAINNAME },
{ "WERR_MACHINE_LOCKED", WERR_MACHINE_LOCKED },
@@ -232,6 +234,8 @@ const struct werror_str_struct dos_err_strs[] = {
{ WERR_NONE_MAPPED, "Could not map names to SIDs" },
{ WERR_NO_SUCH_USER, "No such User" },
{ WERR_GROUP_EXISTS, "Group already exists" },
+ { WERR_NO_SUCH_GROUP, "No such Group" },
+ { WERR_INVALID_PRIMARY_GROUP, "The account's primary group is invalid" },
{ WERR_DS_DRA_BAD_DN, "An invalid distinguished name was specified for this replication" },
{ WERR_DS_DRA_BAD_NC, "An invalid naming context was specified for this replication operation" },
{ WERR_WRONG_PASSWORD, "The current password is incorrect" }
diff --git a/libcli/util/werror.h b/libcli/util/werror.h
index 2e6b696d3f..2976390ebf 100644
--- a/libcli/util/werror.h
+++ b/libcli/util/werror.h
@@ -126,6 +126,7 @@ typedef uint32_t WERROR;
#define WERR_MACHINE_LOCKED W_ERROR(1271)
#define WERR_REVISION_MISMATCH W_ERROR(1306)
#define WERR_INVALID_OWNER W_ERROR(1307)
+#define WERR_INVALID_PRIMARY_GROUP W_ERROR(1308)
#define WERR_NO_LOGON_SERVERS W_ERROR(1311)
#define WERR_NO_SUCH_LOGON_SESSION W_ERROR(1312)
#define WERR_NO_SUCH_PRIVILEGE W_ERROR(1313)
@@ -133,6 +134,7 @@ typedef uint32_t WERROR;
#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_NO_SUCH_GROUP W_ERROR(1319)
#define WERR_MEMBER_IN_GROUP W_ERROR(1320)
#define WERR_USER_NOT_IN_GROUP W_ERROR(1321)
#define WERR_WRONG_PASSWORD W_ERROR(1323)