[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-bugs
Subject:    Re: ldap_first_attribute() not working correctly  (ITS#260)
From:       Kurt () OpenLDAP ! org
Date:       1999-08-19 16:03:08
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic