-
Mar 17th, 2009, 02:29 PM
#1
Sort by multiple fields
Hi all, is it possible to sort over multiple fields?
I can successfully search on 1 attribute. When I try to search over 2 attributes, i get LDAP Error Code 2 - 00000057 javax.naming.CommunicationError.
I am using AD for my ldap purposes. Here is what i am trying to do:
AggregateDirContextProcessor processor = new AggregateDirContextProcessor processor();
SortControlDirContextProcessor sorter = new SortControlDirContextProcessor("sn");
SortControlDirContextProcessor sorter2 = new SortControlDirContextProcessor("givenName");
processor.addDirContextProcessor(sorter);
processor.addDirContextProcessor(sorter2);
Works if I just feed processor sorter. Does not work if I feed it sorter and sorter2.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules