18.8. slapi_seq_internal_set_pb()
This function sets up pblock for use by slapi_seq_internal_callback_pb() for an internal, sequential-access operation; the function sets up the parameter block contain the following data:
SLAPI_SEARCH_TARGETset to the search base.SLAPI_ORIGINAL_TARGET_DNpreserves the DN that was sent from the client (this DN is normalized as it is processed bySLAPI_SEARCH_TARGET); this value is read-only.SAPI_SEQ_TYPEset to the sequential-access type (SLAPI_SEQ_FIRST,SLAPI_SEQ_NEXT, and so on.)SLAPI_SEQ_ATTRNAMEdefines attribute value assertion relative to which access is performed.SLAPI_SEQ_VALdefines attribute value assertion relative to which access is performed.SLAPI_CONTROLS_ARGset to request controls, if present.SLAPI_SEARCH_ATTRSset to the list of attributes to return.SLAPI_SEARCH_ATTRSONLYindicates whether attribute values should be returned.
#include "slapi-plugin.h" void slapi_seq_internal_set_pb(Slapi_PBlock *pb, char *ibase, int type, char *attrname, char *val, char **attrs, int attrsonly, LDAPControl **controls, Slapi_ComponentId *plugin_identity, int operation_flags);
This function takes the following parameters:
| pb | Parameter block initialized with operation parameters. The easiest way to provide required parameters is by calling slapi_seq_internal_callback_pb() function. Parameters can also be set directly. |
| callback_data | Data passed to the callback functions. |
| res_callback | Function called once the search is complete. |
| srch_callback | Function called for each entry returned. |
| ref_callback | Function called for each referral returned. |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.