> Where can I find an example of how to use ldap_search_s()?
It's used in the finger code, the gopher code, and probably some other code in the ldap distribution. Take a look at finger/main.c, for example. -- Tim