26.7. slapi_filter_get_choice()

Gets the type of the specified filter; for example, LDAP_FILTER_EQUALITY.
Syntax

#include "slapi-plugin.h"
int slapi_filter_get_choice( Slapi_Filter *f );

Parameters

This function takes the following parameters:

f
Filter of which you want to get type.
Returns

This function returns one of the following values:

  • LDAP_FILTER_AND (AND filter)
For example: (&(ou=Accounting)(l=Sunnyvale))
  • LDAP_FILTER_OR (OR filter)
For example: (|(ou=Accounting)(l=Sunnyvale))
  • LDAP_FILTER_NOT (NOT filter)
For example: (!(l=Sunnyvale))
  • LDAP_FILTER_EQUALITY (equals filter)
For example: (ou=Accounting)
  • LDAP_FILTER_SUBSTRINGS (substring filter)
For example: (ou=Account*Department)
  • LDAP_FILTER_GE ( "greater than or equal to" filter)
For example: (supportedLDAPVersion>=3)
  • LDAP_FILTER_LE ( "less than or equal to" filter)
For example: (supportedLDAPVersion<=2)
  • LDAP_FILTER_PRESENT (presence filter)
For example: (mail=*)
  • LDAP_FILTER_APPROX (approximation filter)
For example: (ou~=Sales)
  • LDAP_FILTER_EXTENDED (extensible filter)
For example: (o:dn:=Example)