Issue 9444 - Feature Request: Textual error data is not sent through chaining overlay
Summary: Feature Request: Textual error data is not sent through chaining overlay
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.3
Assignee: Ondřej Kuzník
URL:
Keywords:
: 9439 (view as issue list)
Depends on:
Blocks:
 
Reported: 2021-01-28 19:40 UTC by andrewlanecarr
Modified: 2021-06-24 15:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description andrewlanecarr 2021-01-28 19:40:36 UTC
When operating in a replicated environment we would like to see the text message accompany the error code propagated to the other nodes in the cluster.


For Example:

Master Log -

master slapd[406]: conn=1160 op=3 MOD attr=userPassword
master slapd[406]: conn=1160 op=3 RESULT tag=103 err=19 text=Password is not being changed from existing value

 

Slave Log  -

slave slapd[31094]: conn=1000 op=18 MOD attr=userPassword
slave slapd[31094]: conn=1000 op=18 RESULT tag=103 err=19 text=

The text "Password is not being changed from existing value" is not copied in this process.  This is using the following configuration:
Comment 1 Ondřej Kuzník 2021-03-04 16:47:31 UTC
*** Issue 9439 has been marked as a duplicate of this issue. ***
Comment 2 Quanah Gibson-Mount 2021-03-18 16:36:11 UTC
Commits: 
  • f7888739 
by Ondřej Kuzník at 2021-03-18T15:34:26+00:00 
ITS#9444 Pass original message when chain-return-error is set


  • 0c8afb03 
by Ondřej Kuzník at 2021-03-18T15:34:26+00:00 
ITS#9444 Manage sr_ref/sr_matched flags accordingly

send_ldap_response() clears them immediately even if we never attached
the data to be freed, so when we reinstate them, the flags are gone and
the next send_ldap_response() doesn't consider freeing them.