go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  How do I know the returned results are sorted?
 
Subject: How do I know the returned results are sorted?
Author: SteveHB
In response to: SunOne--javax.naming.CommunicationException
Posted on: 07/29/2011 01:31:46 PM

By SPEC:

The client application is assured that the results are sorted in the specified key order if and only if the result code in the sortKeyResponseControl (1.2.840.113556.1.4.474) is success. If the server omits the sortKeyResponseControl (1.2.840.113556.1.4.474) from the searchResultDone message, the client SHOULD assume that the sort control was ignored by the server.


 

> On 06/07/2007 03:34:05 PM SteveHB wrote:


If some thing goes wrong, e.g. unrecognized attribute sorting key or maching rule, running the above code against SunOne Directory Server would, however, bring back the following:

javax.naming.CommunicationException:[LDAP: error code 2 - Sort Control]; remaining name 'ou=people,dc=mydomain,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3053)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1812)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1735)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.