#35004 [Fbk->Opn]: $_server["AUTH_USER"] is not including seperator between domain and user

From: Date: Thu, 27 Oct 2005 20:20:50 +0000
Subject: #35004 [Fbk->Opn]: $_server["AUTH_USER"] is not including seperator between domain and user
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87160@lists.php.net to get a copy of this message
 ID:               35004
 User updated by:  jmcentire at jackhenry dot com
 Reported By:      jmcentire at jackhenry dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Variables related
 Operating System: Windows server 2003
 PHP Version:      5.0.5
 New Comment:

>> 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


Previous Comments:
------------------------------------------------------------------------

[2005-10-27 21:44:00] tony2001@php.net

what does this code print:
var_dump($_SERVER["AUTH_USER"]);
?

------------------------------------------------------------------------

[2005-10-27 21:40:39] 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:      


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35004&edit=1


Thread (6 messages)

« previous php.bugs (#87160) next »