O'Reilly logo

LDAP Implementation Cookbook by Permana Widhiasta, Harri Stranden, Michel Melot, Heinz Johner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.2. C LDAP Application Programming Interface (API)

This section describes the API library for C language applications. We use an example-driven approach to discuss the basic functions used for establishing connections, doing searches, and parsing the results. You will often find the LDAP server saturn mentioned in these examples. This is the name of the LDAP server that was used to run the examples running the IBM SecureWay Directory server on AIX.

8.2.1. Introduction

The basic conversation between an LDAP client and an LDAP server is essentially accomplished in four steps:

1.
The first step is to initialize an LDAP session. This is done with the ldap_init() or ldap_open() API call, which returns a handle to an LDAP session allowing multiple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required