|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
Hi,
I am creating a Login in code while Installation. I have a requirement now that Login should have Password expiration policy. How do i set this? Please help.
Thanks
Chelladurai
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 9:08 AM
Points: 983,
Visits: 13,350
|
|
| It is taken from the local security policy, which by default will be taken from the settings on the DC. You dont actually set these values within SQL.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
Hi,
Thanks for your response. Can you please tell me what is this DC....
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 9:08 AM
Points: 983,
Visits: 13,350
|
|
| The domain controller (assuming you are running on a windows domain) - ask your network admin what the settings are.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
Hi,
I need to apply the Expiration policy for SQL Logins. Network domain anyway will maintain windows expiration policy i understand.
My query is can we define expiration days/intervals for Sql Logins.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 9:08 AM
Points: 983,
Visits: 13,350
|
|
haichells (12/21/2007) Hi,
I need to apply the Expiration policy for SQL Logins. Network domain anyway will maintain windows expiration policy i understand.
My query is can we define expiration days/intervals for Sql Logins.
Yes you can, but it still takes the settings from the security policy. You cant set anything in sql (as far as i know) that will change the expiration periods of sql logins.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: 2 days ago @ 3:22 AM
Points: 4,218,
Visits: 3,875
|
|
Animal Magic (12/21/2007) It is taken from the local security policy, which by default will be taken from the settings on the DC. You dont actually set these values within SQL. You're correct in saying it's defined in the local security policy. But you are wrong in saying that this policy is taken from the Domain Controller. SQL login are treated like local accounts and only the local policy applies to them. Domain policies can overrule local policies for Domain Users, but not for local accounts or SQL accounts.
Markus Bohse
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 9:08 AM
Points: 983,
Visits: 13,350
|
|
| ps, search for password policy in BOL.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Yesterday @ 9:08 AM
Points: 983,
Visits: 13,350
|
|
MarkusB (12/21/2007)
Animal Magic (12/21/2007) It is taken from the local security policy, which by default will be taken from the settings on the DC. You dont actually set these values within SQL.You're correct in saying it's defined in the local security policy. But you are wrong in saying that this policy is taken from the Domain Controller. SQL login are treated like local accounts and only the local policy applies to them. Domain policies can overrule local policies for Domain Users, but not for local accounts or SQL accounts.
Thanks for clearing that up Markus, i didnt realise at first that we were talking about sql logins only.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, November 14, 2012 6:42 AM
Points: 78,
Visits: 375
|
|
Hi,
Thanks for all your response. Can you please let me know how to check the local security policy on sql server.
|
|
|
|