|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Migrating users to asp.net 2.0 from CSK and setting passwordsHello -
I have existing users in a CSK-schema who each have passwords. I need to migrate these users to the asp.net tables in .net 2, but I haven't found any way to set the new passwords, password salt and password question properly. Is it possible to use t-sql to migrate these records or do I have to use the ..net framework? Where do I access the tools to set the passwords properly? Thanks for any help or relevant experience. Hello burtonman,
i assume the password in your source store are cleartext. You have to programmatically migrate the users. Grab a copy of Reflector (www.aisto.com/roeder) and have a look at SqlMemberShipProvider.CreateUser() in System.web.dll. They basically create a 16byte salt with RNGCryptoServiceProvider (as Base64) and hash the password and the salt with the configured hashing algo. Another option would be to write your own membership provider to map to your old schema. documentation for doing this is in msdn. --------------------------------------- Dominick Baier - DevelopMentor http://www.leastprivilege.com Show quoteHide quote > Hello - > > I have existing users in a CSK-schema who each have passwords. I need > to migrate these users to the asp.net tables in .net 2, but I haven't > found any way to set the new passwords, password salt and password > question properly. > > Is it possible to use t-sql to migrate these records or do I have to > use the .net framework? Where do I access the tools to set the > passwords properly? > > Thanks for any help or relevant experience. >
RSA Encrypt/Decrypt Problems
Appliyng Security in assembly. User id of a running Windows form app Private member access. Security exception related to network Data security/filtering on attribute values Why CAS doesn't stop things in ASP.NET apps does .NET connect to Internet to verify digitally signed assembly certificate? Allow inheritable permissions form the parent to propagate... ASP.NET roles, authentication |
|||||||||||||||||||||||