Password Policy
Platform > General Settings & Tools > Password Policy sets the rules for the passwords people sign in with to Platform Manager, the user portal and Thirdlane Connect: how long a password must be, which kinds of characters it needs, whether a password known from data breaches is refused, how many earlier passwords cannot be reused, when passwords expire, and when repeated failed sign-ins lock an account.
Phone (SIP) passwords and API keys are separate credentials and are not affected, so phones and integrations that use API keys keep working whatever the policy says. Sign-in through an identity provider is not stopped by an expired password or a lockout; that provider applies its own rules.
Why you would want it
A password is the only thing standing between an attacker and an account that has no second sign-in step. Most break-ins do not guess cleverly: they try passwords already published from other companies’ breaches, or they try many passwords against one account. A minimum length and a check against leaked passwords stop the first; locking an account after repeated failures stops the second. Many security reviews and government checklists also ask for password expiry and a ban on reusing recent passwords, which this screen provides.
How it works
When the rules are checked
The rules are checked whenever a password is set: when people change their own password in Platform Manager, the user portal or Connect, when an administrator sets someone’s password, through the REST API, and when an import supplies passwords in plain text. Passwords imported already encrypted cannot be checked.
On a system upgraded from an earlier release, passwords set for users - new extensions, imports, generated extensions, and passwords an administrator sets or resets - are checked only after an administrator saves this screen for the first time. Until then they are accepted as they were in earlier releases. A new installation starts with the Basic preset saved.
Passwords that are already set keep working. Tightening the policy never locks anyone out of an account with a password that no longer meets the rules; the new rules apply the next time that password is changed. Passwords the system generates, for new users or for a reset, always meet the policy.
If an organization’s Web Passwords setting is Based on extension or Based on default, the password it makes for a new user is predictable, and the policy may refuse it. When it does, an extension that is added or generated gets a random password that meets the policy instead, so the extension is still created. A password an administrator types is checked as typed and is refused if it does not meet the policy. To have every new user get a random password, set Web Passwords to Random.
Leaked passwords
The server holds a list of about 100,000 passwords seen most often in data breaches, published by the UK National Cyber Security Centre. A new password on that list is refused, whatever its capitalization. The check happens on the server; the password is not sent anywhere.
Expiry
When a password is older than the limit, its owner must choose a new one at their next sign-in, in Platform Manager or Connect. Connect also stops renewing its stay-signed-in session for that account, so an open Connect asks the person to sign in again.
Age is counted from the later of two dates: the last time the password was changed, and the moment expiry was switched on. Switching expiry on therefore never expires anyone immediately. Everyone whose password is older than that moment gets the same first deadline, the full period later; after their next change, each person’s deadline follows their own changes.
With a warning period set, the owner is emailed once before the deadline: users at the email address on their user extension, administrators at the address on their Admins record.
Administrators can be given a shorter expiry than everyone else, for any preset except Off. It can only make the preset stricter.
Lockout
Every failed sign-in is recorded with the address it came from. After the set number of failed password sign-ins from one address within the lockout period, the account cannot sign in from that address until the period has passed since the last attempt. Other addresses are not affected, so someone typing wrong passwords for your administrator’s name from elsewhere does not lock that administrator out of the office. After ten times as many failures from any addresses, the account cannot sign in from anywhere for the lockout period.
Attempts made during a lockout are counted too, so the lockout lasts until they stop. A successful sign-in from an address clears the count for that address.
Platform Manager shows a locked-out sign-in as a failed sign-in. Current versions of Connect say the account is temporarily locked; earlier versions show a failed sign-in.
When an administrator account is locked out, the administrators who have the Can manage Administrators? permission and Email notifications turned on are emailed within five minutes.
Signing out after a password change
When an administrator sets someone else’s password while a policy is in force, that person is signed out of Connect on every device and signs in again with the new password.
Set up the policy
- Open Platform > General Settings & Tools > Password Policy.
- Choose a Policy:
- Off - no rules: any password is accepted and failed sign-ins do not lock accounts.
- Basic - at least 8 characters with an uppercase letter, a digit and a symbol, and not the user name or a dictionary word. This is what the Enforce strong web passwords setting in System Preferences did, and a server that had it switched on starts here.
- Standard (NIST) - follows the US National Institute of Standards and Technology guidance: at least 15 characters with no required kinds of characters, not the user name and not a leaked password. Passwords do not expire. Sign-in is locked for 15 minutes after 10 failed attempts.
- Strict - for government and compliance checklists: at least 15 characters with an uppercase letter, a lowercase letter, a digit and a symbol; not the user name, a dictionary word or a leaked password; the last 5 passwords cannot be reused. Passwords expire every 60 days, with a warning 14 days before. Sign-in is locked for 15 minutes after 3 failed attempts.
- Custom - set each rule yourself (below).
- Optionally set Expire administrator passwords after (days), for example
30. - In Accounts not affected, list any account an integration signs in to with a password, for example
svc-reports. These accounts are never locked out and their passwords never expire. Therootaccount is never affected. - Click Save. Rules in force shows what now applies.
Custom rules
- Minimum length - the fewest characters a password may have;
0means no minimum. - Require an uppercase letter, Require a lowercase letter, Require a digit, Require a symbol - each kind the password must contain at least once.
- Refuse the user name - refuse a password containing the account name.
- Refuse dictionary words - refuse a password that is a word in the server’s dictionary.
- Refuse leaked passwords - the leaked-password check described above.
- Passwords remembered - how many earlier passwords cannot be used again;
0allows reuse. - Expire passwords after (days) -
0means passwords do not expire. - Warn before expiry (days) - how long before the deadline the warning email goes out;
0sends none. - Lock after failed sign-ins - failures from one address that lock the account for that address;
0means no lockout. - Lockout period (minutes) - how long the lockout lasts after the last attempt.
Operating the policy
Unlock an account. Accounts locked out right now are listed under Locked out now on the Password Policy screen. Select the ones to unlock and click Save; they can sign in again at once.
Recover when nobody can sign in. Anyone with root access to the server can run these commands:
perl /usr/libexec/webmin/asterisk/password_policy_tool.pl statusperl /usr/libexec/webmin/asterisk/password_policy_tool.pl unlock adminperl /usr/libexec/webmin/asterisk/password_policy_tool.pl reset adminperl /usr/libexec/webmin/asterisk/password_policy_tool.pl offstatus shows the policy and the accounts locked out now. unlock unlocks an account. reset gives the account a new temporary password, prints it, and requires it to be changed at the next sign-in. off switches every rule off, including lockout and expiry.
Best practices
- Prefer length to complexity. A long passphrase is both easier to remember and harder to guess than a short password with symbols, which is why the Standard preset asks for 15 characters and no particular kinds.
- Give integrations API keys instead of a person’s password. If an integration must sign in with a password, list its account in Accounts not affected so expiry and lockout never stop it.
- Before switching on expiry, check that users and administrators have email addresses, so the warnings reach them.
- Expect a busy day at the first expiry deadline: everyone whose password predates switching expiry on shares it.
- Keep at least two administrators with the Can manage Administrators? permission, so one can unlock the other.
Related documentation
- Admins - administrator accounts, their email addresses and permissions.
- Identity Providers - sign-in through Microsoft, Google, Okta and others.
- System Preferences - other platform-wide settings.