Bug 222827
Summary: | SLAPI_PLUGIN_PRE_ENTRY_FN cached entry problem? | ||
---|---|---|---|
Product: | [Retired] 389 | Reporter: | Martin <m.d.t.evans> |
Component: | Directory Server | Assignee: | Rich Megginson <rmeggins> |
Status: | CLOSED NOTABUG | QA Contact: | Orla Hegarty <ohegarty> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0.4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-01-25 16:58:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin
2007-01-16 13:29:36 UTC
Yes, that's what's happening. When you modify the SLAPI_SEARCH_RESULT_ENTRY, you are modifying the entry directly inside the entry cache. The entry provided by SLAPI_SEARCH_RESULT_ENTRY in a SLAPI_PLUGIN_PRE_ENTRY_FN should be considered read only - there is no way to modify the entry to be returned. At the point in the code where SLAPI_PLUGIN_PRE_ENTRY_FN is called (flush_ber() - result.c:1488) the BER has already been formed. I'm not sure what the purpose of the SLAPI_PLUGIN_PRE_ENTRY_FN is except possibly to allow you to look at the entry to be returned or possibly abort the return, but not to modify it. If you want to change the results as they are returned to the client, you should probably look at the virtual attribute interface. I _think_ this will allow you to add "virtual" values to telephoneNumber. OK. Fair enough. I've had a look at the vattr interface and it seems that I can do everything that I want to with that. Thanks for the tip. |