Reset password to unknown password

  • If a password for a SQL Login was erroneously reset, you absolutely have to restore the password to what is was before, but no one knows what is was, will a restore of the Master database to before the reset occurred do the trick?

  • yes i believe that's about all you can do.

    the password is stored in a credential, which you can partially review in master.sys.credentials.

    It is not possible to script(even in a hashed format) or insert a credential from another source, so restoring master woudl probably be what you would have to do.

    but if the password was changed, and some app or process is using that original username/password, you might be able to get the old password from the applciation.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • what is the actual reason you cannot simply use the new password, or set the password yet again?

    it seems kind of strange you think you need to restore it, maybe if we help look at the problem sideways we can offer a suggestion?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • I'm not actually in this situation, but I did just reset an unknown password and when doing changes I tend think of "what can go wrong" scenarios ahead of time. In this case I thought "What if the password is stored in encrypted form in an application config and we can't change it?" Most likely we'll be able to update with the new password anywhere it's needed.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply