Re: [389-devel] plugin PRE_ENTRY_FN scope

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/17/2014 12:02 PM, Deas, Jim wrote:
Rich,
  Thanks so much!
Are you suggesting I do an internal search in PRE_SARCH_FN
Yes.
then use the return to modify the original search request to include additional items before allowing the original client search to begin?

You could do that too, but what you really want to do is, in your PRE_ENTRY_FN, is to replace, in each entry returned, the memberuid attribute values that start with "@", with the actual members of the group.




-----Original Message-----
From: 389-devel-bounces@xxxxxxxxxxxxxxxxxxxxxxx [mailto:389-devel-bounces@xxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Rich Megginson
Sent: Friday, January 17, 2014 10:32 AM
To: 389 Directory server developer discussion.
Subject: Re: [389-devel] plugin PRE_ENTRY_FN scope

On 01/17/2014 11:20 AM, Deas, Jim wrote:
Should I be able to use SLAPI_SEARCH_ATTR to view attributes about to be returned to the client in PRE_ENTRY_FN?
Yes, looks like it, but you have to be prepared for the case where a client does not specify a search attribute list - in this case, the client is asking for all non-operational attributes in the entry.

   Can I start a new search inside PRE_ENTRY_FN to find values needed to augment the existing attributes being returned?
Yes, that should work.  However, doing this parsing and internal search for every single entry returned might be a big performance hit.  You might want to examine the SLAPI_SEARCH_ATTRS and do the internal search in a SLAPI_PLUGIN_PRE_SEARCH_FN, then store the results in the operation (in an operation extension), then just use those results in your PRE_ENTRY_FN.  This is what the deref plugin does.

--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-devel
--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-devel
--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-devel

--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-devel





[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux