Limiting Failed Password Attempts (SetHasPwdRetries)

Use the ICIClientSettings interface SetHasPwdRetries method to disable an account if a user enters bad passwords too many times in a row. Use the same method to allow an unlimited number of bad passwords. Refer to User Password Settings for an illustration of how this and other Client Settings Interface Methods and Properties can be accessed in the Administrator interface.

GetHasPwdRetries/SetHasPwdRetries are related to "disable account after X login attempts" feature, which became obsolete when the PCI DSS-enhanced feature "disable/lockout account after X login attempts in X minute period" was introduced. These methods were left in the .dll for compatibility with old scripts.

Signature:

HRESULT SetHasPwdRetries([in] SFTPAdvBool val);

0 = Disable

1 = Enable

-2 = Inherit