Programming Guides › Programming Guide for Perl › CLI Policy Management Methods › Password Policy Methods › PwdIgnoreSequence Method—Determines whether To Ignore Sequence when Calculating the New Password
PwdIgnoreSequence Method—Determines whether To Ignore Sequence when Calculating the New Password
The PwdIgnoreSequence method specifies whether to ignore sequence (that is, character position) when the different-from-previous-characters percentage is calculated.
Syntax
The PwdIgnoreSequence method has the following format:
Netegrity::PolicyMgtPwdPolicy‑>PwdIgnoreSequence([pwdPctSeq])
Parameters
The PwdIgnoreSequence method accepts the following parameter:
pwdPctSeq (int)
(Optional) Specifies whether to ignore the sequence of characters when creating a new password:
- 1 ignores sequence when calculating the previous password difference percentage
- 0 considers sequence
Return Value
The PwdIgnoreSequence method returns one of the following values:
- 1 to ignore sequence
- 0 to consider sequence
Remarks
For example, suppose a user's previous password is BASEBALL12:
- If you set this method to 1 (ignore sequence), the user can't choose 12BASEBALL as the new password. That's because the characters are the same as in the previous password, regardless of the character sequence.
- If you set this method to 0 (consider sequence), the user can choose 12BASEBALL as the new password because the characters occur in a different sequence.
For greater security, pass 1 into this method.