winzip icon


Submitted on: 1/1/2015 12:37:00 PM
By: Chris Wallace (from psc cd)  
Level: Intermediate
User Rating: By 10 Users
Compatibility: VB.NET, ASP.NET
Views: 3417
     **Updated 12/03/2002** Anyone who downloaded on 12/02/2002 will need to change the default database and password for the Lockat SQL Login. I have updated the script file to do this by default so you can redownload and rerun if you wish. Thanks ********************** **Updated 12/02/2002** Updated the SQL script and updated the files to use the codebehinds instead of the dll ********************** This is an ASP.NET/SQL Server security system designed to allow multiple users, multiple groups, and multiple applications (ie. jdoe can be an administrator on this system while also being a user on another). An access log exists for catalogging successful and failed login attempts to any system utilizing Lockat for security. User configurable parameters exist for the default login page, main page, from email adress (for brodcast email to users of any system using Lockat for security), the system name, and the help message in the web.config file. User configurable parameters also exist in the SQL database for an account expiration time, number of grace logins, and several error messages. Lockat users can edit their own profile, Managers in addition can add/edit/delete users and manager their system rights, Administrators can, in addition to the Manager rights, add/edit/delete groups, applications, and user levels, edit parameter information, clear the access log, and mass mail application users. Default account expiration is 90 days and default grace logins is 5. You will need to log in to your SQL server and execute the Lockat.sql script to build the database. Make sure you edit the script file and set your data and log files up to where you want them placed. An admin SQL login is created with rights to execute all store procedures and is preconfigured in the web.config file. A default user of Admin/admin is created for administrator access to the Lockat front-end. You will need to modify the help message and from email account(mail function won't work without this) in the web.config file. Currently if an account expires and all grace logins are exhausted an account will be suspended and received the suspended message if it is used to access a system using Lockat for security. Accounts are also currently suspended after 3 unsuccessful logins within a user configurable time (default of 15 mins). I need to do some more minor code changes but feel free to use it as is and play around with it. Copy the follwing code into your pages you wish to protect for this to work: Also, you will need an app application variable in the web.config file listing the name of the application accessing the Lockat system. You can get the authentication code in the default.aspx.vb or use it as a code behind for your other login pages.

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
// for :Lockat
All code is Copyright Chris Wallace 2002
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.