niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » PHP
realm is missing in HTTP authnetication
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Shai Halevi
*nix forums beginner


Joined: 21 Jul 2006
Posts: 1

PostPosted: Fri Jul 21, 2006 1:52 pm    Post subject: realm is missing in HTTP authnetication Reply with quote

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
cheeks@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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Nov 20, 2008 8:21 am | All times are GMT
navigation Forum index » Programming » PHP
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mod_rewrite to go from http to https and back sevans@bigskypenguin.com Apache 0 Fri Jul 21, 2006 5:12 am
No new posts default route entry is missing. Rijesh Tru64 managers mail-list 0 Thu Jul 20, 2006 9:48 am
No new posts balancer proxy with http and https Nes Yarug Apache 7 Wed Jul 19, 2006 7:55 pm
No new posts Bug? xxdate.exe missing from tex/hevea Tong Sun Debian 0 Wed Jul 19, 2006 7:50 pm
No new posts missing smtpd_milters and milter_* in postconf(5) Tuan Van Postfix 2 Tue Jul 18, 2006 5:17 am

Unsecured Loans | MPAA | Agencia de viagens | Loan | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2963s ][ Queries: 16 (0.2198s) ][ GZIP on - Debug on ]