I'm on PHP 4.0.5 with Netscape Directory SDK and am trying to use the new ldap_replace function.
Here's an example of what I'm trying to do:
$rn = ldap_rename($ds,"cn=jsmith,o=acme,c=us","cn=janesmith", NULL, 1);
And according to the documentation, here's the function:
bool ldap_rename (int link_identifier, string dn, string newrdn, string newparent, bool deleteoldrdn)
The C and Java LDAP APIs either let you skip over the newparent attribute or leave it as a null if you're not changing the record's parent (just changing the RDN w/o changing location), but it seems that I'm doing something wrong with that newparent attribute. Any help is appreciated. Thanks.