MinLength: Integer;
The MinLength property determines the minimum password length (characters).
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MU: IMetabasePolicy;
PassPol: IMetabasePasswordPolicy;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
MU := MS.Policy;
PassPol := MU.PasswordPolicy;
PassPol.MinLength := 5;
MS.Apply;
End Sub Main;
After executing the example the minimum password length is assigned.
See also: