LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2005, 05:00 AM   #1
woosting
LQ Newbie
 
Registered: Jan 2005
Location: Neterlands
Distribution: Fedora C3 (& Suse)
Posts: 21

Rep: Reputation: 15
Basic Authentication


Hmmm, I run a website on a Fedora PHP-able website (not hosted by myself).

I always used PHP-Basic Authentication but all of a sudden it keeps popping up (as when it does when one enters an incorrect username/password). I have not worked on the PHP/HTML code in between so I think it might be some setting on the Fedora PHP-webserver (i think it uses Apache).

Any ideas what this might be befor I start cursing at my admin?

My (crappy) code stated below:



function auth()
{
if (!isset($_SERVER['PHP_AUTH_USER']))
{
Header("WWW-Authenticate: Basic realm=\"ArmFN public site\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Pressed cancel";
exit();
}
else
{
if (login($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']))
{
// echo "correct login";
}
else
{
echo "No valid usercode/password combination etc.";
exit();
}

}
}

Last edited by woosting; 01-20-2005 at 06:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Basic Authentication garullon245136 Linux - Security 2 08-07-2005 06:39 AM
Samba Basic Authentication garullon245136 Linux - Networking 2 08-07-2005 06:38 AM
Samba Basic Authentication garullon245136 Linux - Newbie 1 08-07-2005 05:32 AM
Samba Basic Authentication garullon245136 Linux - General 1 08-07-2005 03:56 AM
[SOLVED] Apache basic authentication gypsy_rabbi Linux - Security 3 01-17-2005 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration