From: kurt dot loebbecke at achterliek dot de Operating system: Windows XP SP2 PHP version: 5.2.0 PHP Bug Type: *Directory Services problems Bug description: ADSI COM Object OpenDsObject crashes with Uncaught exception 'com_exception'
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 bug report at http://bugs.php.net/?id=39552&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39552&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39552&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39552&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39552&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39552&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39552&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39552&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39552&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39552&r=support Expected behavior: http://bugs.php.net/fix.php?id=39552&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39552&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39552&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39552&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39552&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39552&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39552&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39552&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39552&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39552&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39552&r=mysqlcfg