]> git.sur5r.net Git - openldap/commitdiff
Don't return API result codes on wire
authorLuke Howard <lukeh@openldap.org>
Sat, 10 Jan 2004 05:04:37 +0000 (05:04 +0000)
committerLuke Howard <lukeh@openldap.org>
Sat, 10 Jan 2004 05:04:37 +0000 (05:04 +0000)
contrib/slapi-plugins/addrdnvalues/addrdnvalues.c

index 371bb413fb3d969428a371086ee4a527fb3105d7..6ca8529f62cfe46c2cdd2d46f428ea775fc6afca 100644 (file)
@@ -52,8 +52,11 @@ static int addrdnvalues_preop_add(Slapi_PBlock *pb)
        szDN = slapi_entry_get_dn(e);
        rc = ldap_str2dn(szDN, &dn, LDAP_DN_FORMAT_LDAPV3);
        if (rc != LDAP_SUCCESS) {
-               slapi_send_ldap_result(pb, rc, NULL, NULL, 0, NULL);
-               slapi_log_error(SLAPI_LOG_PLUGIN, "addrdnvalues_preop_add", "%s\n", ldap_err2string(rc));
+               slapi_send_ldap_result(pb, LDAP_OTHER, NULL,
+                       "Failed to parse distinguished name", 0, NULL);
+               slapi_log_error(SLAPI_LOG_PLUGIN, "addrdnvalues_preop_add",
+                       "Failed to parse distinguished name: %s\n",
+                       ldap_err2string(rc));
                return -1;
        }