|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39552 ADSI COM Object OpenDsObject crashes with Uncaught exception 'com_exception'
Submitted: 2006-11-18 16:25 UTC Modified: 2006-11-30 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: kurt dot loebbecke at achterliek dot de Assigned:
Status: No Feedback Package: *Directory Services problems
PHP Version: 5.2.0 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
48 - 4 = ?
Subscribe to this entry?

 [2006-11-18 16:25 UTC] kurt dot loebbecke at achterliek dot de
I would like to change from PHP 4.3.0 to PHP 5.2, but using my active directory class causes an error.

ADSI COM Object OpenDsObject crashes with Uncaught exception 'com_exception' if using this COM Object call.

Reproduce code:
function connect( $object ) {
            $this->_ADSI = new COM("LDAP:");
            $this->_DsObj = $this->_ADSI->OpenDsObject("LDAP://".$this->_server."/".$object,

Expected result:
Com Object to ADSI

Actual result:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Active Directory<br/><b>Description:</b> Der ?bermittelte Verzeichnispfad ist ung?ltig. ' in C:\inetpub\wwwroot\classes\adAccess.class.php:34 Stack trace: #0 C:\inetpub\wwwroot\classes\adAccess.class.php(34): com->OpenDsObject('LDAP://dc....', 'Domain\User', 'Password', 0) #1 C:\inetpub\wwwroot\classes\adAccess.class.php(52): adAccess->connect(NULL) #2 C:\inetpub\wwwroot\ftpform.php(37): adAccess->getAttribute(NULL, 'eeaUserType') #3 {main} thrown in


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-20 09:26 UTC]
>Der ?bermittelte Verzeichnispfad ist ung?ltig
What does this mean and why do you think an error returned by COM is a problem of PHP ?
 [2006-11-21 20:09 UTC] kurt dot loebbecke at achterliek dot de
Do you think it has something todo with php 5.2.0 installation on the workstation?
Why should adsi return an exeption with 5.2.0 but not with 4.x?
 [2006-11-21 20:31 UTC]
I don't know what does the error message mean, as I do not read German.
 [2006-11-22 20:05 UTC] kurt dot loebbecke at achterliek dot de
Sorry for that, 
The error "Der ?bermittelte Verzeichnispfad ist ung?ltig" means something like: "the submitted directory path is invalid".
But I think my Problem has something todo with Windows 2003 Server and IIS. The difference to 4.x is that we use php5isapi.dll not php.exe as in 4.x.
Under 2003 no module located in ./ext path is loaded, phpinfo() doesn't display any module.
 [2006-11-22 21:41 UTC]
>The difference to 4.x is that we use php5isapi.dll not
>php.exe as in 4.x.

Right, and that's quite a big difference, since I suspect the privileges of the script has changed. So the default IIS user is unable to use the required resources.
 [2006-11-30 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Dec 03 12:03:44 2022 UTC