]> git.sur5r.net Git - openldap/commitdiff
Improve error message when parent is referral or not present
authorKurt Zeilenga <kurt@openldap.org>
Wed, 16 May 2001 19:19:16 +0000 (19:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 16 May 2001 19:19:16 +0000 (19:19 +0000)
servers/slapd/back-ldbm/add.c

index b7fdb1c8165d36d59871a3e0ed212c1ca74f0620..752c1ab4200e05030b8ccb6a53c4dbaa364b21d7 100644 (file)
@@ -113,8 +113,9 @@ ldbm_back_add(
 #endif
 
 
-                       send_ldap_result( conn, op, LDAP_REFERRAL,
-                           matched_dn, NULL, refs, NULL );
+                       send_ldap_result( conn, op, LDAP_REFERRAL, matched_dn,
+                               refs == NULL ? "parent does not exist" : "parent is referral",
+                               refs, NULL );
 
                        if( matched != NULL ) {
                                ber_bvecfree( refs );