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

How to check SQL Server Login and Password Properties? (7 Questions for DBA) Expand / Collapse
Author
Message
Posted Friday, March 05, 2010 8:54 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, March 20, 2014 11:33 AM
Points: 237, Visits: 880
Hello everyone,

I have a situation - I have around 2500 SQL Server 2008 Logins and I (DBA) did not set there passwords. But my concern is to implement strong password policy so I wish to find below questions from SQL Server end, some questions’ answers I have found but others are not. Please suggest if someone having the answers? I was try LOGINPROPERTY and SQL Server Management Policies but??????

1.Which login having blank Password?
Answer : SELECT name FROM sys.sql_logins
WHERE PWDCOMPARE('', password_hash) = 1
OR PWDCOMPARE('', password_hash, 1) = 1

2.Which login having same password (password is login name)?
Answer : SELECT name FROM sys.sql_logins
WHERE PWDCOMPARE(name, password_hash) = 1
OR PWDCOMPARE(name, password_hash, 1) = 1

3.Which login having guessable password?
Answer : SELECT name FROM sys.sql_logins
WHERE PWDCOMPARE(name+’@123’, password_hash) = 1
OR PWDCOMPARE(name+’@123’, password_hash, 1) = 1

4.Which login did not having strong password (strong mean minimum 10 character or whatever I wish to check)?
?

5.What is the length of the password of a particular login?
?

6.Can I do same question on Windows Logins (Windows Logins those mapped in SQL Server)?
?

7.Is there any option to convert SQL Server Login Password (HASH) to clear text (in term of DBA perspective)
?

I request to sqlservercentral.com DBA community to add/ write in reply more questions related to this topic if they have.

Thanks All


Ram
MSSQL DBA
Post #877706
Posted Friday, March 05, 2010 9:16 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 12:20 PM
Points: 41,529, Visits: 34,445
Homework? Test?

The 'encryption' that protects the SQL passwords is a one-way hash.

If you want to enforce strong password policy, enable password policy on those logins. SQL will take the rules from the DC of the domain it's in.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #877733
Posted Friday, March 05, 2010 10:24 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, March 20, 2014 11:33 AM
Points: 237, Visits: 880
Hi,

I have this on production server.

windows account policies are good if I'm going to create new login.

My problem is that I want to find out thoses login who should be in security policy.


Ram
MSSQL DBA
Post #877783
Posted Tuesday, March 09, 2010 2:31 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, April 14, 2014 2:19 AM
Points: 1,101, Visits: 5,271
Reo (3/5/2010)
Hi,

I have this on production server.

windows account policies are good if I'm going to create new login.

My problem is that I want to find out thoses login who should be in security policy.

Try Policy-Based Management.
Post #879198
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse