#49404 [Fbk->Opn]: LDAP searh crashes PHP if key not matched
ID: 49404
User updated by: doctor_nett at yahoo dot com
Reported By: doctor_nett at yahoo dot com
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 5.3.0
New Comment:
thanks for quick reply i will try to get backtrace of it, thanks
Previous Comments:
------------------------------------------------------------------------
[2009-08-28 22:18:07] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2009-08-28 22:09:04] doctor_nett at yahoo dot com
Description:
------------
i am using php, with ldap to search records form active director on
linux(webserver)
it work fines if i type uid that exsist in active directory, but if i
type some uid that does not exsist in the active directory php script
crashes.
note: sorry if i am posting this in wrong place,
but the same code works fine on my windows xp(webserver) system with
ADAM ADSI
Reproduce code:
---------------
$chrUid = "mazhar.hassan"; #works fine
$chrUid = "maz.hass"; #crashes the system
$sr=ldap_search($ds, $LDAP_DN, "(uid=$chrUid)");
Expected result:
----------------
it should return nothing, as its doing on my XP system environment, so
that i can display a message record not found
Actual result:
--------------
system crashes and have to restart.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49404&edit=1
Thread (7 messages)