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
Navigation:
[Reply to this message]
|