简体   繁体   English

迁移到新服务器上的IIS7后,由于MachineKey IIS6而导致用户密码无法使用

[英]Users passwords not working due to MachineKey IIS6 after migrating to IIS7 on a new server

We had to migrate urgently from a Windows 2003 + IIS6 to a new Windows 2008 + IIS7 我们不得不紧急地从Windows 2003 + IIS6迁移到新的Windows 2008 + IIS7

I have a couple of websites with the ASP.NET Membership Database with Hashed Passwords, on the new server users that were not being used work fine but users who recently used it cannot login (error is Invalid Password) Even after setting a new password same happens. 我有几个网站的ASP.NET成员数据库带有密码散列,在新服务器上,未使用的用户可以正常工作,但最近使用过它的用户无法登录(错误是无效密码),即使在设置了相同的新密码之后发生。

I can read the problem is with the MachineKey (it was not setup so it was using the comptuter MachineKey) I'm trying to set the IIS7 machinekey to the same as before so can get the users to work again. 我可以读到问题是出在MachineKey上(未设置,因此它使用的是计算机MachineKey)。我试图将IIS7的Machinekey设置为与以前相同,这样可以使用户再次工作。

We have over 500 users we dont know their passwords or anything so we cannot recreate them. 我们有500多个用户,我们不知道他们的密码或其他任何信息,因此我们无法重新创建它们。

Any ideas on Where could I find the old MachineKey from the previous server (win 2003)? 关于在哪里可以从以前的服务器(2003年赢得)中找到旧的MachineKey的任何想法?

Regards, 问候,

George 乔治

Set this thing into your web.config for your application 将此内容设置为您的应用程序的web.config

<system.web>
    <machineKey  
    validationKey="<blah>"           
    decryptionKey="<blah>"
    validation="SHA1"
    decryption="AES"
    />

You need to use the old machine key to make it work. 您需要使用旧的机器密钥使其正常工作。

Maybe you can try this to find out the machine key 也许您可以尝试一下以找出机器密钥

http://aspnetresources.com/blog/how_to_read_auto_generated_machinekey http://aspnetresources.com/blog/how_to_read_auto_genic_machinekey

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM