You can implement a check script if additional policies need to be used for checking a password, which cannot be mapped with the available settings.
Public Sub CCC_CustomPwdValidate( policy As VI.DB.Passwords.PasswordPolicy, spwd As System.Security.SecureString)
policy = password policy object
spwd = password to test
|TIP: To use a base object, take the property Entity of the PasswordPolicy class.|
A password cannot have '?' or '!' at the beginning. The script checks a given password for validity.
Public Sub CCC_PwdValidate( policy As VI.DB.Passwords.PasswordPolicy, spwd As System.Security.SecureString)
Dim pwd = spwd.ToInsecureArray()
If pwd(0)="?" Or pwd(0)="!"
Throw New Exception(#LD("Password can't start with '?' or '!'")#)
If pwd(0) = pwd(1) AndAlso pwd(1) = pwd(2)
Throw New Exception(#LD("Invalid character sequence in password")#)
To use a custom script for checking a password
Select the category Manager | Basic configuration data | Password policies in the IBM Notes.