Solved

authentication from a CGI app.

Posted on 1997-11-26
5
166 Views
Last Modified: 2013-12-25
Say I want a CGI app. to authenticate someone using the WWW-Autheticate response header.  Does anyone have any documentation about this.

Also, I've seen some simple examples, but the do not work under PWS (at least not with the code I wrote).  Does anyone know if this works with PWS?
0
Comment
Question by:olaor
5 Comments
 
LVL 5

Expert Comment

by:icd
ID: 1831420
If the examples used the .htaccess method then this would not work with PWS (which runs on Win95 or NT) since .htaccess only works with Unix.


0
 

Author Comment

by:olaor
ID: 1831421
I'm interested in doing my own authentication.  .htaccess is UNIX, so - uninteresting.

Also, PWS seems to send the HTTP/1.0 200 OK response before my CGI ever gets out there.  Does anyone know how I can change this behavior (i.e., to HTTP/1.0 401 Not Authorized).  How is this supposed to be controlled via the CGI app., through a return code, or what?


0
 
LVL 1

Expert Comment

by:terrycj
ID: 1831422
.htaccess is not really a unix only thing. it just happens
to be the name of the file used by some servers that originated
in the unix world.

pick up the latest version of apache. it runs on NT and win95
now, and it's easily the most widely used server in the world.

the distribution is at http://www.apache.org/dist

then you can use .htaccess files (or call them what you will,
since you get to pick the name in apache's conf file) on win95
or NT...

apache works very well.

0
 

Author Comment

by:olaor
ID: 1831423
I am looking for a STANDARD way of doing this.  Something that would work with Apache AND PWS AND IIS AND Netscape servers.  Isn't there anyway for the CGI app to signal to the server not to send the HTTP/1.0 200 OK message and let the CGI app. handle this?

Ofer.
0
 
LVL 3

Accepted Solution

by:
gwalters earned 100 total points
ID: 1831424
Unfortunately, there is no standard way of doing this.  In fact, it's even different for PWS depending on whether you're using Win95 or WinNT:

For NT, you'll have to put the CGI on a NTFS filesystem.  Once that's done, the security parameters for the file will cause the PWS to require authorization.

For 95, you can right-click on a folder in My Computer.  Click Shared As.  There you can add or remove users.


0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now