RE: [PHP-WIN] Getting windows username into php/mysql
| From: | Matt Murphy | Date: | Wed, 22 Mar 2006 15:49:41 +0000 |
| Subject: | RE: [PHP-WIN] Getting windows username into php/mysql | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26781@lists.php.net to get a copy of this message | ||
Hmm... I'm guessing you could take that variable, do an explode on the
\ and add the @domain.ext, that is if you know the extension. That
should work for my purposes at least.
Thanks,
Matt
> The $_SERVER["REMOTE_USER"] method works ok, but returns the
> old Win 2000 style DOMAIN\username, rather than the new
> Windows 2003 username@domain.ext. I would be interested to
> see how this formatting would fare when used to log in to a
> Windows 2003 server via the LDAP functions.