Re: Manually adding a ASP.Membership account for an install script
- From: DotNetNewbie <snowman908070@xxxxxxxxx>
- Date: Wed, 20 Feb 2008 10:25:49 -0800 (PST)
On Feb 19, 1:32 pm, "sloan" <sl...@xxxxxxxxx> wrote:
One way to do this is to actually add
System.Web
and all the <membership> xml to a CONSOLE app or Windows Form app.
And then you can code against the membership provider, and get this default
data in.
......
I do this for an application.
The client gives me a list of users, their default password, and a user to
role mapping.
(I give them the list of roles).
I actually wrote a (company owned) text file parser that does the work for
me.
.................
The TSQL stuff.
I got this to work one time, but I was using plain passwords. So maybe
someone else can help with that.
"DotNetNewbie" <snowman908...@xxxxxxxxx> wrote in message
news:48b68d25-2432-427c-99e2-eb8a011a9c72@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I am having issues with manually creating a membership user using the
stored procedure: aspnet_Membership_CreateUser
I can't seem to be able to insert a 'password salt' value and have it
work when I try and log in.
Here is what I did: After creating a user and being able to
successfully log into my application, I looked in the database for the
Password Salt.
I then used that SAME value along with username in my install.sql
script file (it just preloads the database with data).
My login doesn't work though, what could the problem be?
Basically for this application, we have to have the 'admin' user
account preloaded in the database on fresh installs. So I am trying to
create a data.sql script that will load the database, and I want to
setup the admin user account with username: admin and password: change
And I am using non-clear passwords, so I am confused as to why me
putting the same values as what my database has now in the script
doesn't work (login fails when I setup the database).
.
- References:
- Manually adding a ASP.Membership account for an install script
- From: DotNetNewbie
- Re: Manually adding a ASP.Membership account for an install script
- From: sloan
- Manually adding a ASP.Membership account for an install script
- Prev by Date: Re: App lock on shutdown
- Next by Date: CommonApplicationData on Vista
- Previous by thread: Re: Manually adding a ASP.Membership account for an install script
- Next by thread: Problem with Method Reflection Linq Query
- Index(es):
Relevant Pages
|