[Date Prev][Date Next] [Chronological] [Thread] [Top]

Promblems with ldap_modrdn_s function.



-----BEGIN PGP SIGNED MESSAGE-----

Hi,
I'm using the C function ldap_modrdn_s() from the OpenLDAP API for modify the
RDN of an entry in my DIT (Directory Information Tree).

This is part of the C code I'm using:
[...]
snprintf(oldrdn,MAX_DN,"user=%s,dc=mydomain,dc=com",user);
snprintf(newrdn,MAX_DN,"user=%s,dc=mydomain,dc=com",user_new);
if ((ldap_cod=ldap_modrdn_s(ld,oldrdn,newrdn)) != LDAP_SUCCESS)
  err_msr();
[...]

The problem is that the function ldap_modrdn_s() returns LDAP_SUCCESS, but
when I search for the newrdn entry I can't found it, and the oldrdn has been
eliminated from the directory.

May someone help me with this ?
Is there any option in the OpenLDAP config file that may be the origin of
this problem ?

I have C code for add new entries, modify attributes, delete entries, ... and
goes fine. The only problem I have is with this function.
Is there any other way to obtain the same result ?

Thanks in advance for your help.
---
Carles Xavier Munyoz Baldó / cmunyoz@es.wanadoo.com
---

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: 0beO8qp0NMlz1vqOGye4DmDNT9IOnUCs

iQA/AwUAOoLLnRAGkoZz8//aEQIvvwCfb9zmVYltWUHT+DNq07GRLWpvEMEAn1OL
4574U8PkGmri1YVWYZmbM0Ay
=CEaG
-----END PGP SIGNATURE-----