Solved

authentication from a CGI app.

Posted on 1997-11-26
5
171 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

733 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