FAQ,orginal,Basic,Authentication,been,updated
Quick Search for:  in language:    
FAQ,orginal,Basic,Authentication,been,updated
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 132,008 lines
 Jobs: 198 postings

 
Sponsored by:

 

You are in:

 
Login


 

 


Latest Code Ticker for ASP/ VbScript.
if i remember, this is a M. Harris code sample
By ask on 8/24


MTS Registration Script
By Igor Krupitsky on 8/23


Click here to see a screenshot of this code!Creating Windows Users with ASP and ADSI
By jamespwalters on 8/23

(Screen Shot)

News Poster (Advanced)
By Martin Kilbryde on 8/22


Print a web document through MS Word
By ask on 8/22


Click here to see a screenshot of this code!ADSI Domain Group Explorer
By Gordon Asbach on 8/22

(Screen Shot)

_-~Who is looking at your site? v2.0!~-_
By John on 8/22


Using HTML Option to Display Current Month
By Patrick Ingle on 8/20


FdB: Free Database (Aka Fake Database)
By TV2k.net on 8/19


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Update: Basic Authentication 2.5 [With FAQ]

Print
Email
 
winzip icon
Submitted on: 10/1/2000 5:47:52 AM
By: Almar Joling  
Level: Beginner
User Rating: By 14 Users
Compatibility:ASP (Active Server Pages)

Users have accessed this code 23752 times.
 

(About the author)
 
     The orginal "Basic Authentication II" has been updated. Please vote! Update: -Added a FAQ page that should help you with some problems; -Did some code formatting; -Set Databases to nothing when they are't used anymore; -Also added a database in '97 format. Code standardly uses 2k format. -- The code will show the basic authentication dialog, and will verify the username/password the visitor entered with a database. If the username/password isn't found/incorrect it will redirect to an 'access denied' page. If the username/password are correct, the program will redirect to the 'welcome' page (which will also confirm that the user is authenticated). This code will also log the last login date/time and the total login count. 99.9% secure :o). Also includes a signup script...

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :Update: Basic Authentication 2.5 
    '     [With FAQ]
    '**************************************
    Check the readme.txt file. Also read the FAQ file if you have any problems
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 Winzipto 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 including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner 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
10/3/2000 9:11:08 PM:mango
This code works wonderfully, I am now 
using it on our companys web site in 
conjunction with ssl. Minor recoding 
need to be done for our use, VERY 
useful and wonderfully simple, This 
code gets my vote
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/4/2000 3:38:04 AM:Almar Joling
Thanks! 
If you have any ideas that 
should be added, please tell me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/5/2000 4:12:39 PM:Mark DeVito
Great code.  As a 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/20/2000 9:39:33 AM:cliff
The login box keeps coming up over and 
over even after I have logged in with a 
valid ID?  Is there something I need to 
change on the server side or in the 
code or something?  The signup works 
fine and writes to the database. Please 
help! Thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/15/2000 2:12:05 PM:Darrin
I tried to use it but was never given 
the basic authentication dialog to 
enter a username or password. It 
automatically went to the "Access 
Denied" page. Could you help me 
out???
Thanks!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/27/2000 8:23:48 AM://enamb/
This code is full of holes, juh, en 
neem voortaan ff een engels screenshot 
:-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/28/2000 9:35:13 AM:(---Wizard---)
This code works great, just make sure 
you enable basic authentication on your 
web server, remove anonymous 
authentication, and don't use NTCR 
authentication unless all your clients 
are using IE.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/23/2000 8:36:23 PM:thor
I have a bug to report on your login 
script.
First I login with my username 
and password in the password 
dialog.
And after that logout.
And 
then I press login again.
The username 
that I logged in with before I logged 
out is displayed in the username 
field and the password field is 
blank.
If I press abort button in the 
password dialog.
I get a 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/23/2000 8:39:00 PM:thor
"401 Unauthorized" and if I then press 
refresh I will be logged in as the 
person that logged in before me 
without knowing his password.
Please 
help me fix that.It is bugging me 
really.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/23/2000 9:37:30 PM:e
e
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/23/2000 9:40:30 PM:PG
Does anyone know how to get this code 
to work while running Windows 2000 or 
NT.  The "WWW-Authenticate" dialog also 
prompts for a domain name in these 
environments.  Is there any way to get 
around this and just have the User & 
Pass, like the example above?  Any help 
appreciated.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/29/2000 12:14:02 PM:els
I like this routine, it gives 
appearance of being more secure than 
form.  Select Basic, De-select NT CR 
auth in Internet Service Mgr to lose 
the domain tbox.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/23/2001 5:54:04 PM:New(sort of)
How do i make this work in frontpage? I 
know vb and stuff but new at web page 
scripts? E-mail me @ 
codec2000inc@aol.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/16/2001 3:26:14 AM:Craig
I haven't been able to open up the 
'user.mdb' database.  I get 
'unrecognised database format'.  I'm 
using Access 97.  What format is 
user.mdb in?  Access 97 should be able 
to read Access 2000 database's.  Please 
email cdyer@one.net.au with any 
info.
TIA
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/17/2001 5:44:07 PM:Lewis@Moten.com
it seems that IIS is trying to 
authenticate me against NT User 
Accounts before it will let me visit 
that web page.  Is there a header type 
to instruct IIS not to authenticate 
against itself, but still let the 
browser pass UserName/Password in a 
server variable?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/8/2001 7:16:59 PM:Anon.
mango-
try changing all every 
'Response.Write' to a 
'Response.Redirect'. That way you can 
personalize the 401, Access Denied and 
all the other errors. This has worked 
well for me. : )
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/24/2001 5:15:01 PM:andy
The login box keeps coming up over and 
over even after I have logged in with 
a 
valid ID?  Is there something I 
need to 
change on the server side or 
in the 
code or something?  The signup 
works 
fine and writes to the 
database. Please 
help! Thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/12/2001 2:23:15 AM:Almar Joling
It's time I made a small "faq" for 
this... I recently discovered *very* 
much replies on this code, and my 
other 
ASP code, but I never checked 
that 
email account anymore. I'm very 
sorry that I never replied to any of 
your messages.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/14/2001 9:29:56 PM:Tom Chr Ugland
I cant get it to work on win2k, i just 
get bas username or password, and i 
have deselected integrated windows 
authentication and selected basic 
authentication. What more do i have to 
do?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/31/2001 8:48:14 AM:Anton
I got same problem as Darrin
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/31/2001 8:49:32 AM:Anton Lukmandjaja
I tried to use it but was never given 
the basic authentication dialog to 
enter a username or password. It 
automatically went to the "Access 
Denied" page. Could you help me 
out???
Thanks!!
PS: I use Win2000 
Professional
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/6/2001 2:29:02 PM:kik333
ummm, your code looks great, 
but we 
are all having the same problem.  I too 
am getting the auth dialogue box 
popping up over and over.  Is there a 
faq or can u at least answer how to 
help that problem.  Thanks Almar!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/9/2002 12:29:48 PM:chrisorm
Can this code (Basic Authentication 
2.5) be used to allow users into an 
Intranet site using their NT Username & 
Password?  Without copying the 
information to a new database?
Great 
code as it is by the 
way!
Cheers
Chris
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.