The branch, master has been updated
       via  e7a8577df1e92982ff717a62280f86e3b0384d54 (commit)
      from  0ca795ef4fab1f880c2b76d7fe8f0aabb302b6e2 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e7a8577df1e92982ff717a62280f86e3b0384d54
Author: Günther Deschner <[email protected]>
Date:   Tue May 5 19:38:58 2009 +0200

    error-codes: add some more group specific windows error codes.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 libcli/util/doserr.c |    4 ++++
 libcli/util/werror.h |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/libcli/util/doserr.c b/libcli/util/doserr.c
index 1151d32..a7a132f 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 2e6b696..2976390 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)


-- 
Samba Shared Repository

Reply via email to