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

Re: compare



At 05:28 PM 2002-10-18, Brian Leung wrote:
>hi all,
>i have some ldap object which has attribute uidnumber, such as:
>
>dn: uid=test, o=test.com
>uid: test
>uidnumber: 1000
>
>if i have many objects in the database and i want to compare which
>uidnumber is the greatest, how should i use the ldapsearch to do it?

Use ldapsearch to obtain all entries with a uidnumber.
Sort the returned entries by uidnumber and then select
the last entry.

Kurt