|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-01-13 04:53 UTC] hadi at ulakbim dot gov dot tr
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");
$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, "uid=hadi,o=ulakbim", $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 haven't found any example.
Could you send me an example code for modification. Thanks.
Regards,
Mustafa Hadi Dilek
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
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