Prev | Next |
The LDAP API also allows results to be sorted after querying the database.
The example
clue-s.c
queries LDAP for all entries that have an E-Mail address; this is similar to
clue-q1.
ldap_sort_entries
sorts results by
common name (cn).
sortby
) specifies the sort attribute.
strcmp
) specifies a callback function that
performs the sort comparator. This is the C strcmp() function.
Results may also be sorted on multiple attributes using the
ldap_multisort_entries
.
Prev | Next |