NT Domain authentication with PHP
| From: | Nico Alberti | Date: | Thu, 13 Mar 2003 08:16:11 +0000 |
| Subject: | NT Domain authentication with PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18987@lists.php.net to get a copy of this message | ||
Hi everybody.
I would like to use my NT domain Usermame/Password to authenticate users in
my intranet, but I am not able to set up a working page.
I work under NT4/Apache 1.3.27/PHP4.3.0 I tried the following test script
using COM and OpenDSObject:
$objWinNT = new COM("WinNT:") or die("Cannot get objWinNT object");
$nobj=$objWinNT->OpenDSObject("WinNT://$domname", "$login",
"$password",
0x01);
if (is_object($nobj))
{
echo "PDC login done";
}
else
{
echo "PDC login failed";
exit;
}
but I get the following error:
Warning: (null)(): Invalid ProgID, GUID string, or Moniker: Invalid syntax
in ....
I am an absolute beginner using COM technology; can anybody give some
advice? A working test script wolud be greatly appreciated :-)
Thank you in advance
--
Ciao
Nico