PHP 4.0 Bug #3200: LDAP Modify Error

From: Date: Thu, 13 Jan 2000 09:53:15 +0000
Subject: PHP 4.0 Bug #3200: LDAP Modify Error
Groups: php.dev 
Request: Send a blank email to php-dev+get-14582@lists.php.net to get a copy of this message
From: hadi@ulakbim.gov.tr Operating system: Solaris 2.0 PHP version: 4.0 Beta 3 PHP Bug Type: Other Bug 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"); $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

« previous php.dev (#14582) next »