Date: 10/12/00
- Next message: Jacob Verhoeks: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Previous message: espot <email protected>: "[PHP-DEV] PHP 4.0 Bug #7168: Unable to delete "facsimileTelephoneNumber" attribute"
- Next in thread: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #7168 Updated: Unable to delete "facsimileTelephoneNumber" attribute"
- Reply: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #7168 Updated: Unable to delete "facsimileTelephoneNumber" attribute"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7168
User Update by: espot <email protected>
Status: Open
Bug Type: LDAP related
Description: Unable to delete "facsimileTelephoneNumber" attribute
in line 21 modInfo should be replaced by delInfo.
The problem remains the same.
Previous Comments:
---------------------------------------------------------------------------
[2000-10-12 17:08:22] espot <email protected>
The following script fails with the following output.
Warning: LDAP: modify operation could not be completed. in crash.php line 18
Warning: LDAP: modify operation could not be completed. in crash.php line 21
I'm using OpenLdap 2.0.6 (same for 2.0.3)
and PHP 4.0.3 (same for 4.0.2)
if "facsimileTelephoneNumber" is substituted with "telephoneNumber" or any other attribute the script
runs fine. (except of course for trying to delete the same value twice)
<?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=LS, c=NO", "secret");
// prepare data
$info["cn"]="John Jones";
$info["sn"]="Jones";
$info["facsimileTelephoneNumber"] = "555-55555";
$info["mail"]="jonj <email protected>";
$info["objectclass"]="inetOrgPerson";
$r=ldap_add($ds, "cn=John Jones, o=LS, c=NO", $info);
$modInfo["facsimileTelephoneNumber"] = "";
ldap_modify($ds, "cn=John Jones, o=LS, c=NO", $modInfo);
$delInfo["facsimileTelephoneNumber"] = "555-55555";
ldap_mod_del($ds, "cn=John Jones, o=LS, c=NO", $modInfo);
ldap_close($ds);
} else {
echo "Unable to connect to LDAP server";
}
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7168
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jacob Verhoeks: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Previous message: espot <email protected>: "[PHP-DEV] PHP 4.0 Bug #7168: Unable to delete "facsimileTelephoneNumber" attribute"
- Next in thread: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #7168 Updated: Unable to delete "facsimileTelephoneNumber" attribute"
- Reply: Jani Taskinen: "Re: [PHP-DEV] PHP 4.0 Bug #7168 Updated: Unable to delete "facsimileTelephoneNumber" attribute"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

