Bug 472602

Summary: RFE: would like an API for determining if an intercepted request is an internal one
Product: [Retired] 389 Reporter: Nalin Dahyabhai <nalin>
Component: Server - PluginsAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: high    
Version: 1.1.3CC: benl, jgalipea, nhosoi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 8.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-29 23:08:11 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:
Bug Depends On:    
Bug Blocks: 249650, 493682    
Attachments:
Description Flags
CVS Diffs none

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