Deployment Guide
286 | NwaSmsIsValidPhoneNumber Dell Networking W-ClearPassGuest 6.0 | Deployment Guide
Generates a random password of at least $len characters in length, based on one of the standard complexity
requirements specified in $mode. If $mode is false or the empty string, the default password complexity is taken
from the Guest Manager plugin configuration.
Otherwise, $mode should be one of the following values:
l none – No password complexity requirement
l case – At least one uppercase and one lowercase letter
l number – At least one digit
l punctuation – At least one symbol
l complex – At least one of each: uppercase letter, lowercase letter, digit, and symbol
NwaSmsIsValidPhoneNumber
NwaSmsIsValidPhoneNumber($phone_number)
Validates a phone number supplied in E.164 international dialing format, including country code.
l Any spaces and non-alphanumeric characters are removed.
l If the first character is a plus sign (+), the phone number is assumed to be in E.164 format already and the plus
sign is removed; otherwise, if the SMS service handler national prefix is set and the phone number starts with
that prefix, then the prefix is replaced with the country code.
l The phone number must contain no fewer than 5 and no more than 15 digits.
l The phone number is validated for a valid country code prefix.
l If all the foregoing conditions are met, the validator returns TRUE; otherwise, the validator returns FALSE.
NwaStrongPassword
NwaStrongPassword($len)
Generate strong passwords of $len characters in length.
A strong password may contain uppercase letters, lowercase letters, digits and certain symbols. The strong password
does not contain commonly-confused characters such as “O” and “0” (capital O and zero), “I” and “l” (capital I and
lowercase L), “2” and “Z” (two and capital Z), or “8” and “B” (eight and capital B).
NwaVLookup
NwaVLookup($value, $table, $column_index, $range_lookup = true, $value_column = 0, $cmp_fn
= null)
Table lookup function, similar to the Excel function VLOOKUP(). This function searches for a value in the first
column of a table and returns a value in the same row from another column in the table. This function supports the
values described in the table below.
Option Description
$value
The value to look for
$table
A 2D array of data to search; for example, a data table returned by NwaCsvCache() or
NwaParseCsv()
$column_index
The desired index of the data
Table 31:
NwaVLookup Options