PHP 4.0 Bug #3200 Updated: LDAP Modify Error
| From: | Bug Database | Date: | Thu, 13 Jan 2000 10:09:47 +0000 |
| Subject: | PHP 4.0 Bug #3200 Updated: LDAP Modify Error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14583@lists.php.net to get a copy of this message | ||
ID: 3200
User Update by: hadi@ulakbim.gov.tr
Status: Open
Bug Type: Other
Description: LDAP Modify Error
Hi,
My PHP version 4.0 Beta 3. I use Netscape Directory Server 4.11 as LDAP server and
OpenLDAP client libraries as client side. LDAP search works successfully, but modify doesn't
work.
My sample code is like this:
$ds = ldap_connect("localhost","389");
ldap_bind($ds, "uid=hadi,o=ulakbim", $pwd);
$base_dn = "o=ulakbim";
$filter = "uid=hadi";
$sr = ldap_search($ds, $base_dn, $filter);
$info = ldap_get_entries($ds, $sr);
$info = $info[0]; // First Entry
// $info["mail"] = "hadi@ulakbim.gov.tr";
$info["mail"][0] = "hadi@ulakbim.gov.tr";
echo "Modifying..."; <-- This message can't be seen.
ldap_modify($ds, , $info); <-- There is no output
generated and this command doesn't not run.
This may not be a bug, but I don't know which structure I must use for '$info'.
And I couldn't found any example.
Could you send me an example code for modification.
Thanks.
Regards,
Mustafa Hadi Dilek
Full Bug description available at: http://bugs.php.net/version4/?id=3200