By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

IIS Auth

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"Hayden Kirk" <sp**@spam.com> сообщил/сообщила в новостях следующее:
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

Yes you can get information from Active Directory using LDAP
http://php.net/manual/en/ref.ldap.php
Jul 17 '05 #2

P: n/a

"Hayden Kirk" <sp**@spam.com> сообщил/сообщила в новостях следующее:
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

Auth via IIS can be occur using NTLM.
http://www.innovation.ch/java/ntlm.html read it there
Jul 17 '05 #3

P: n/a
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

Jul 17 '05 #4

P: n/a

"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). "
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.