You cannot use this sample program because Apple Mac
OS X does not support LDAP on Apple Mac OS X.
The usedir.c sample program demonstrates Client-Library’s ability to query a directory service for a list of available servers.
usedir.c searches for Sybase server entries in the default directory, as defined in the driver configuration file. If a network directory service is not used, usedir.c queries the interfaces file for server entries. Then, it displays a description of each entry found, and lets the user choose a server to connect to.
For more information about network directory services, see the Open Client and Open Server Configuration Guide for UNIX.