473,325 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

realm is missing in HTTP authnetication

I'm running the following script under PHP 4.4.2 in safe-mode:

<?php
header('WWW-Authenticate: Basic realm="some realm"');
header("HTTP/1.0 401 Unauthorized");
exit('The realm is supposed to be "some realm"');
?>

When accessing it, I get the following headers from the server:

RESPONSE: HTTP/1.1 401 Authorization Required
Date: Fri, 21 Jul 2006 13:23:15 GMT
Server: Apache/1.3.xx (Unix) PHP/4.4.2 mod_ssl/2.8.yy
OpenSSL/0.9.7zzzz
X-Powered-By: PHP/4.4.2
WWW-Authenticate: Basic realm="1125"
[...]

The "1125" is probably the script UID, but this should have been added
to "some realm", not replaced it. Can anyone shed any light on this? Is
this a bug in my PHP engine?

Some details from phpinfo() are attached below.

System =FreeBSD my.web.address.org 5.2.1-RELEASE-p10 FreeBSD
5.2.1-RELEASE-p10 #1: Thu Sep 23 15:05:06 MDT 2004
ch****@my.web.address.com:/some/path/here i386

Configure Command ='./configure' '--enable-versioning'
'--enable-memory-limit' '--with-layout=GNU'
'--with-config-file-scan-dir=/path/to/somewhere' '--disable-all'
'--with-regex=php' '--with-apxs=/path/to/apxs' '--prefix=/some/prefix'
'i386-portbld-freebsd5.2.1'

Server API =Apache
Virtual Directory Support =disabled
PHP API =20020918
PHP Extension =20020429
Zend Extension =20050606
Debug Build =no
Zend Memory Manager =enabled

-- Shai

Jul 21 '06 #1
0 1089

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: The CQMMAN | last post by:
Hello, When I try to connect to my Oracle instance on the W2K server that it is installed on, using SQLPLUS (ie, SQLPLUS user/password@instance), I get: ORA-01034: ORACLE not available...
0
by: Morgan Cheng | last post by:
To add HTTP Basic/Digest authentication to HttpWebRequest, I can use NetworkCredential, HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api.del.icio.us/v1/tags/ get");...
0
by: gitocoby | last post by:
hi, a simple question: can i use two authentication realms, JDBC Realm and UserDatabase Realm, in one only tomcat server?
1
by: Octaclot | last post by:
Hi, this is my first post, i want to allow my jsp pages to access resources but prevent a user from accessing the same files. Example a jsp header page loads and gets it's images from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.