Add WERR_USER_ALREADY_EXISTS and WERR_PASSWORD_RESTRICTION.
authorGünther Deschner <gd@samba.org>
Sat, 12 Apr 2008 16:30:14 +0000 (18:30 +0200)
committerGünther Deschner <gd@samba.org>
Sat, 12 Apr 2008 16:30:14 +0000 (18:30 +0200)
Guenther
(This used to be commit eefd03d39b107598e9b0d1f35def7b17073d8ebc)

source3/include/doserr.h
source3/libsmb/doserr.c

index d4bd927fa7ae21cbe12a041c8bbbf7cb49af0b08..1d1cc4905164708185f0cde4916c4909fa1f76e0 100644 (file)
 #define WERR_MACHINE_LOCKED W_ERROR(1271)
 #define WERR_NO_LOGON_SERVERS W_ERROR(1311)
 #define WERR_NO_SUCH_LOGON_SESSION W_ERROR(1312)
+#define WERR_USER_ALREADY_EXISTS W_ERROR(1316)
+#define WERR_PASSWORD_RESTRICTION W_ERROR(1325)
 #define WERR_LOGON_FAILURE W_ERROR(1326)
 #define WERR_NO_SUCH_DOMAIN W_ERROR(1355)
 #define WERR_INVALID_SECURITY_DESCRIPTOR W_ERROR(1338)
index 278875a5234e896f872d525653fe6b2c92e3269f..cd3c2fef5ed875f11e2156ec7c87bb85f4a70821 100644 (file)
@@ -66,6 +66,7 @@ werror_code_struct dos_errs[] =
        { "WERR_USER_EXISTS", WERR_USER_EXISTS },
        { "WERR_NO_LOGON_SERVERS", WERR_NO_LOGON_SERVERS },
        { "WERR_NO_SUCH_LOGON_SESSION", WERR_NO_SUCH_LOGON_SESSION },
+       { "WERR_USER_ALREADY_EXISTS", WERR_USER_ALREADY_EXISTS },
        { "WERR_PRINTER_DRIVER_IN_USE", WERR_PRINTER_DRIVER_IN_USE },
        { "WERR_STATUS_MORE_ENTRIES  ", WERR_STATUS_MORE_ENTRIES },
        { "WERR_DFS_NO_SUCH_VOL", WERR_DFS_NO_SUCH_VOL },
@@ -82,6 +83,7 @@ werror_code_struct dos_errs[] =
        { "WERR_DEFAULT_JOIN_REQUIRED", WERR_DEFAULT_JOIN_REQUIRED },
        { "WERR_DEVICE_NOT_AVAILABLE", WERR_DEVICE_NOT_AVAILABLE },
        { "WERR_LOGON_FAILURE", WERR_LOGON_FAILURE },
+       { "WERR_PASSWORD_RESTRICTION", WERR_PASSWORD_RESTRICTION },
        { "WERR_NO_SUCH_DOMAIN", WERR_NO_SUCH_DOMAIN },
        { "WERR_INVALID_SECURITY_DESCRIPTOR", WERR_INVALID_SECURITY_DESCRIPTOR },
        { "WERR_TIME_SKEW", WERR_TIME_SKEW },
@@ -124,6 +126,8 @@ werror_str_struct dos_err_strs[] = {
        { WERR_PASSWORD_MUST_CHANGE, "The password must be changed" },
        { WERR_ACCOUNT_LOCKED_OUT, "Account locked out" },
        { WERR_TIME_SKEW, "Time difference between client and server" },
+       { WERR_USER_ALREADY_EXISTS, "User already exists" },
+       { WERR_PASSWORD_RESTRICTION, "Password does not meet restrictions" },
 };
 
 /*****************************************************************************