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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rb at odn dot de
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Mon Dec 06 20:03:41 2021 UTC