Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Create users using aspnet_Membership_CreateUser sp from sql

Reply
Thread Tools

Create users using aspnet_Membership_CreateUser sp from sql

 
 
LA_Guy
Guest
Posts: n/a
 
      08-02-2006
Hi,

I've been frustrated by not understanding how to replicate the hashing
/ encryption behaviour
in the Membership class that does the CreateUser method.

The associated stored procedure aspnet_Membership_CreateUser assumes
that the parameters

password
passwordsalt
security answer
there fields have to be hashed/encrypted

1. How is the passwordsalt created ?
2. password is set from EncodePassword method
3. security answer is hashed with the passwordsalt above

My question is how to do the hashing of fields from a custom Users
table
so that I can add Users to the membership tables without using the
Membership.CreateUser method in .NET 2.0

Thanks, LA_Guy

 
Reply With Quote
 
 
 
 
Dominick Baier
Guest
Posts: n/a
 
      08-02-2006
Hi,

this is "propriety". If you want to use Sql membership to validate, then
the fields must be in the format that is expected by the provider. Otherwise
you need to write you own provider.

You are of course free to use Reflector to "inspect" the algorithm and formats
used.

dominick

> Hi,
>
> I've been frustrated by not understanding how to replicate the hashing
> / encryption behaviour
> in the Membership class that does the CreateUser method.
> The associated stored procedure aspnet_Membership_CreateUser assumes
> that the parameters
>
> password
> passwordsalt
> security answer
> there fields have to be hashed/encrypted
> 1. How is the passwordsalt created ?
> 2. password is set from EncodePassword method
> 3. security answer is hashed with the passwordsalt above
> My question is how to do the hashing of fields from a custom Users
> table
> so that I can add Users to the membership tables without using the
> Membership.CreateUser method in .NET 2.0
> Thanks, LA_Guy
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i create new users without utilizing the create user wizar prady ASP .Net 2 12-29-2007 10:46 PM
how to use 'aspnet_Membership_CreateUser' directly through T-SQL Roberto Kohler ASP .Net Security 1 08-22-2006 05:01 PM
How to set the Password from SQL using aspnet_Membership_CreateUser Roberto Kohler ASP .Net Security 0 05-30-2006 08:40 PM
How do you connect to SQL server using SQL users with Windows Auth? help =?Utf-8?B?UmV6YQ==?= ASP .Net 2 06-08-2004 08:14 PM
Can't connect to SQL Server, using Windows Authentication users of SQL server? help =?Utf-8?B?UmV6YQ==?= ASP .Net 3 06-07-2004 06:42 PM



Advertisments