[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LDAP RENAMING and problems.. (ITS#1102)
Full_Name: George Daswani
Version: 2.0.7
OS: Redhat 7.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (198.102.62.250)
Have a problem with LDAP_RENAME_S and the server not checking if the OU and etc
exists..
ie..
trying to rename "cn=George Daswani,ou=Internal,o=ESRI,c=US"
to
"cn=George Henry C. Daswani,ou=Internal,o=ESRI,c=US"..
code snippet..
static const char *dnToRename = "cn=George Daswani,ou=Internal,o=ESRI,c=US"
static const char *dnNewName = "cn=George Henry C.
Daswani,ou=Internal,o=ESRI,c=US"
..
..
..
ldap_rename_s(ldapConn,dnToRename,dnNewName,dnNewName,NULL,1,NULL,NULL);
...
It renames the Dn to
"cn=George Henry C. Daswani,ou=Internal,o=ESRI,c=US,ou=Internal,o=ESRI,c=US".
I know that *dnNewName should really only be "cn=George Henry C. Daswani"
but shouldn't the openldap server check to make sure that the dn i'm renaming to
is valid?
ou=Internal,o=ESRI,c=US,ou=Internal,o=ESRI,c=US is not a valid branch..
In this case, one can't delete the corrupted record from the database because it
complains about invalid parent.. (which is correct as the item doesn't have a
valid parent trees)..