IMetabasePasswordPolicy.HistoryLength

Syntax

HistoryLength: Integer;

Description

The HistoryLength property determines the number of old passwords that are stored and checked for coincidence with a new user's password.

Comments

Use of this property enables applying restrictions on absolute coincidence of the old and a new password.

Example

Sub Main;

Var

Mb: IMetabase;

MbSecurity: IMetabaseSecurity;

MbPolicy: IMetabasePolicy;

MbPassPolicy: IMetabasePasswordPolicy;

Begin

Mb := MetabaseClass.Active;

MbSecurity := Mb.Security;

MbPolicy := MbSecurity.Policy;

MbPassPolicy := MbPolicy.PasswordPolicy;

MbPassPolicy.HistoryLength := 3;

MbSecurity.Apply;

End Sub Main;

After executing the example three old user's passwords are stored in the history.

See also:

IMetabasePasswordPolicy