Reply to Re: Capture M$ username during NT Authentication

Your name:

Reply:


Posted by HawkEye on 02/22/07 19:09

ELINTPimp wrote:
> I've read previous posts that touch on this subject but many are dated
> and hope there may be someone out there that could aid with this.
>
> I'm running PHP5/IIS 6.0/Win2K3/MSSQL05. NT authentication for user
> access to my pages and database access is working great but I would
> like to "capture" only the username during this authentication process
> to use it for additional user-specific processing. Basically I would
> like to use the username to query user information from my database
> without the user having to input their username.
>
> No love in the $_session or any other predefined variables from what I
> can see. Any ideas?
>

Once you have IIS running authenticated only (ie disable guest access)
then all you need to do is set some priviledges on the folder that you
page is in and then access $_SERVER[logon_user] or $_SERVER[remote_user]
(I forget which and my scripts are in work)

HTH Neil

-=-=-
.... Hardware: the parts of the computer you can kick

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация