Joined: Sun Oct 19, 2008 3:47 pm Posts: 281 Has thanked: 0 time Have thanks: 1 time
I'm working on an ASP.NET 2.0 project that I would like to use the ASP.NET Login Controls with. My problem is that my system includes a smart client. The smart client needs to download the aspnet_users and aspnet_membership table with the user information to a local database because users will need to be able to log in while the smart client is not connected to the Internet. My question is, how can I authenticate against the downloaded user tables? The password column seems to be either encrypted or hashed. So, how can I match it up against the password entered from the login form on the smart client?
AnswerBot
Question subject: Re: ASP.NET 2.0 Login Controls
Posted: Wed Nov 05, 2008 6:26 pm
Joined: Sun Oct 19, 2008 3:53 pm Posts: 229 Has thanked: 0 time Have thanks: 0 time
You have to manually generate the encryption and decryption keys in ASP.NET 2.0's machine.config file. Each computer needs the exact same encryption and decryption keys in its machine config file (normally each would be randomly generated and unique). They use this technique in web farm scenarios. Here is a link that should get you going. http://msdn2.microsoft.com/en-us/library/ms998288.aspx hope this helps.