User Password Expiration Test

User Password Expiry in Active Directory is a policy by which a user's password is set to expire after a defined period, requiring the user to reset it. User Passwords when expired/not changed may lead to several implications such as risk of compromised accounts, user lockouts, compliance irregularities, security compromise, poor user experience etc. This can sometimes bring business-critical operations to a standstill. To ensure the uninterrupted transaction of business, administrators should be proactively alerted to an impending password expiry, so that they can prompt domain users to reset the password before their account gets locked out. This is exactly where the User Password Expiration test helps!

This test monitors domain user accounts, tracks the password expiry date of each account, and reports the count of user accounts where the password is about to expire. User accounts are further classified as long term, medium term, and short term, depending upon how soon their password will expire. This smart categorization turns administrator attention to those user accounts that will be expiring in the immediate future (i.e., user accounts with a 'short term expiry period'), so that timely preventive action can be initiated. This way, the test ensures that domain users have uninterrupted access to crucial domain resources at all times.

Target of the test : An Active Directory server

Agent deploying the test : An internal agent

Outputs of the test : One set of results for each Pattern/Organizational Unit on Active Directory server being monitored.

Configurable parameters for the test
Parameters Description

Test period

This indicates how often should the test be executed.

Host

The IP address of the machine where the Active Directory is installed.

Port

The port number through which the Active Directory communicates. The default port number is 389.

Search Users By

Specify how you wish this test to report password expiration of each user account - is it by searching for user patterns? or using Organizational units? The descriptor of this test will be based on this parameter. Default is Pattern.

A Pattern is a consistent structure or "pattern" applied to users, groups, or computers. If this parameter is set to Pattern, then the test will monitor only those user accounts with names that match a configured set of patterns.

Organizational Unit is a container in Active Directory used to organize and group objects within a domain. If the Search Users By flag is set to Organizational Unit, then the test will monitor only those user accounts that belong to a configured Active Directory Organizational Unit(s).

Search Users By Pattern

This parameter becomes relevant only if the Search Users By flag is set to Pattern. Specify a comma separated list of patterns with which the users need to be searched for in the Active Directory. In this case, specify a comma-separated list of <PatternName>:<UserNamePattern> pairs, here. For example, your specification can be: ITS_Users:*sysits,Admin_users:*admin*

where, ITS_Users and Admin_users are <PatternNames>. The test then searches the target AD server for user names that match the configured <UserNamePattern> and reports metrics for the corresponding <PatternName> .

Search Users in Organizational Unit

This parameter becomes relevant only if the Search Users By flag is set to Organizational Unit. Specify a hash separated list of Organizational units here. User accounts in these OUs will be monitored for password expiry. In this case, specify a hash-separated list of Organizational Unit names, in the following format:

OU-<OrganizationalUnitName1>#<OU-OrganizationalUnitName2>#<OU-OrganizationalUnitName3>#..........

For instance, your specification can be: OU=HR,DC=SHELLPRO,DC=LOCAL# OU=IT,DC=APP,DC=NET

The test then runs password expiry checks on only those users who belong to the configured <OrganizationalUnitNames>, and reports relevant metrics for each OU.

Password Expires in Days Long Term

Specify the number of days for the password expiry of the user accounts to be considered as long term. Default is 90 days. Accordingly, those users with passwords that will expire between 61-90 days will be counted as User accounts expiring in the long term.

If the duration considered as 'long term' is different in your environment, you can change the value of this parameter to fit that definition. For instance, if 75 days to expiry is considered as 'long term', then change the value of this parameter to 75.

Password Expires in Days Medium Term

Specify the number of days for the password expiry of the user accounts to be considered as medium term. Default is 60 days. Accordingly, those users with passwords that will expire between 31-60 days will be counted as User accounts expiring in the medium term.

If the duration considered as 'medium term' is different in your environment, you can change the value of this parameter to fit that definition. For instance, if 50 days to expiry is considered as 'medium term', then change the value of this parameter to 50.

Password Expires in Days Short Term

Specify the number of days up to which the password expiry of the user accounts should be considered as short term. Default is 30 days. Accordingly, those users with passwords that will expire between 1-30 days will be counted as User accounts expiring in the short term.

If the duration considered as 'short term' is different in your environment, you can change the value of this parameter to fit that definition. For instance, if 15 days to expiry is considered as 'short term', then change the value of this parameter to 15.

DebugON

This parameter specifies whether the test should run in debug mode. By default, this flag is set to No, indicating that the test does not run in debug mode and detailed debug logs are not generated. If this flag is set to Yes, the eG agent runs the test in debug mode and generates detailed error logs, which can help administrators troubleshoot issues related to test execution or metric collection. Debug mode should typically be enabled only when troubleshooting issues.

DD Frequency

Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD Frequency.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability
  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.
Measurements made by the test
Measurement Description Measurement Unit Interpretation

User accounts expiring in the long term

Indicates the number of user accounts that are expiring in long term for this Pattern/Organizational Unit.

Number

This count will include those user accounts of a configured Pattern/Organizational Unit, with a password that is set to expire between 61 - 90 days (by default). This typically includes the values that are greater than the value set in Password Expires in Days Medium Term parameter but less than the value set against the Password Expires in Days Long Term parameter.

Typically, these are the user accounts that are a long way off from expiry, and hence, will not be of an administrator's immediate concern.

Detailed diagnosis of the User accounts expiring in the long term further reveals additional information and the name of the user whose account expired recently.

User accounts expiring in the medium term

Indicates the number of user accounts that are expiring in medium term for this Pattern/Organizational Unit.

Number

This count will include those user accounts of a configured Pattern/Organizational Unit, with a password that is set to expire between 31 - 60 days (by default). This typically includes the values that are greater than the value set in Password Expires in Days Short Term but less than the value set against the Password Expires in Days Medium Term parameter.

Typically, these are the user accounts that will be expiring shortly, but not in the immediate future. So, administrators may have to be concerned about such accounts sometime soon, but not immediately.

Detailed diagnosis of the User accounts expiring in the medium term further reveals additional information and the name of the user whose account expired recently.

User accounts expiring in the short term

Indicates the number of user accounts that are expiring in short term for this Pattern/Organizational Unit.

Number

This count will include those user accounts of a configured Pattern/Organizational Unit, with a password that is set to expire between 1 - 30 days (by default). This typically includes the values that are greater than 0 and less than the value set against the Password Expires in Days Short Term parameter.

Typically, these are the user accounts that will be expiring in the immediate future. Administrators will have to focus on such accounts immediately, and should attempt to avert the impending lockout.

User accounts for which password has expired

Indicates the number of user accounts with an expired password for this Pattern/Organizational Unit.

Number

Use the detailed diagnosis of this measure to know which user names have expired passwords. These user accounts may be locked, and may require administrator intervention for unlocking.

Accounts newly added to long term expiry list

Indicates the number of user accounts that were added to long term expiry list for this Pattern/Organizational Unit during the last measurement period.

Number

This count includes those user accounts that were recently added to the list of accounts with passwords expiring between 61-90 days (by default).

Accounts newly added to medium term expiry list

Indicates the number of user accounts that were added to medium term expiry list for this Pattern/Organizational Unit during the last measurement period.

Number

This count includes those user accounts that were recently added to the list of accounts with passwords expiring between 31-60 days (by default).

Accounts newly added to short term expiry list

Indicates the number of user accounts that were added to short term expiry list for this Pattern/Organizational Unit during the last measurement period.

Number

This count includes those user accounts that were recently added to the list of accounts with passwords expiring between 1-30 days (by default).

Accounts for which password expired recently

Indicates the number of user accounts with password that expired recently for this Pattern/Organizational Unit.

Number

Ideally, the value of this measure should be low.