Bug 472602 - RFE: would like an API for determining if an intercepted request is an internal one
Summary: RFE: would like an API for determining if an intercepted request is an intern...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: 389
Classification: Retired
Component: Server - Plugins
Version: 1.1.3
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Nathan Kinder
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 249650 FDS1.2.0
TreeView+ depends on / blocked
 
Reported: 2008-11-21 22:38 UTC by Nalin Dahyabhai
Modified: 2015-01-04 23:35 UTC (History)
3 users (show)

Fixed In Version: 8.1
Clone Of:
Environment:
Last Closed: 2009-04-29 23:08:11 UTC
Embargoed:


Attachments (Terms of Use)
CVS Diffs (2.31 KB, patch)
2009-01-09 22:42 UTC, Nathan Kinder
no flags Details | Diff

Description Nalin Dahyabhai 2008-11-21 22:38:45 UTC
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.

Comment 1 Nathan Kinder 2009-01-09 22:42:03 UTC
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.

Comment 2 Nathan Kinder 2009-01-09 23:10:58 UTC
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

Comment 3 Jenny Severance 2009-03-19 13:01:51 UTC
Not sure QE can verify this bug - also is it a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=439907?

Comment 4 Nathan Kinder 2009-03-19 15:17:42 UTC
This can not be verified by QE, as it is an API addition.  Marking as verified.

Comment 5 Chandrasekar Kannan 2009-04-29 23:08:11 UTC
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


Note You need to log in before you can comment on or make changes to this bug.