You are here: Re: Get Windows Login from php using IIS « PHP Programming Language « IT news, forums, messages
Re: Get Windows Login from php using IIS

Posted by Sanders Kaufman on 12/21/07 08:25

<Lado.Leskovec@gmail.com> wrote in message
news:507e6ff2-ff01-4202-b096-e949ee332737@e10g2000prf.googlegroups.com...
> On 20 dec., 21:40, "Sanders Kaufman" <bu...@kaufman.net> wrote:

> If I use it, the login screen pops up 3 times (perhaps it is
> handshaking or you only get 3 tries... I don't know). If I put
> anything in the function after the get_headers... like echo "test"; it
> outputs it on screen, but dies at:

It's the second one - 3 strikes and you're out.

> if (!isset($headers['Authorization'])){
> header('HTTP/1.1 401 Unauthorized');
> header('WWW-Authenticate: NTLM');
> exit;
> }
>
> the reason is probably the exit at the end... I guess
> $headers['Authorization'] is not set...

If you haven't already, what I'd do is put an echo of the server variables,
gets and posts arrays just before the exit - to see if the data got
collected.

 

Navigation:

[Reply to this 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

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