EternalPassword: Boolean;
The EternalPassword property determines whether password has expiry date.
Available values:
· True. Password never expires. Unable to set requirement to change user password.
· False. Default value. Password has expiry date. To change password on next system logon, set the MustChangePasswordAtNextLogon property to True.
Executing the example requires that the repository security manager contains the TEST_USER user.
Add a link to the Metabase system assembly.
Sub Main;
Var
MB: IMetabase;
Security: IMetabaseSecurity;
User: IMetabaseUser;
Begin
// Get active repository
MB := MetabaseClass.Active;
// Get security settings for the first user
Security := MB.Security;
User := Security.ResolveName("TEST_USER") As IMetabaseUser;
// Determine whether password has expiry date
User.EternalPassword := True;
// Apply security policy
MB.Security.Apply;
End Sub Main;
After executing the example the password will not have expiry date for the specified user.
See also: