[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_first_attribute() not working correctly (ITS#260)



At 01:36 PM 8/19/99 GMT, dnehring@telemedia.de wrote:
>[...]
>char *get_attr[] = {"maildrop", "userpassword", NULL};
>[...]
>if ((rc = ldap_search_s(ld, ldap_base, LDAP_SCOPE_SUBTREE, filter,
>                        get_attr, 0, &result)) != LDAP_SUCCESS) {
>
>The first ldap_get_values() gives me the values of "userpassword", the second
>call gives me the values of "maildrop" !?! This seems not to be correct!

The order of attributes returned is not defined.  OpenLDAP returns
entries, attributes types and their values in database order.  That
is, no server side sorting.   The SDK provides applications with
a variety of sorting routines, see ldap_sort(3).

Kurt