26.9. slapi_filter_get_type()
LDAP_FILTER_PRESENT. Gets the attribute type specified in the filter.
Filters of the type LDAP_FILTER_PRESENT generally determine if a specified attribute is assigned a value. For example:
(mail=*)
mail attribute.
mail.
#include "slapi-plugin.h" int slapi_filter_get_type( Slapi_Filter *f, char **type );
This function takes the following parameters:
|
f
| Filter from which you want to get the substring values. |
|
type
| Pointer to the attribute type of the filter. |
This function returns one of the following values:
- 0 if successful.
- -1 if the filter is not one of the types listed above.
The string returned in the parameter type must not be freed after calling this function. It will be freed when the structure Slapi_Filter is freed by calling slapi_filter_free().

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.