mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Improve error message when parent is referral or not present
This commit is contained in:
parent
5a26f9d617
commit
ce8fcda8c4
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user