summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-12-07 11:45:17 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:44 +0100
commit6c01f55e72b77090c6e1c0cd30c881951ce4fc4a (patch)
tree7543c22233cbd0ce9ceb591dac807eb97a221301
parent8ac03ee60b1b7dbe48cb8ac57188626026e75cd4 (diff)
downloadsamba-6c01f55e72b77090c6e1c0cd30c881951ce4fc4a.tar.gz
samba-6c01f55e72b77090c6e1c0cd30c881951ce4fc4a.tar.bz2
samba-6c01f55e72b77090c6e1c0cd30c881951ce4fc4a.zip
r26332: Add samr_ValidationStatus error mapping to samr_ValidatePassword().
Torture test to follow. Guenther (This used to be commit 10ccfb4c8970bdb140aa9daf945caea72a4ab7cd)
-rw-r--r--source4/librpc/idl/samr.idl22
1 files changed, 21 insertions, 1 deletions
diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl
index 2497ec569f..f008637e99 100644
--- a/source4/librpc/idl/samr.idl
+++ b/source4/librpc/idl/samr.idl
@@ -1324,6 +1324,26 @@ import "misc.idl", "lsa.idl", "security.idl";
NetValidatePasswordReset = 3
} samr_ValidatePasswordLevel;
+ /* NetApi maps samr_ValidationStatus errors to WERRORs. Haven't
+ * identified the mapping of
+ * - NERR_PasswordFilterError
+ * - NERR_PasswordExpired and
+ * - NERR_PasswordCantChange
+ * yet - Guenther
+ */
+
+ typedef enum {
+ SAMR_VALIDATION_STATUS_SUCCESS = 0,
+ SAMR_VALIDATION_STATUS_PASSWORD_MUST_CHANGE = 1,
+ SAMR_VALIDATION_STATUS_ACCOUNT_LOCKED_OUT = 2,
+ SAMR_VALIDATION_STATUS_BAD_PASSWORD = 4,
+ SAMR_VALIDATION_STATUS_PWD_HISTORY_CONFLICT = 5,
+ SAMR_VALIDATION_STATUS_PWD_TOO_SHORT = 6,
+ SAMR_VALIDATION_STATUS_PWD_TOO_LONG = 7,
+ SAMR_VALIDATION_STATUS_NOT_COMPLEX_ENOUGH = 8,
+ SAMR_VALIDATION_STATUS_PASSWORD_TOO_RECENT = 9
+ } samr_ValidationStatus;
+
typedef struct {
uint32 length;
[size_is(length)] uint8 *data;
@@ -1341,7 +1361,7 @@ import "misc.idl", "lsa.idl", "security.idl";
typedef struct {
samr_ValidatePasswordInfo info;
- uint16 status;
+ samr_ValidationStatus status;
} samr_ValidatePasswordRepCtr;
typedef [switch_type(uint16)] union {