Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Disable Account Lockout password change

Author  Topic 

tracy5436
Yak Posting Veteran

50 Posts

Posted - 2011-05-13 : 12:05:56
Hi,

Is it possible to disable the change of password when unlocking an account in SQL ?

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2011-05-13 : 18:16:30
Are you trying to prevent someone from changing the password of an existing Login? I don't know of a way to prevent this directly but you could implement a server level trigger on the ALTER_LOGIN event and specify your own logic:[CODE]CREATE TRIGGER [login_changes]
ON ALL SERVER
FOR ALTER_LOGIN
AS
BEGIN
if <Your logic>
ROLLBACK TRANSACTION
END[/CODE]

=======================================
Elitism is the slur directed at merit by mediocrity. -Sydney J. Harris, journalist (1917-1986)
Go to Top of Page
   

- Advertisement -