summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-12 18:30:14 +0200
committerGünther Deschner <gd@samba.org>2008-04-12 18:30:14 +0200
commit98abf71ff525711bda177b4b8b64f0f43d872891 (patch)
tree8404190654c09a2a1eb93f1db6c627775b21976d
parent293831563330b78ee4bdd463c37b7be21a4ebedc (diff)
downloadsamba-98abf71ff525711bda177b4b8b64f0f43d872891.tar.gz
samba-98abf71ff525711bda177b4b8b64f0f43d872891.tar.bz2
samba-98abf71ff525711bda177b4b8b64f0f43d872891.zip
Add WERR_USER_ALREADY_EXISTS and WERR_PASSWORD_RESTRICTION.
Guenther (This used to be commit eefd03d39b107598e9b0d1f35def7b17073d8ebc)
-rw-r--r--source3/include/doserr.h2
-rw-r--r--source3/libsmb/doserr.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/doserr.h b/source3/include/doserr.h
index d4bd927fa7..1d1cc49051 100644
--- a/source3/include/doserr.h
+++ b/source3/include/doserr.h
@@ -206,6 +206,8 @@
#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)
diff --git a/source3/libsmb/doserr.c b/source3/libsmb/doserr.c
index 278875a523..cd3c2fef5e 100644
--- a/source3/libsmb/doserr.c
+++ b/source3/libsmb/doserr.c
@@ -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" },
};
/*****************************************************************************