Dell Powerconnect W-ClearPass Virtual Appliances W-ClearPass Guest 6.0 Deploym - Page 300

Table 38, minimum_length

Page 300 highlights

l IsValidLdapAttribute - Checks that the value is a valid LDAP attribute name; that is, a string that starts with a letter, and which contains only letters, numbers, underscore (_) and hyphen (-). l IsValidNetmask - Checks that the value is a valid network mask in dotted-quad notation; that is, an IP address such as 255.255.255.128 that contains a single string of N 1 bits followed by (32 - N) 0 bits. l IsValidNumber - Checks that the value is numeric; that is, an integer or a decimal value. The validator argument may be an array containing one or more of the following additional options: n no_negative - if set to true, negative numbers are not accepted as a valid value. n no_zero - if set to true, zero is not accepted as a valid value. n only_integer - if set to true, decimal numbers are not accepted and only integer values are valid. l IsValidPassword2 - Checks that the value is a valid password that satisfies certain requirements. The validator argument must be an array describing which of the following requirements to check. To perform any password checking, the "minimum_length" and "complexity_mode" fields must be specified. n password2 - specifies the name of the field containing the duplicate password entry (optional, for password validation). Defaults to "password2" if not specified. n password2_required - if nonzero, indicates that the "password2" entry must be supplied. n username - specifies the name of the field containing the username. If empty or unset, the password is not checked against this field for a match. n minimum_length - specifies the minimum length of the password in characters. n disallowed_chars - if set, specifies characters that are not allowed in the password. n complexity_mode - specifies the set of rules to use when checking the password. n complexity - if set, specifies rules for checking the composition of the password. If unset, defaults to a preset value for password complexity with modes "none", "basic", "number", "punctuation" and "complex". These rules check that passwords obey certain requirements according to the following table: Table 38: Complexity Requirements Rule Set Min. Length Description none - No special requirements basic 8 Non-space characters number 8 At least 1 digit punctuation 8 At least 1 punctuation character (non-alphanumeric) complex 8 At least 1 digit, 1 non-alphanumeric, 1 uppercase and 1 lowercase letter l IsValidSentence - Checks that the value is considered to be a 'sentence"; that is, a string which starts with an upper-case letter and ends in a full stop. l IsValidTimestamp - Checks that the value is a numeric UNIX timestamp (which measures the time in seconds since January 1, 1970 at midnight UTC). l IsValidTimeZone - Checks that the value is a valid string describing a recognized time zone. l IsValidUrl - Checks that the value appears to be a valid URL that includes a scheme, hostname and path. For example, in the URL http://www.example.com/, the scheme is http, the hostname is www.example.com and the path is /. The validator argument may optionally be an array containing a 'scheme' key that specifies an array of acceptable URL protocols. l IsValidUsername - Checks that the value is a valid username. Usernames cannot be blank or contain spaces. 300 | Form Field Validation Functions Dell Networking W-ClearPass Guest 6.0 | Deployment Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320

300
| Form Field Validation Functions
Dell Networking W-ClearPass Guest 6.0 | Deployment Guide
l
IsValidLdapAttribute
– Checks that the value is a valid LDAP attribute name; that is, a string that starts with a
letter, and which contains only letters, numbers, underscore (_) and hyphen (-).
l
IsValidNetmask
– Checks that the value is a valid network mask in dotted-quad notation; that is, an IP address
such as 255.255.255.128 that contains a single string of
N
1 bits followed by (32 –
N
) 0 bits.
l
IsValidNumber
– Checks that the value is numeric; that is, an integer or a decimal value. The validator argument
may be an array containing one or more of the following additional options:
n
no_negative
– if set to true, negative numbers are not accepted as a valid value.
n
no_zero
– if set to true, zero is not accepted as a valid value.
n
only_integer
– if set to true, decimal numbers are not accepted and only integer values are valid.
l
IsValidPassword2
– Checks that the value is a valid password that satisfies certain requirements. The validator
argument must be an array describing which of the following requirements to check. To perform any password
checking, the “minimum_length” and “complexity_mode” fields must be specified.
n
password2
– specifies the name of the field containing the duplicate password entry (optional, for password
validation). Defaults to “password2” if not specified.
n
password2_required
– if nonzero, indicates that the “password2” entry must be supplied.
n
username
– specifies the name of the field containing the username. If empty or unset, the password is not
checked against this field for a match.
n
minimum_length
– specifies the minimum length of the password in characters.
n
disallowed_chars
– if set, specifies characters that are not allowed in the password.
n
complexity_mode
– specifies the set of rules to use when checking the password.
n
complexity
– if set, specifies rules for checking the composition of the password. If unset, defaults to a preset
value for password complexity with modes “none”, “basic”, “number”, “punctuation” and “complex”. These
rules check that passwords obey certain requirements according to the following table:
Rule Set
Min. Length
Description
none
No special requirements
basic
8
Non-space characters
number
8
At least 1 digit
punctuation
8
At least 1 punctuation character (non-alphanumeric)
complex
8
At least 1 digit, 1 non-alphanumeric, 1 uppercase and 1 lowercase letter
Table 38:
Complexity Requirements
l
IsValidSentence
– Checks that the value is considered to be a ‘sentence”; that is, a string which starts with an
upper-case letter and ends in a full stop.
l
IsValidTimestamp
– Checks that the value is a numeric UNIX timestamp (which measures the time in seconds
since January 1, 1970 at midnight UTC).
l
IsValidTimeZone
– Checks that the value is a valid string describing a recognized time zone.
l
IsValidUrl
– Checks that the value appears to be a valid URL that includes a scheme, hostname and path. For
example, in the URL
, the scheme is
http
, the hostname is
www.example.com
and the
path is
/
. The validator argument may optionally be an array containing a ‘scheme’ key that specifies an array of
acceptable URL protocols.
l
IsValidUsername
– Checks that the value is a valid username. Usernames cannot be blank or contain spaces.