In order to avoid mutual recursion-triggered problems, it would be useful to be able to tell whether or not a particular request was done on behalf of a connected client or another plugin. Currently, I don't think we have a way that a plugin can do that as part of the public SLAPI.
Created attachment 328598 [details] CVS Diffs This exposes the internal operation flag publicly as SLAPI_OP_FLAG_INTERNAL. The existing slapi_operation_is_flag_set() can be used to check an operation for this new flag. This flag and the old function will both need to be added to the Plug-In Programmer's Guide.
Checked into ldapserver (HEAD). Thanks to Noriko for her review! Checking in ldap/servers/slapd/slapi-plugin.h; /cvs/dirsec/ldapserver/ldap/servers/slapd/slapi-plugin.h,v <-- slapi-plugin.h new revision: 1.38; previous revision: 1.37 done Checking in ldap/servers/slapd/slapi-private.h; /cvs/dirsec/ldapserver/ldap/servers/slapd/slapi-private.h,v <-- slapi-private.h new revision: 1.33; previous revision: 1.32 done
Not sure QE can verify this bug - also is it a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=439907?
This can not be verified by QE, as it is an API addition. Marking as verified.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-0455.html