Search LDAP
Let's see these program steps in action. The program
clue-q1.c
queries LDAP,
searching for all entries that have an E-Mail address as an attribute.
A few points to note:
- The search criteria is specified as
(mail=*)
-
In this case we have not performed a bind to the server. This is the same as an
"anonymous bind". The server has been configured to allow everyone read access.
-
We can see that each entry is uniquely identified by a
distinguish name (dn).