CheckForbiddenStrings: Boolean;
The CheckForbiddenStrings property determines whether password check is used for possessing disabled lines.
If the property is set to True, a new password is checked for possessing disabled lines, specified in the ForbiddenStrings list, when changing the password.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MU: IMetabasePolicy;
PassPol: IMetabasePasswordPolicy;
Zapret: IStringList;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
MU := MS.Policy;
PassPol := MU.PasswordPolicy;
Zapret := PassPol.ForbiddenStrings;
PassPol.CheckForbiddenStrings := True;
Zapret.Clear;
Zapret.Add("abc");
Zapret.Add("123");
Zapret.Add("prognoz");
Zapret.Add("admin");
MS.Apply;
End Sub Main;
After executing the example password check for possessing disabled lines is set and four disabled values are added to the list.
See also: