Re: [PHP] Authentication



Dan,

i realize i misunderstood the original question. am i to understand you
have php running
on all of the client machines ?

thanks,

-nathan

On 7/31/07, Dan Shirah <mrsquash2@xxxxxxxxx> wrote:

Correct Stut, I want transparent authentication, but I also want to have
the
currently logged in user name pulled so I can use it for tracking
purposes.
My application deals with very sensitive company information and I want to
pull the username for tracking purposes. I have everything running local
on
the same PC. Win2k3 server, IIS, PHP and MSSQL Server. I have PHP
installed for use with ldap and have NT Authentication set in IIS for the
site. This allows me to perform the transparency, but I can't seem to
extract the username.

On 7/29/07, Stut <stuttle@xxxxxxxxx> wrote:

Dan Shirah wrote:
I looked on PHP.net but I couldn't not find anything suitable to
answer
my
question.

Within PHP, is there a way to pull the name of the user that is
currently
logged into the PC?

I know with some of the _SERVER functions you can pull the IP of the
machine
and other data, is there a function within this family that would
work?

I'm assuming you're after "transparent authentication" where the user
doesn't need to do anything to authenticate with the site. This is only
possible with IE as the client on an NT domain with the server on the
same domain. If you're using IIS on the server then it's as easy as
removing anonymous and basic authentication from the site/directory. If
you're using Apache or something else you need to find an
extension/module that provides NTLM authentication, but not all of the
ones I tried fully supported the transparent side of it.

I implemented this for a corporate intranet a while back in Apache on
FreeBSD with mod_ntlm (Google for it - dunno if it's still maintained).
That was in 2004 and information was sparse, but with a bit of research
and *lots* of experimenting I was able to get it to work.

To be perfectly honest, if I were doing it again I'd save the time and
use IIS on the server - sooo much easier.

-Stut

--
http://stut.net/




Relevant Pages

  • Re: Apache vs IIS
    ... Windows Server not on my Linux Server so there for I would chose IIS. ... Not that Apache is bad but ASP.NET is far easier and faster to create good web forms in. ... PHP on a IIS server is rather easy to run once you install PHP on a PC but if you only use PHP why not use Apache for Windows. ...
    (alt.php)
  • Re: WM5 can not sync to exchange
    ... I checked all the authentication settings and they are as you requested. ... After running the internet connection wizard I had to uncheck the Require ... On the SBS 2003 Server open the Server Management console. ... Open IIS Manager ...
    (microsoft.public.windows.server.sbs)
  • Re: Apache vs IIS
    ... my Windows Server not on my Linux Server so there for I would ... IIS is designed for ASP, ... can run asp on Apache, ... in running php from IIS vs Apache. ...
    (alt.php)
  • RE: WM5 can not sync to exchange
    ... code 85010014 during ActiveSync with SBS. ... On the SBS 2003 Server open the Server Management console. ... Please verify Authentication settings by the following steps. ... Open IIS Manager ...
    (microsoft.public.windows.server.sbs)
  • Re: WM5 can not sync to exchange
    ... On the SBS 2003 Server open the Server Management console. ... Please verify Authentication settings by the following steps. ... Open IIS Manager ... Collect the IIS metabase on Exchange Server and send to me: ...
    (microsoft.public.windows.server.sbs)