![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Have created a login, that has fixed server role "securityadmin". The login can create/drop logins, add/remove them as users in databases, etc. The login can change another login's password, using SQL from a query window (e.g. alter login bob with password='abc') However, the login *cannot* change another login's password, using SSMS GUI (e.g. "Security", "Logins", double-click "Bob", change password, say "OK"). The error text is: Change password failed for Login 'Bob'. (Microsoft.SqlServer.Smo) |
#3
| |||
| |||
|
|
In this case you will see that the generated command includes the OLD_PASSWORD clause. And if you supply the correct old password for the user, it works. |
#4
| |||
| |||
|
|
On Tue, 8 May 2007 22:16:48 +0000 (UTC), Erland Sommarskog esquel (AT) sommarskog (DOT) se> wrote: In this case you will see that the generated command includes the OLD_PASSWORD clause. And if you supply the correct old password for the user, it works. That's kind of an odd design decision, IMO, considering that "user forgot password" is probably the most common reason that a securityadmin would change a password; at that point, nobody knows the old password. |
![]() |
| Thread Tools | |
| Display Modes | |
| |