Re: How to do a sorted search using Apache Directory API

2019-03-11 Thread Tamsin Slinn
Hi, Just to close this off in case anyone else has a similar problem, I found that if, after installing the overlay, I also specify a Matching Rule ID for the sort key, I get the ordering I want > SortKey sk = new SortKey( "sn", SchemaConstants.NUMERIC_STRING_ORDERING_MATCH_MR_OID); Cheers,

Re: How to do a sorted search using Apache Directory API

2019-03-07 Thread Tamsin Slinn
Hi Thanks for the reply. I tried with both 1.0.2 and 2.0.0.AM2 with the same outcome. The output from the Java code was as below (I just have a local ldap with a few users for testing) sn: Trainee sn: Admin sn: User sn: Supervisor I did not know about the slapo-sssvlv overlay, my LDAP knowledge

Re: How to do a sorted search using Apache Directory API

2019-03-07 Thread Emmanuel Lécharny
On 07/03/2019 10:40, Tamsin Slinn wrote: Hi, I hope this is an OK question to post to the list. That's fine. I'm running the code below against OpenLDAP 2.4.40. I based the code on an integration test for SortRequestControl. However, this code does not return the entries in the order I

How to do a sorted search using Apache Directory API

2019-03-07 Thread Tamsin Slinn
Hi, I hope this is an OK question to post to the list. I'm running the code below against OpenLDAP 2.4.40. I based the code on an integration test for SortRequestControl. However, this code does not return the entries in the order I expect (alphabetical by sn). Can you tell me what I am missing?