From 214e13eeccd25662d77282c3f5282b7d1ea688ec Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 10 Sep 2005 01:51:34 +0000 Subject: [PATCH] Tweak newsuperior error codes --- servers/slapd/back-bdb/modrdn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index 16025c4c48..1bdebe5133 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -373,8 +373,8 @@ retry: /* transaction retry */ /* newSuperior == oldParent? - checked above */ /* newSuperior == entry being moved?, if so ==> ERROR */ if ( dnIsSuffix( np_ndn, &e->e_nname )) { - rs->sr_err = LDAP_NAMING_VIOLATION; - rs->sr_text = "new superior is invalid"; + rs->sr_err = LDAP_NO_SUCH_OBJECT; + rs->sr_text = "new superior not found"; goto return_results; } /* Get Entry with dn=newSuperior. Does newSuperior exist? */ @@ -404,7 +404,7 @@ retry: /* transaction retry */ ": newSup(ndn=%s) not here!\n", np_ndn->bv_val, 0, 0); rs->sr_text = "new superior not found"; - rs->sr_err = LDAP_OTHER; + rs->sr_err = LDAP_NO_SUCH_OBJECT; goto return_results; } -- 2.39.5