忘记DotNetNuke的host密码?-如何恢复丢失的DNN密码
2007-12-01 11:24
696 查看
SQL Script recovering host password use asp.net store procedure
-------------------------------------------------------------------------------------
Declare @UserName NVarChar(255)
Declare @NewPassword NVarChar(255)
Declare @PasswordSalt NVarChar(128)
Declare @Application NVarChar(255)
-- Enter the user name and new password between ''
-- do not leave any spaces unless intended to do so.
-- Edit only between single quote characters
Set @UserName = 'host' -- This default DNN host user
Set @NewPassword = 'newpassword' --New password
-- Do modify any code below this line
Set @Application = (SELECT [ApplicationID] FROM aspnet_Users WHERE UserName=@UserName)
Set @PasswordSalt = (SELECT PasswordSalt FROM aspnet_Membership WHERE UserID IN (SELECT UserID FROM aspnet_Users WHERE UserName=@UserName))
Exec dbo.aspnet_Membership_ResetPassword @Application, @UserName, @NewPassword, 10, 10, @PasswordSalt, -5
-------------------------------------------------------------------------------------
另一个方法:
As there are
frequent requests from users, who lost the password of the host account
(and you cannot request the host password by email), the following
solution will help for all DNN 3 and 4 installation. Please note, that
your need direct access to the database to suceed with the issue:
if "register" is not displayed for the portal, go to
table "Portals" in your database and enter value "2" into
column "Registration".
create a new user account by registration (this time, please remember the password you enter!)
go to database, enter table "ASPNet_Membership"
go
to new user account (usually the last one) and copy the encrypted
values of columns "Password" and "PasswordSalt" into the same columns
of user account "host" (usually th first entry in this table)
login as user "host" using the new password and delete the reshly created other user.
Keep remembering your password ;)
来自:http://www.deutschnetnuke.de/tabid/183/Default.aspx
-------------------------------------------------------------------------------------
Declare @UserName NVarChar(255)
Declare @NewPassword NVarChar(255)
Declare @PasswordSalt NVarChar(128)
Declare @Application NVarChar(255)
-- Enter the user name and new password between ''
-- do not leave any spaces unless intended to do so.
-- Edit only between single quote characters
Set @UserName = 'host' -- This default DNN host user
Set @NewPassword = 'newpassword' --New password
-- Do modify any code below this line
Set @Application = (SELECT [ApplicationID] FROM aspnet_Users WHERE UserName=@UserName)
Set @PasswordSalt = (SELECT PasswordSalt FROM aspnet_Membership WHERE UserID IN (SELECT UserID FROM aspnet_Users WHERE UserName=@UserName))
Exec dbo.aspnet_Membership_ResetPassword @Application, @UserName, @NewPassword, 10, 10, @PasswordSalt, -5
-------------------------------------------------------------------------------------
另一个方法:
As there are
frequent requests from users, who lost the password of the host account
(and you cannot request the host password by email), the following
solution will help for all DNN 3 and 4 installation. Please note, that
your need direct access to the database to suceed with the issue:
if "register" is not displayed for the portal, go to
table "Portals" in your database and enter value "2" into
column "Registration".
create a new user account by registration (this time, please remember the password you enter!)
go to database, enter table "ASPNet_Membership"
go
to new user account (usually the last one) and copy the encrypted
values of columns "Password" and "PasswordSalt" into the same columns
of user account "host" (usually th first entry in this table)
login as user "host" using the new password and delete the reshly created other user.
Keep remembering your password ;)
来自:http://www.deutschnetnuke.de/tabid/183/Default.aspx
相关文章推荐
- DotNetNuke安装大全-如何安装DNN StartKit、Install、Source包。(转载)
- DotNetNuke(DNN)皮肤制作--如何居中内容
- DotNetNuke(DNN)皮肤制作--如何修改DNN中众多的CSS文件
- DotNetNuke 4.5: 如何创建支持Asp.net Ajax 的DNN模块
- DotNetNuke(DNN)如何升级到DNN 4.9.3
- 如何修改DotNetNuke(DNN)中服务条款和隐私说明
- 如何更改DotNetNuke(DNN)的默认语言
- DotNetNuke系列(一): 如何在DNN中添加自定义的用户注册页面
- 如何修改DotNetNuke(DNN)中服务条款和隐私说明
- DNN快速入门教程3 - 如何创建DotNetNuke网站
- 交换机密码丢失如何恢复
- DNN(DotNetNuke)研究手札系列3-框架(概述)
- DotNetNuke 5.0 正式发布 (附带DNN 5.0下载)
- 初识DotNetNuke(DNN)
- DotNetNuke与MemberShip的结合(五年版)第三步修改HttpModule.DNNMembership
- 到底怎样安装/初始化/个性化DotNetNuke(DNN)?
- DotNetNuke 多站点系统如何帮你省钱
- DotNetNuke(DNN) 4.5 中的宽中小屏极其大中小字体的实现代码
- DotNetNuke(DNN)
- 如何创建新模块 DotNetNuke 6 & Entity Framework Code First