slapi_filter_get_choice()

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
f
The filter type that you want to get.
Returns
One of the following values is returned:
  • 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).