php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3613 ldap_mod_replace does not handle binary values properly
Submitted: 2000-02-24 17:18 UTC Modified: 2001-02-10 15:27 UTC
From: rb at odn dot de Assigned:
Status: Closed Package: LDAP related
PHP Version: 3.0.14 OS: Linux 2.2.13 - glibc2.1
Private report: No CVE-ID: None
 [2000-02-24 17:18 UTC] rb at odn dot de
$fd = fopen( $file, "r" );
$contents = fread( $fd, filesize( $file) );
fclose( $fd );

$ds=ldap_connect("-----------");
$r=ldap_bind($ds,"--------------","------");    
ldap_mod_replace($ds, $searchroot, array ( $attr => $contents));      
ldap_close($ds);

---

./configure --disable-debug --with-apache=/usr/src/apache_1.3.11 --without-gd --with-ftp --with-mysql --with-rege
x=apache  --enable-trans-sid --with-ldap=/usr/local --enable-track-vars

---

in config.h i undefined HAVE_GETRUSAGE, so it would finally compile...

---

I would want to store gif/jpeg images uploaded via http post into my LDAP directory, but it won't do it... probably it's because of the usage of string functions, again... it just stores several bytes... then cuts off... using the comandline ldap-toys works fine


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-25 05:57 UTC] sniper@php.net
This is bit old bug report (over 6 months) but is this still
a problem? By updating to PHP4 (latest CVS or snapshot from snaps.php.net) will solve this problem.

Is this possible for you or should the fix for this bug be backported
to php3 ?

--Jani
 [2001-02-10 15:27 UTC] jimw@php.net
no feedback, closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC