"Hayden Kirk" <sp**@spam.com> сообщил/сообщила в новостях следующее:
news:qe*****************@news02.tsnz.net...
Awsome
Thanks for the LDAP.
Umm, I was wondering though, when someone logins in via authentication,
like htaccess file, can I get the username of that user that has logged in?
Will this work in Windows or is that something different again?
Thanks.
"Hayden Kirk" <sp**@spam.com> wrote in message
news:Bl*****************@news02.tsnz.net... Hi
I was wondering how I could get the username of the user that is logged
in though the auth of IIS...
Is also a way where I can get information on the current user from
Active Directory, is there sometime of dll for this?
Thanks,
--
- Hayden Kirk
Technical Manager
iXon LTD
This should works:
"Another limitation is if you're using the IIS module (ISAPI), you may not
use the PHP_AUTH_* variables but instead, the variable HTTP_AUTHORIZATION is
available. For example, consider the following code: list($user, $pw) =
explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
IIS Note:: For HTTP Authentication to work with IIS, the PHP directive
cgi.rfc2616_headers must be set to 0 (the default value). "