Hi PHP5 maintainers,

I assign this bug to you because I think that this is a general bug in
PHP when handling binary LDAP data.

The problem is that ldap_search() fails if the returned entries contain
certain binary data. I was able to reproduce this by adding/removing an
image file to the jpegPhoto attribute. The search always failed when the
image was set.

Binary data can be read with ldap_get_values_len() without problems. But
often the content type is unknown. Therefore ldap_search() should be fixed.


For some reason I cannot reproduce it today but this is the LDAP log:

Jun 23 19:19:56 Roland slapd[2867]: conn=27 op=2 SRCH
base="ou=People,o=test,c=de" scope=2 deref=0 filter="(objectClass=*)"
Jun 23 19:19:56 Roland slapd[2867]: send_search_entry: conn 27  ber
write failed.
Jun 23 19:19:56 Roland slapd[2867]: conn=27 fd=18 closed (connection
lost on write)


-- 

Best regards

Roland Gruber


LDAP Account Manager
http://lam.sourceforge.net

Want more? Get LDAP Account Manager Pro!
http://lam.sourceforge.net/lamPro/index.htm

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to