SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other ldap-devel-3.3-3.i386.rpm

LDAP_FRIENDLY

Section: C Library Functions (3)
Updated: 11 October 1993
Index 

NAME

ldap_friendly_name, ldap_free_friendlymap - LDAP unfriendly to friendly name mapping routine 

SYNOPSIS

#include <lber.h>#include <ldap.h>typedef struct friendly {        char *f_unfriendly;        char *f_friendly;} FriendlyMap;char *ldap_friendly_name(filename, name, map)char *filename;char *name;FriendlyMap **map;void ldap_free_friendlymap(map)FriendlyMap **map;
 

DESCRIPTION

This routine is used to map one set of strings to another. Typically,this is done for country names, to map from the two-letter countrycodes to longer more readable names. The mechanism is general enoughto be used with other things, though.

filename is the name of a file containing the unfriendly tofriendly mapping, name is the unfriendly name to map to a friendlyname, and map is a result-parameter that should be set to NULLon the first call. It is then used to hold the mapping in core so thatthe file need not be read on subsequent calls.

For example:

        FriendlyMap *map = NULL;        printf( "unfriendly %s => friendly %s\n", name,            ldap_friendly_name( "/etc/ldapfriendly", name, &map ) );

The mapping file should contain lines like this: unfriendlyname\tfriendlyname.Lines that begin with a '#' character are comments and are ignored.

Theldap_free_friendlymap()call is used to free structures allocated byldap_friendly_name()when no more calls toldap_friendly_name()are to be made. 

ERRORS

NULL is returned byldap_friendly_name()if there is an error opening filename, or if the file has a badformat, or if the map parameter is NULL. 

FILES

/etc/ldapfriendly.conf 

SEE ALSO

ldap(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
ERRORS
FILES
SEE ALSO

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector