php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35004 $_server["AUTH_USER"] is not including seperator between domain and user
Submitted: 2005-10-27 21:40 UTC Modified: 2005-10-27 22:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jmcentire at jackhenry dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 5.0.5 OS: Windows server 2003
Private report: No CVE-ID: None
 [2005-10-27 21:40 UTC] jmcentire at jackhenry dot com
Description:
------------
php_info() shows server variable AUTH_USER in correct format:   DOMAIN\username

However, the $_server["AUTH_USER"] in code returns "DOMAINusername" (no seperator).

   

Reproduce code:
---------------
list($domain,$username) = split('[\]',$_SERVER["AUTH_USER"],2);
print "Domain: $domain UserName: $username";

Expected result:
----------------
Domain: DOMAIN UserName: username

Actual result:
--------------
Domain: DOMAINusername UserName:      

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-27 21:44 UTC] tony2001@php.net
what does this code print:
var_dump($_SERVER["AUTH_USER"]);
?
 [2005-10-27 22:20 UTC] jmcentire at jackhenry dot com
>> var_dump($_SERVER["AUTH_USER"]);

prints

string(13) "DDDDDDuuuuuuu"

where DDDDDD is the 6 character domain name
and uuuuuuu is the 7 character user name
No seperator
 [2005-10-27 22:26 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2005-10-27 22:43 UTC] jmcentire at jackhenry dot com
Sorry - this appears to be a problem only under MediaWiki. When ran in a test.php by itself:

<?php
var_dump($_SERVER["AUTH_USER"]);
?>

returns the correct value with the seperator. I'll close this and pursue this with mediawiki.
 [2005-10-27 22:43 UTC] jmcentire at jackhenry dot com
Changed to "bogus"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 09:01:31 2024 UTC