Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Security / August 2006

Tip: Looking for answers? Try searching our database.

how to use 'aspnet_Membership_CreateUser' directly through T-SQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roberto Kohler - 22 Aug 2006 13:44 GMT
I would like to be able to use the stored procedure
'aspnet_Membership_CreateUser' directly through T-SQL code (instead of going
through .Net wrappers) because I need to automate the creation of hundreds
of users.

aspnet_Membership_CreateUser has among others the following parameters:
@Password, @PasswordSalt, @PasswordAnswer.

I assume that the @Password and @PasswordAnswer have to be encrypted using
the @PasswordSalt

I have been unable to find documentation that explains

1. how to create the passwordsalt or where to retrieve it from
2. how to hash/encrypt the password and the security answer.
  Is there another SP that does that?

Any help would be greatly appreciated.

Roberto
Dominick Baier - 22 Aug 2006 18:01 GMT
Thats not documented. You can figure it out using Reflector.

Why not simply write an importer that calls Membership.AddUser instead of
working at SQL level??

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

> I would like to be able to use the stored procedure
> 'aspnet_Membership_CreateUser' directly through T-SQL code (instead of
[quoted text clipped - 15 lines]
>
> Roberto

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.