Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 18 Functions

ldap_init_getfilter()

The ldap_init_getfilter() function reads a valid LDAP filter configuration file (such as ldapfilter.conf) and returns a pointer to an LDAPFiltDesc structure.

For more information, see "Loading a Filter Configuration File" on page 161.

Syntax

#include <ldap.h>
LDAPFiltDesc * ldap_init_getfilter( char *fname );

Parameters

This function has the following parameters:

fname

Name of the LDAP filter configuration file to use.

Returns

One of the following values:

Example

The following section of code loads the filter configuration file named myfilters.conf into memory.

#include <ldap.h>
...
LDAPFiltDesc *lfdp;
char *filter_file = "myfilters.conf"; 
...
lfdp = ldap_init_getfilter( filter_file );
...

See Also

ldap_init_getfilter_buf(), ldap_getfilter_free().


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:06:23