#39552 [Opn->Fbk]: ADSI COM Object OpenDsObject crashes with Uncaught exception 'com_exception'
| From: | tony2001@php.net | Date: | Tue, 21 Nov 2006 20:31:35 +0000 |
| Subject: | #39552 [Opn->Fbk]: ADSI COM Object OpenDsObject crashes with Uncaught exception 'com_exception' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105266@lists.php.net to get a copy of this message | ||
ID: 39552
Updated by: tony2001@php.net
Reported By: kurt dot loebbecke at achterliek dot de
-Status: Open
+Status: Feedback
Bug Type: *Directory Services problems
Operating System: Windows XP SP2
PHP Version: 5.2.0
New Comment:
I don't know what does the error message mean, as I do not read German.
Previous Comments:
------------------------------------------------------------------------
[2006-11-21 20:09:00] 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-20 09:26:42] tony2001@php.net
>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-18 16:25:44] kurt dot loebbecke at achterliek dot de
Description:
------------
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,
$this->_adUser,
$this->_adPassword,
0);
}
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39552&edit=1