UniquenessDegree: Integer;
The UniquenessDegree property determines the minimum difference of an old password from a new one (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.UniquenessDegree := 5;
MS.Apply;
End Sub Main;
After executing the example the minimum difference of the old password from a new one is set 5 characters.
See also: