UniquenessDegree: Integer;
The UniquenessDegree property determines the minimum difference between the current password and a new one (characters).
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MU: IMetabasePolicy;
PassPol: IMetabasePasswordPolicy;
Lic: Object;
Begin
MB := MetabaseClass.Active;
// Get license to work with the security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
MS := MB.Security;
MU := MS.Policy;
PassPol := MU.PasswordPolicy;
// Set minimum difference between the current password and a new one in characters
PassPol.UniquenessDegree := 5;
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
After executing the example the minimum difference between the current password and a new one is set 5 characters.
See also: