SQL Server Login Properties to Enforce Password Policies and Expiration

By:   |   Comments (1)   |   Related: 1 | 2 | 3 | 4 | > Auditing and Compliance


Problem

For some reason your web site is up, but none of the data is loading on your web site?  Is your SQL Server up and running?  Are you able to access the data with either your Windows account or sa?  What does your SQL Server error log report?  What is the culprit?

Solution

Chances are if the SQL Server error log reports messages of:

Logon Error: 18487, Severity: 14, State: 1.
Logon Login failed for user 'loginname'. Reason: The password of the account has expired. [CLIENT: <named pipe>]

Then the password for the login used in your web application has expired.  SQL Server 2005 introduced 'Enforce password policy' and/or the 'Enforce password expiration' configurations which use the local policies for password length, complexity and expiration.  Depending on how Active Directory, the local policies and your rights are setup, these parameters can be reviewed and changed to dictate how SQL Server uses configurations.

Where can I find the login properties?

  1. Open Management Studio and the object browser.
  2. Navigate to the Security > Logins folder.
  3. Find the login you are interested in reviewing.
  4. Right click on the login and select 'Properties' option.
  5. On the General tab, review the 'Enforce password policy' and the 'Enforce password expiration' configurations.
login name

Where can I find Window password policies?

Under Windows Admistrator Tools lauch Local Security Policy to review the local policies on the machine or you can type "secpol.msc" in the Windows Run box.  Below is what you will see as the options.

local security settings
Next Steps
  • Review your logins to ensure you are aware if they are using the Enforce password policy and/or the Enforce password expiration configurations.
  • Based on initial research, these configurations apply to all editions of SQL Server 2005 and later from Express to Enterprise.
  • Setup an alert to capture when this event occurs to correct it immediately or determine another means to reset the passwords so these policies do not impact your applications.
  • For additional information about the Enforce password policy and/or the Enforce password expiration configurations, reference the Password Policy article in SQL Server Books Online.
  • For additional SQL Server security information check out these tips:


sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



About the author
MSSQLTips author Jeremy Kadlec Jeremy Kadlec is a Co-Founder, Editor and Author at MSSQLTips.com with more than 300 contributions. He is also the CTO @ Edgewood Solutions and a six-time SQL Server MVP. Jeremy brings 20+ years of SQL Server DBA and Developer experience to the community after earning a bachelorís degree from SSU and masterís from UMBC.

View all my tips



Comments For This Article




Tuesday, July 8, 2014 - 11:26:07 AM - shruthi Back To Top (32592)

Hello,

 

The Maximum password age is 42 days .Does it mean the password expires in 42 days

 

Thanks,

shruthi