From 198fd3b3bb7f890d76e48323d7babc880a327367 Mon Sep 17 00:00:00 2001 From: tomsellers Date: Sun, 11 Sep 2011 21:23:34 +0000 Subject: [PATCH] Changing account status strings for consistency. Adding two new account states, LOCKED_VALID & LOCKED_DISABLED. --- nselib/creds.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/nselib/creds.lua b/nselib/creds.lua index b79cb4cfa..b129efde0 100644 --- a/nselib/creds.lua +++ b/nselib/creds.lua @@ -107,16 +107,19 @@ State = { EXPIRED = 32, TIME_RESTRICTED = 64, HOST_RESTRICTED = 128, + LOCKED_VALID = 256, } StateMsg = { - [State.LOCKED] = 'Account is locked', - [State.VALID] = 'Account is valid', - [State.DISABLED] = 'Account is disabled', - [State.CHANGEPW] = 'Password needs to be changed at next logon', - [State.EXPIRED] = 'Account has expired', - [State.TIME_RESTRICTED] = 'Account has logon time restrictions', - [State.HOST_RESTRICTED] = 'Account has logon host restrictions', + [State.LOCKED] = 'Account is locked', + [State.VALID] = 'Valid credentials', + [State.DISABLED] = 'Account is disabled', + [State.CHANGEPW] = 'Valid credentials, password must be changed at next logon', + [State.EXPIRED] = 'Valid credentials, account expired', + [State.TIME_RESTRICTED] = 'Valid credentials, account cannot log in at current time', + [State.HOST_RESTRICTED] = 'Valid credentials, account cannot log in from current host', + [State.LOCKED_VALID] = 'Valid credentials, account locked', + [State.DISABLED_VALID] = 'Valid credentials, account disabled', }