ID:               21606
 Updated by:       [EMAIL PROTECTED]
 Reported By:      underling at yandex dot ru
-Status:           No Feedback
+Status:           Bogus
 Bug Type:         LDAP related
 Operating System: Linux Debian
 PHP Version:      4.3.0
 New Comment:

You should be using ldap_get_values_len() which is binary safe.
ldap_get_entries() is not binary safe.



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

[2005-04-10 01:45:53] owen at delong dot com

I'm experiencing this bug on Fedora Core 3 with PHP 4.3.1
package included in distro, used with Apache 2 and OpenLDAP.

I've tested and reproduced this bug with several versions of
openLDAP including the current released source version from
openldap.org.

    $sr=ldap_search($ds, $dn, "($u)");
    $user=ldap_get_entries($ds, $sr);

Used to retrieve an ldap entry which includes:
jpegPhoto: (72K Binary Data)

Returns only the first 10 octets of the Photo in question.
If you want a copy of the photo for testing, let me know
the best way to submit it to you and I will provide it.

I believe this to be related to bugs 5702/5759.  I'm able
to store the photo just fine as a result of that fix, but,
cannot retrieve it using ldap_search and ldap_get_entries.

If this is not enough data to pursue this bug, please
email me and let me know what additional data would be
useful.  I will happily provide whatever data I can that
would be useful.

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

[2003-01-27 22:41:06] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



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

[2003-01-13 19:02:07] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


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

[2003-01-12 23:55:19] underling at yandex dot ru

binary value which is kept in LDAP (like userCertificate or jpegPhoto
attributes) not returned correctly when ldap_search call is made. In
fact it returns only a few bytes of full attribute value. The problem
is probably in some symbols in binary file which are cannot be exported
by PHP so PHP simply breaks an export.
Below is hex-dump of what is actually exported instead of full file:
for jpegPhoto attribute:

00000000 FF D8 FF 00

for userCertificate attribute:

00000000 30 82 03 68 30 82 03 0B A0 03 02 01

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


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

Reply via email to