error-codes: add some more group specific windows error codes.
authorGünther Deschner <gd@samba.org>
Tue, 5 May 2009 17:38:58 +0000 (19:38 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 5 May 2009 19:10:02 +0000 (21:10 +0200)
Guenther

libcli/util/doserr.c
libcli/util/werror.h

index 1151d32..a7a132f 100644 (file)
@@ -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" }
index 2e6b696..2976390 100644 (file)
@@ -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)