Solved

Apache Authentication using a login form

Posted on 2008-10-27
3
328 Views
Last Modified: 2012-08-14
Hi,
A client has setup a website that has restricted zones based on apache authentication. The type where a browser login box pops up when a user tries to browse to a restricted page/directory.

Is it possible to set this up so it uses a Login form rather the the browser dialogue?
If so how?

Regards
Mitch
0
Comment
Question by:SM17CH
3 Comments
 
LVL 2

Author Comment

by:SM17CH
ID: 22818993
Ive found this: http://httpd.apache.org/docs/trunk/mod/mod_auth_form.html
Is it the best option?
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 250 total points
ID: 22825011
it's not that bad :)
But IIRC it's a server solution and your application has no or only limited access to the login data.
0
 
LVL 1

Assisted Solution

by:frandshansen
frandshansen earned 250 total points
ID: 22845028
Is the "apache authentication" made with .htaccess or with some webscript querying for the username/password using a browser dialogue?

If the first thing is the case, every user is shown the same content when they log in, and the only good way of making it different is coding some PHP script to take care of it.

If you are using the other way, well then it should be pretty easy to change the code to being a <form> instead of a browser dialogue.
0

Featured Post

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Configuring Apache Camel to send and recieive from QPID Broker 2 34
Stupid git question 2 114
QQ problem 22 66
htaccess - disable PHP in specific directory 1 20
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

749 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