php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3252 LDAP ldap_add - core dumped
Submitted: 2000-01-19 06:51 UTC Modified: 2000-06-13 05:54 UTC
From: eda at vaz dot ru Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: RedHat 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eda at vaz dot ru
New email:
PHP Version: OS:

 

 [2000-01-19 06:51 UTC] eda at vaz dot ru
<?php
$ds=ldap_connect("localhost");  // assuming the LDAP server is on this host

if ($ds) {
    // bind with appropriate dn to give update access
    $r=ldap_bind($ds,"cn=root, o=vaz, c=ru", "ldapsecret");

    // prepare data
    $info["cn"]="John Jones";
    $info["sn"]="Jones";
    $info["mail"]="jonj@here.and.now";
    $info["objectclass"]="person";
    echo  $info["cn"]." !! ";

    // add data to directory
    $r=ldap_add($ds, "cn=John Jones, o=vaz, c=ru", $info);

    ldap_close($ds);
} else {
    echo "Unable to connect to LDAP server"; 
}
?>


./configure  \
            --disable-debug \
            --with-mod_charset \
            --with-gdbm \
            --with-ndbm \
            --with-ftp \
            --with-zlib  \
            --with-snmp \
            --with-ldap 
           
 file ext/ldap/ldap.c  in function php3_ldap_do_modify(..

problem in call (line 1171) : zend_hash_get_current_data(entry->value.ht, (void **) &value); 

returned false , but not controled it in source code
Why is false, i don't undestand. 
I can see key in "entry->value.ht" , but don't see
data.
I am use ddd for debug.
Sorry for bad english.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-13 05:54 UTC] andrei at cvs dot php dot net
All LDAP crash bugs have been fixed for release.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 15:01:35 2025 UTC