LDAPFiltInfo represents information about a filter in the filter configuration file. When you call the ldap_getfirstfilter() or ldap_getnextfilter() routines to get a filter from the filter configuration file, the routines return a pointer to an LDAPFiltInfo structure containing the information about the filter.
LDAPFiltInfo is defined as follows:
typedef struct ldap_filt_info {char *lfi_filter;
char *lfi_desc;
int lfi_scope;
int lfi_isexact;
struct ldap_filt_info *lfi_next;
} LDAPFiltInfo;The fields in this structure are described below:
LDAPFiltInfo *lfip;
/* Print out the filter */
printf( "Filter:\t%s\n", lfdp->lfd_filter );
printf( "Description:\t%s\n", lfdp->lfd_desc );For example, in the filter configuration file, if the first filter that applies to the value "@" is:
"@" " " "(mail=%v)" "email address is" "onelevel"the code prints out:
Filter: (mail=@)
Description: email address is
Last Updated: 10/01/98 17:05:28