Nwaparsexml; Nwapasswordbycomplexity; Nwasmsisvalidphonenumber; Nwastrongpassword - Aruba Networks PowerConnect W Clearpass 100 Software Deployment Manual

3.7 deployment guide
Hide thumbs Also See for PowerConnect W Clearpass 100 Software:
Table of Contents

Advertisement

NwaParseXml

NwaParseXml($xml_text)
Parses a string as an XML document and returns the corresponding document structure as an associative
array. Returns an array containing the following elements:
error – set if there was a problem parsing the XML
message – describes the parse error
Otherwise, the return is an array with these elements:
name – name of the document element
attributes – attributes of the document element
children – array containing any child elements
content – element content text

NwaPasswordByComplexity

NwaPasswordByComplexity($len, $mode = false)
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:
none – No password complexity requirement
case – At least one uppercase and one lowercase letter
number – At least one digit
punctuation – At least one symbol
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.
Any spaces and non-alphanumeric characters are removed.
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.
The phone number must contain no fewer than 5 and no more than 15 digits.
The phone number is validated for a valid country code prefix.
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).
382
| Reference
Amigopod 3.7 | Deployment Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PowerConnect W Clearpass 100 Software and is the answer not in the manual?

This manual is also suitable for:

Amigopod 3.7

Table of Contents