Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Property IsLocked is not available for Login Expand / Collapse
Author
Message
Posted Friday, February 14, 2014 3:36 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 1:17 AM
Points: 117, Visits: 281
Hi,
Yesterday I ran into a strange situation. Users started telling that thay were not able to connect to their application using the sql account 'abcacc'. I checked logs and found several login failures from this account. When checking login property, it threw me error "Property IsLocked is not available for Login '[abcacc]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)". I googled about it and executed below t-sql.

alter login abcacc with check_policy = off,check_expiration = off

Consequently, it started making successfull connections from this account. Gradually same issue was faced for other sql accounts on the instance and I executed the same script. Please note account was not locked.

Later 'Stack Dump' error was observed in the log just before the login failures started. Can someone please help me understand that above error came due to memory pressure or there could be other reasons as well? Wanted to know the root cause to avoid this issue in future.

Thanks in advance.

Regards
sqldba4u

Post #1541524
Posted Saturday, February 15, 2014 8:46 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, September 29, 2014 9:07 AM
Points: 341, Visits: 2,461
Just a possibility, you might want to check to see if your SQL user accounts have a password expiration policy set.

select name, is_policy_checked
from sys.sql_logins

(shamelessly stolen from this thread: http://www.sqlservercentral.com/Forums/Topic397068-338-1.aspx)

edit: just wanted to mention that I think this check is for SQL server user accounts that are NOT windows logins)
Post #1541854
Posted Saturday, February 15, 2014 10:05 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 10:19 AM
Points: 17,733, Visits: 15,600
Sounds like the accounts were expiring.

You can checked for disabled, locked, or expired accounts using this script. You should probably monitor for this kind of thing.

SELECT sl.name,sl.is_disabled,sl.is_expiration_checked,sl.is_policy_checked,sl.modify_date
,LOGINPROPERTY(sl.name,'IsExpired') AS IsExpired,LOGINPROPERTY(sl.name,'DaysUntilExpiration') AS DaysToExpiry
,LOGINPROPERTY(sl.name,'IsMustChange') AS IsMustChange
,LOGINPROPERTY(sl.name,'BadPasswordCount') AS BadPasswordCount
FROM sys.sql_logins sl





Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1541862
Posted Monday, February 17, 2014 1:24 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 1:17 AM
Points: 117, Visits: 281
Thanks for the reply but how come all accounts on that instance were expiring at the same time. I want to know could this happen due to memory pressure or there could be other reasons as well.

Thanks.
Post #1542004
Posted Monday, February 17, 2014 7:28 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 10:19 AM
Points: 17,733, Visits: 15,600
They were probably expiring at the same time because they were created at the same time.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1542117
Posted Monday, February 17, 2014 8:51 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 1:17 AM
Points: 117, Visits: 281
No, all SQL accounts were created on different dates.
Post #1542175
Posted Monday, February 17, 2014 8:57 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 10:19 AM
Points: 17,733, Visits: 15,600
Did somebody alter their Expired property?

Has somebody altered the local account policy on SQL Server to have the accounts expired?

In short, the most probable answer is that something was changed to cause them to expire.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1542176
Posted Tuesday, February 18, 2014 7:24 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 1:17 AM
Points: 117, Visits: 281
It doesn't seem so. Is it anyway possible that it could be due to memory issue? I know its something unusual to ask but need to go thru all possibilities.

Thanks.
Post #1542563
Posted Tuesday, February 18, 2014 7:42 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 10:19 AM
Points: 17,733, Visits: 15,600
Do you have any other reason to believe you have/had a memory issue?





Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1542577
Posted Friday, February 21, 2014 6:30 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 1:17 AM
Points: 117, Visits: 281
There were memory physical dump details logged in the error log just before login failures started.
Post #1543946
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse