ID:               40227
 User updated by:  steven dot partridge at l-3com dot com
 Reported By:      steven dot partridge at l-3com dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         COM related
 Operating System: Windows 2003 Server SP1
 PHP Version:      5CVS-2007-01-24 (snap)
 New Comment:

Ran the similar (slightly modified) code under the CLI php. It ran
fine. copied that code into a web page and recieved the same "Table
does not exist" error.

At this point I believe it is a permissions error within IIS 6. If
anyone has any suggestions I'm more than open to them (please email
me).

I've changed this to bogus. Sorry for taking your time.


Previous Comments:
------------------------------------------------------------------------

[2007-01-24 23:36:15] steven dot partridge at l-3com dot com

Description:
------------
I have ported code from VBScript to PHP using the ADODB COM object to
access and retrieve information from Active Directory. The code works
well in VBScript, but when I run it via PHP I recieve the following
error:

exception 'com_exception' with message 'Source: Provider
Description: Table does not exist.' in
C:\Inetpub\wwwroot\z_ADODB_test.php:41 Stack trace: #0
C:\Inetpub\wwwroot\z_ADODB_test.php(41): unknown() #1 {main}

I can provide the VBScript if necessary

Reproduce code:
---------------
$objConnection = new COM("ADODB.Connection");
$objCommand = new COM("ADODB.Command");
$objConnection->Provider = "ADsDSOOBject";
$objConnection->Open ("Active Directory Provider");
$objCommand->ActiveConnection = $objConnection;

$objRecordset = new COM("ADODB.Recordset");

$strDNSDomain = "DC=IPS,DC=ad,DC=local";
$strFilter =
"(&(objectCategory=person)(objectClass=user)(sAMAccountName=username))";
$strQuery =
"<LDAP://".$strDNSDomain.">;".$strFilter.";sAMAccountName,distinguishedName,mail;subtree";

$objCommand->CommandText = $strQuery;

try{
$objRecordset = $objCommand->Execute;
}
catch (com_exception $e) {
  print "<P><B>Error executing ADODB query</B><BR>".$e . "\n";
}

Expected result:
----------------
No errors recieved.

Actual result:
--------------
exception 'com_exception' with message 'Source: Provider
Description: Table does not exist.' in
C:\Inetpub\wwwroot\z_ADODB_test.php:41 Stack trace: #0
C:\Inetpub\wwwroot\z_ADODB_test.php(41): unknown() #1 {main}


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40227&edit=1

Reply via email to